<p>My metrics are scraping every 30seconds, even though I've specified a 10s interval when defining my servicemonitor.</p>
<p>I've created a servicemonitor for my exporter that seems to be working well. I can see my exporter as a target, and view metrics on the /graph endpoint. However, when on the &quot;targets&quot; page, the &quot;last scrape&quot; is showing the interval as 30s (I refresh the page to see how high the # of seconds will go up to, it was 30). Sure enough, zooming in on the graph shows that metrics are coming in every 30 seconds.</p>
<p>I've set my servicemonitor's interval to 10s, which should override any other intervals. Why is it being ignored?</p>
<pre><code> endpoints:
- port: http-metrics
  scheme: http
  interval: 10s
</code></pre>

<p>First: Double check if you've changed the ServiceMonitor you need changed and if you are looking at scrapes from your ServiceMonitor.</p>
<p>Go to the web UI of your prometheus and select Status -&gt; Configuration.
Now try to find part of the config that prometheus operator created (based on ServiceMonitor config). Probably looking by servicemonitor name will work - there should be a section with <code>job_name</code> containing your servicemonitor name.</p>
<p>Now look at the <code>scrape_interval</code> value in this section. If it is &quot;30s&quot; (or anything else that is not the expected &quot;10s&quot;) and you are sure you're looking at the correct section then it means one of those things happened:</p>
<ul>
<li>your ServiceMonitor does not really contain &quot;10s&quot; - maybe it was not applied correctly? Verify the live object in your cluster</li>
<li>prometheus-operator did not update Prometheus configuration - maybe it is not working? or is crashing? or just silently stopped working? It is quite safe just to restart the prometheus-operator pod, maybe it is worth trying.</li>
<li>prometheus did not load the new config correctly? prometheus operator updates a secret and when it is changed sidecar in prometheus pod triggers reload in prometheus. Maybe it didn't work? Look again in the Web UI in Status -&gt; Runtime &amp; Build information for &quot;Configuration reload&quot;. Is it Successful? Does the &quot;Last successful configuration reload&quot; time roughly matches your change in servicemonitor? If it was not &quot;Successful&quot; then maybe some other change made the final promethuus config incorrect and it is unable to load it?</li>
</ul>
