How to filter metrics by type #12969
-
In my metrics environment, histograms and counters/gauges need to be handled differently. I'm trying to set up a filter to Separate out the histograms, but I can't seem to figure out how to match the type. I sent the internal metrics to a stdout sink as json, and got this event.
I added this transform to filter out histogram metrics,
But I get no output from it. According to the schema, there should be a |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
🤔 I'm trying to remember why it gets printed like that, but I think the condition you want is: '.type == "counter" || .type == "gauge"' Ref: https://vector.dev/docs/reference/configuration/transforms/remap/#event-data-model |
Beta Was this translation helpful? Give feedback.
🤔 I'm trying to remember why it gets printed like that, but I think the condition you want is:
'.type == "counter" || .type == "gauge"'
Ref: https://vector.dev/docs/reference/configuration/transforms/remap/#event-data-model