title: Using Jhipster with Prometheus/Grafana
body: <p>I am trying to figure out how to run and view prometheus and graphana dashboards with JHipster...</p>
  
  <p>I enabled prometheus in my spring boot prod.yml</p>
  
  <pre><code>management:
    metrics:
      export:
        prometheus:
          enabled: true
  </code></pre>
  
  <p>started the whole stack with:</p>
  
  <p><code>docker-compose -f src/main/docker/app.yml up</code>  (it starts up good)</p>
  
  <p>and then tried</p>
  
  <pre><code>docker-compose -f src/main/docker/monitoring.yml up
  </code></pre>
  
  <p>but get:</p>
  
  <blockquote>
    <p>ERROR: for docker_y-prometheus_1  Cannot start service y-prometheus:
    Mounts denied:  The path
    /Developer/dev/jhipster/y/src/main/docker/prometheus is not shared
    from OS X and is not known to Docker. You can configure shared paths
    from Docker -> Preferences... -> File Sharing. Creating
    docker_y-grafana_1    ... error .</p>
    
    <p>ERROR: for docker_y-grafana_1  Cannot start service y-grafana: Mounts
    denied:  The path
    /Developer/dev/jhipster/y/src/main/docker/grafana/provisioning is not
    shared from OS X and is not known to Docker. You can configure shared
    paths from Docker -> Preferences... -> File Sharing. See
    <a href="https://docs.docker.com/docker-for-mac/osxfs/#namespaces" rel="nofollow noreferrer">https://docs.docker.com/docker-for-mac/osxfs/#namespaces</a> for more
    info. .</p>
    
    <p>ERROR: for y-grafana  Cannot start service y-grafana: Mounts denied: 
    The path
    /Developer/dev/jhipster/y/src/main/docker/grafana/provisioning is not
    shared from OS X and is not known to Docker. You can configure shared
    paths from Docker -> Preferences... -> File Sharing. See
    <a href="https://docs.docker.com/docker-for-mac/osxfs/#namespaces" rel="nofollow noreferrer">https://docs.docker.com/docker-for-mac/osxfs/#namespaces</a> for more
    info. .</p>
    
    <p>ERROR: for y-prometheus  Cannot start service y-prometheus: Mounts
    denied:  The path /Developer/dev/jhipster/y/src/main/docker/prometheus
    is not shared from OS X and is not known to Docker. You can configure
    shared paths from Docker -> Preferences... -> File Sharing. See
    <a href="https://docs.docker.com/docker-for-mac/osxfs/#namespaces" rel="nofollow noreferrer">https://docs.docker.com/docker-for-mac/osxfs/#namespaces</a> for more
    info.</p>
  </blockquote>
  
  <p>am I starting it properly ?</p>