Skip to content

How to filter metrics by type #12969

Answered by spencergilbert
Quyzi asked this question in Q&A
Discussion options

You must be logged in to vote

🤔 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

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@Quyzi
Comment options

@spencergilbert
Comment options

Answer selected by Quyzi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants