Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
sundar-ka opened this issue May 17, 2024 · 6 comments

Comments

@sundar-ka
Copy link

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

@kgeckhart
Copy link
Contributor

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

@sundar-ka
Copy link
Author

Thanks. I'll try it and get back

@sundar-ka
Copy link
Author

@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

@kgeckhart
Copy link
Contributor

Can you check what stackdriver_exporter_build_info says regarding version and revision?

@sundar-ka
Copy link
Author

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

test1

@kgeckhart
Copy link
Contributor

🤔 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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants