Last active
July 8, 2019 18:00
-
-
Save SuperQ/117c4fe5fa61344e6a77d8b703d6d1b7 to your computer and use it in GitHub Desktop.
Fix Telegraf mysql commands metric names
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
metric_relabel_configs: | |
- source_labels: | |
- __name__ | |
regex: 'mysql_com_(.+)' | |
target_label: command | |
- __name__ | |
regex: 'mysql_com_(.+)' | |
target_label: __name__ | |
replacement: mysql_commands_total |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Turn junos_2636_1_1_1_2_25_operational_status into junos_operational_status | |
metric_relabel_configs: | |
- source_labels: | |
- __name__ | |
regex: 'junos_2636_1_1_1_2_25_operational_status' | |
target_label: __name__ | |
replacement: junos_operational_status |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment