Generate a new metric from the incoming metrics #21666
omarghader
started this conversation in
General
Replies: 1 comment 5 replies
-
I think the type: aggregate
mode: count
inputs: [...] That transform should count all of the metrics flowing through it and emit the count as a new metric. This was added in a recent version of Vetor: I believe v0.41.0. |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I have a use case where I need to count the incoming metrics and generate a new metric with the label "service_namespace".
Based on the docs, I have found only 2 possible solutions:
The problem: these 2 solutions works well, but they are slow or needs a lot more CPU.
Is there any other alternative to generate this metric? Thanks
Here is the code of the 2 solutions I have
Solution 1
Solution 2
Beta Was this translation helpful? Give feedback.
All reactions