title: Prometheus scraping only some metrics
body: <p>In my cluster I have an nginx ingress, nodejs server and prometheus. Prometheus is scraping all metrics from nginx, no problem, but it seems that it's ommitting some metrics from my nodejs server.</p>
  <pre><code># HELP nodejs_version_info Node.js version info.
  # TYPE nodejs_version_info gauge
  nodejs_version_info{version=&quot;v16.15.0&quot;,major=&quot;16&quot;,minor=&quot;15&quot;,patch=&quot;0&quot;} 1
  </code></pre>
  <p>This metric is indeed scraped by prometheus because it has <code>nodejs_</code> in name. However, I also have some metrics which look like this:</p>
  <pre><code># HELP http_request_duration_seconds duration histogram of http responses labeled with: status_code, method, path
  # TYPE http_request_duration_seconds histogram
  http_request_duration_seconds_bucket{le=&quot;0.003&quot;,status_code=&quot;200&quot;,method=&quot;GET&quot;,path=&quot;/&quot;} 0
  </code></pre>
  <p>Metrics without nodejs in name do not appear in the dashboard, like so:</p>
  <p><a href="https://i.stack.imgur.com/PTjxc.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/PTjxc.png" alt="Metrics" /></a></p>
  <p>I should mention that I am using <a href="https://www.npmjs.com/package/express-prom-bundle" rel="nofollow noreferrer">https://www.npmjs.com/package/express-prom-bundle</a> for the response time metric. Does anybody know how to fix that?</p>