-
Notifications
You must be signed in to change notification settings - Fork 524
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
Histogram metric support #3195
Comments
For dynamic field mapping, we could use This might be a bit too lax, as it would assume all objects we index are histograms, and might prevent adding support for aggregate_metric later. An extension of Elasticsearch's Alternatively we could enforce a specific field naming, e.g. prefix all histograms with "histogram.". That feels like a cop out to me though, forcing implementation details onto the user. |
Based on the fixed format for histogram fields, we might also be able to detect histograms when processing the input in the apm-server and then add a specific prefix, so the convention is not on the user but auto-applied. In case users search for their specific metric name this might still be an issue. Maybe nesting all of those metrics under a histogram key might be an option. |
I wasn't very clear in my comment, but that's what I meant by that bit you quoted. i.e. store everything with "histogram" as the root key. I think this would be the simplest option working with what we've got, but it means that users need to prefix everything with "histogram." in their queries. Again I wasn't clear, but that's what I meant by "forcing implementation details onto the user". Application developers would record a metric with one name, but then it ends up getting this "histogram." prefix because of implementation details/constraints. Not the end of the world, but I think it would be nice if we could avoid it. |
Opened an ES feature request: elastic/elasticsearch#51341 |
Ran into this odd behaviour while doing some experimentation yesterday: elastic/elasticsearch#51847 Also I created a branch with support for histogram metrics: https://github.com/axw/apm-server/tree/histogram-metrics. Very hacky, and requires explicitly defining field mappings in the index template. |
Can we align the histogram support through APM Server with the Histogram support via Metricbeat, for example for Prometheus, as documented on https://www.elastic.co/guide/en/beats/metricbeat/current/metricbeat-metricset-prometheus-collector.html#_histograms_and_types |
We can, but I'm not convinced we should. I would prefer that we improve the foundation (Elasticsearch) and provide a single, zero-configuration approach. |
https://github.com/axw/apm-server/tree/histogram-metrics-ingest has a basic working prototype. Summary:
No support for summaries yet. There are some complications around optionally supporting min+max sub-fields. |
Part one: #5239 |
Currently, the metrics API only supports recording single value metrics: counters and gauges. We would like to extend the API to also support ingesting pre-aggregated histograms, storing as the histogram field type.
- [ ] Investigate how to implement dynamic field mapping for histogramsFor dynamically mapping histograms, we are currently waiting for elastic/elasticsearch#61939.
The text was updated successfully, but these errors were encountered: