The result of MAL sum aggregation operation is not as expected #9348
-
Hi, I want to aggregate some prometheus metrics from a k8s service, and I define otel colletor like this:
And My MAL Script is:
The sample family is like 'server_request_count{service="my_service", status=, host_name=<pod_name>}', and I expect to get the summation of server_request_count by all status and all host_name. But the result is the average of them, which confused me. For example, I have 2 pods, the sample family like this: Is my understanding of MAL's aggregation operation wrong? Or what should I do to make the result as my excepted? Thank you very much! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 11 replies
-
You need sum downsampling. You don't define it, the default is avg. |
Beta Was this translation helpful? Give feedback.
You need sum downsampling. You don't define it, the default is avg.