-
Trying to understand costs and high volume metrics. I have 2 fully managed prometheus instances (prod and nonprod). The prod has the majority of the exporters deployed and a number of pod monitors. The non-prod has a sole pod monitor deployed yet the costs per month are very similar. My highest volume metrics are not being scraped by any pod monitor and my highest volume namespace doesn't have a pod monitor. Is there something I'm missed when it comes to costs. Grateful for any clarification. Thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 8 replies
-
Try checking out our metrics diagnostics page to identify where metrics are coming from: https://console.cloud.google.com/monitoring/metrics-explorer/diagnostics Documentation on it: https://cloud.google.com/stackdriver/docs/managed-prometheus/cost-controls#identify-cost-sources I recommend sorting the bottom table by samples ingested! |
Beta Was this translation helpful? Give feedback.
-
I had a play around and deployed a clusterPodMonitor to drop our highest ingested metric according to the table on the diagnostics page. All it seemed to do was change the status of the metric to a non-active state. The metric disappeared from the metric table which has its default set to active metrics. It becomes visible again when you turn off the active filter. However this metric was still the highest metric as per the 'billable samples ingested' dashboard. There was no change. I was expecting the number of billable ingested samples to drop. Have I misunderstood what the relabelling rules do in regards to dropping metrics? |
Beta Was this translation helpful? Give feedback.
-
Metrics are set to inactive if there's no data seen in the last 25 hours. Any chance you had the time picker on the top right set to a longer period than you had the metric turned off? In that case the table would show the data that was ingested during the period when the metric was still on. |
Beta Was this translation helpful? Give feedback.
Try checking out our metrics diagnostics page to identify where metrics are coming from: https://console.cloud.google.com/monitoring/metrics-explorer/diagnostics
Documentation on it: https://cloud.google.com/stackdriver/docs/managed-prometheus/cost-controls#identify-cost-sources
https://cloud.google.com/monitoring/custom-metrics/diagnostics
I recommend sorting the bottom table by samples ingested!