<p>I have a running instance of InfluxDB in my kubernetes cluster.</p>
<p><a href="https://docs.influxdata.com/influxdb/v2.5/reference/internals/metrics/" rel="nofollow noreferrer">According to documentation</a> I'm supposed being able to monitor my instance scrapping the <code>/metrics</code> endpoint with prometheus.</p>
<p>Unfortunately anytimes I'm hitting <strong>GET my-influx:8086/metrics</strong> I got the following error message :</p>
<pre class="lang-json prettyprint-override"><code>{
 &quot;code&quot;:&quot;forbidden&quot;,
 &quot;message&quot;:&quot;metrics disabled&quot;
}
</code></pre>
<p>I cannot find anything related to some kind of activation in the doc, neither got a response on their slack server.</p>
<p>Hope to have more chance here !</p>

Will
<p>Do you have disabled the metrics endpoint, either by setting <code>--metrics-disabled</code> command line flag, environment variable <code>INFLUXD_METRICS_DISABLED=true</code> or config value <code>metrics-disabled: true</code>?</p>
<p><a href="https://docs.influxdata.com/influxdb/v2.5/reference/config-options/#metrics-disabled" rel="nofollow noreferrer">https://docs.influxdata.com/influxdb/v2.5/reference/config-options/#metrics-disabled</a></p>
