stackdriver_exporter icon indicating copy to clipboard operation
stackdriver_exporter copied to clipboard

Apigee metrics from GCP - bucket type prometheus metrics value is not increasing monotonically

Open sundar-ka opened this issue 1 year ago • 6 comments

We've been introduced to this stackdriver_exporter recently and started using it to export metrics from GCP infra to our prometheus. Specifically the metrics of Apigee proxy provided as a managed service in GCP. We found a specific type of metric which got exported through the stackdriver exporter is not increasing monotonically in its value over the time. This metric type is used to bucket the range of values in different buckets which then can be used to calculate quantiles using histogram_quantile function with prometheus. Here is an example for metric which is used for calculating latency whose value didn't increase monotonically

test

Error got from prometheus while calculating histogram quantile using the above metric

test1

This is a helm based deployment in a kubernetes cluster.

Helm Chart version deployed - v4.5.0 Exporter app version deployed - v0.15.0

Expected: The metric _bucket value has to be increasing always like a counter type metric

Help needed . Thanks

sundar-ka avatar May 17 '24 14:05 sundar-ka

👋 can you try again with the latest release of v0.15.1? It contains a bugfix for this very issue.

kgeckhart avatar Jun 05 '24 20:06 kgeckhart

Thanks. I'll try it and get back

sundar-ka avatar Jun 06 '24 05:06 sundar-ka

@kgeckhart We've tried v0.15.1 version of the exporter, but still the values are not increasing monotonically. Getting same warning from grafana while calculating histogram quantile. We also use the current latest version of helm chart - v4.5.0

Warning below screenshot Screenshot 2024-06-10 at 1 27 06 PM

Bucket metric screenshot below ( that doesn't increase monotonically )

Screenshot 2024-06-10 at 1 39 26 PM

kindly help here

sundar-ka avatar Jun 10 '24 08:06 sundar-ka

Can you check what stackdriver_exporter_build_info says regarding version and revision?

kgeckhart avatar Jun 10 '24 17:06 kgeckhart

Here is the version and revision details for the exporter from the metric stackdriver_exporter_build_info The version seems 0.15.1

test1

sundar-ka avatar Jun 11 '24 05:06 sundar-ka

🤔 troubleshooting this isn't easy at this point. I've checked for histograms in my environment which show this behavior and we have none. We also don't have any apigee metrics to go off of to see if it's a specific to something with the metric itself. Do you have other histograms with this behavior or just the apigee one?

kgeckhart avatar Jun 12 '24 13:06 kgeckhart