Skip to content

kafka to prometheus metrics #22107

Closed Answered by jszwedko
root-aza asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @root-aza ,

The issue here is that the passport_verifyi_builder_event transform will be emitting logs and not metrics. Rather than using remap which, when fed logs will emit logs, I think you want to use log_to_metric to emit metrics based on the incoming log events. Something like:

transforms:
  my_transform_id:
    type: log_to_metric
    inputs:
      - my-source-or-transform-id
    metrics:
      field: message
      type: counter
      name: logins
      namespace: passport
      tags:
        status: "{{status}}"

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by root-aza
Comment options

You must be logged in to vote
0 replies
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