-
Notifications
You must be signed in to change notification settings - Fork 525
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
Extend metrics intake to accept histograms #4884
Comments
Application metrics sent by agents currently look like: {
"timestamp": 123456,
"tags": {"a": "b", "c": "d"},
"samples": {
"metric_name": {
"value": 123.456
}
}
} There's nothing saying whether a metric is a gauge (point in time) or a counter (monotonically increasing). It's also not possible to record multi-value aggregated metrics (histograms, summaries). I propose we extend the object format of samples with additional optional fields:
The server will use
Example latency distribution metric: {
"timestamp": 123456,
"samples": {
"latency_distribution": {
"type": "distribution",
"unit": "micros",
"counts": [3, 2, 1, 0, 0, 1],
"values": [0.01, 0.1, 1, 10, 100, 1000]
}
}
} Example summary metric: {
"timestamp": 123456,
"samples": {
"span.self_time": {
"type": "summary",
"unit": "micros",
"sum": "123.456",
"count": "7"
}
}
} |
Looks good!
Should agents update send their breakdown metrics in the new format if they are sending data to an APM Server that understands the new format? |
It will eventually be used by Kibana: elastic/kibana#82348
I think for resetting counters we should omit
No, a summary type will end up in a single
Eventually yes, but I don't think we should do that just now. We'll need to figure out a migration plan. I'm not sure how that'll work yet.
I think that would be best. The current JSON Schema says that "value" is required, but that field will not be sent for histograms or summaries. |
Due to some issues related to the |
Agents should be able to send self-describing histogram (values and counts) and summary (sum and count) metrics. We need to be able to identify the metric type, either from an explicit "type" field or inferred from the type-specific fields that are specified (e.g. counts & values specified? it's a histogram).
The text was updated successfully, but these errors were encountered: