Skip to content

Conversation

@wthahaha
Copy link

@wthahaha wthahaha commented May 7, 2022

when I use prometheus's fedration function, I must filter metrics data, so, I think it should add prefix like "dsc_"...

prometheus.yml

 49   - job_name: 'federation'
 50     scrape_interval: 10s
 51     honor_labels: true
 52     metrics_path: '/federate'
 53     params:
 54       'match[]':
 61         - '{__name__=~"^redis.*"}'
 62         - '{__name__=~"^ipmi.*"}'
 63         - '{__name__=~"^dsc.*"}'

jelu added a commit to jelu/dsc-datatool that referenced this pull request May 9, 2022
- `output/prometheus`: Close DNS-OARC#93: Add module option to set prefix on all metric names
@jelu jelu mentioned this pull request May 9, 2022
@jelu
Copy link
Member

jelu commented May 9, 2022

Thanks for the idea! I've reimplemented this using a module option, see man dsc-datatool-output prometheus once you've installed the develop branch.

@jelu jelu closed this in #94 May 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants