riodpp
riodpp

Reputation: 85

How to add additional statsd mapping config in airflow helm chart

In standalone statsd-exporter we can add statsd config mapping file (yml) to parameter --statsd.mapping-config (reference), so we can mapping metrics that send from airflow. But when I use airflow helm chart, I confuse how we can add additional config mapping in default statsd-exporter from airflow chart? Thank you

Actually, I found parameter extraMappings=[] in values.yml that have possibilities to add mapping, but I still don't know how to use it enter image description here

Upvotes: 0

Views: 1451

Answers (1)

Jarek Potiuk
Jarek Potiuk

Reputation: 20097

I believe you need to add mappings simply by adding an array in your custom my_values.yml:

extraMappings:
  - match: "test.*.*.counter"
    name: "..."
    labels:
      provider: "..."
  - match: "test2.*.*.counter"
    name: "$..."
    labels:
      provider: "..."

And then using your file:

helm install -f my_values.yaml CHART_SPECIFICATION

You can see sime examples of mapping in the reference you mentioned.

Upvotes: 1

Related Questions