-
Notifications
You must be signed in to change notification settings - Fork 862
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
Filter and Customized the metrics exported #5393
Comments
This is possible today with views. Register a view which applies the
Also possible with views (depending on your definition of summary). Register a view which configures the histogram aggregation to have no boundaries. This produces a "single bucket" histogram, which effectively works as a summary with sum, count, min, max fields.
|
To us the "data points per minute" (DPM, cf. https://grafana.com/docs/grafana-cloud/billing-and-usage/active-series-and-dpm/#data-points-per-minute-dpm) are contributing more significantly to our Grafana Cloud costs than the "active series". We would like to keep the generated metric data points below the DPM included in our Grafana Cloud plan. We gather metrics using the OpenTelemetry Java Agent, batch them using the OpenTelemetry Collector and export them to Grafana Cloud. If it was possible to aggregate the metrics generated by the OpenTelemetry Java Agent for each time series over an interval of 60s, or to reduce the sampling interval to 60s, that would be a great help. Related: open-telemetry/opentelemetry-collector-contrib#4968 |
The default aggregation window for metrics is 60s and it's configurable. Not sure I understand the ask @devurandom. |
You mean I am looking at the Grafana billing dashboard (https://grafana.com/docs/grafana-cloud/billing-and-usage/optimize-scrape-interval/#identify-high-dpm-per-series) and seemingly independent of the interval I set the maximum DPM is still well beyond 1. |
This has been automatically marked as stale because it has been marked as needing author feedback and has not had any activity for 7 days. It will be closed if no further activity occurs within 7 days of this comment. |
Is your feature request related to a problem? Please describe.
Monitoring platforms charge for the amount of metrics you generate (i.e. Grafana Cloud). Being able to selectively decide which metrics to export is becoming an important feature if you want to reduce your bill with the monitoring SaaS providers.
We are migrating our Spring Boot services from Micrometer with Prometheus exporter to OpenTelemetry Agent. These are some features that we are missing which would be quite useful:
Describe the solution you'd like
Describe alternatives you've considered
If you use OpenTelemetry Collector, it is possible to apply those filters in the processor.
I cannot find any alternative at the moment for the histogram.
Our solution at the moment is to use the OpenTelemetry Collector to scrape from the prometheus endpoint exposed in the services, avoiding using the agent. In this case, we would have fully control of the metrics we expose. However, our end goal is using the agent.
The text was updated successfully, but these errors were encountered: