Skip to content

Instantly share code, notes, and snippets.

@SuperQ
Created November 3, 2017 16:42
Show Gist options
  • Save SuperQ/a0a6cff60d899b49812d7b9ff9be3b19 to your computer and use it in GitHub Desktop.
Save SuperQ/a0a6cff60d899b49812d7b9ff9be3b19 to your computer and use it in GitHub Desktop.
Comet metric name fuckery
metric_relabel_configs:
- source_labels: [__name__]
target_label: channel
regex: ch(\d+).+
- source_labels: [__name__]
target_label: __name__
regex: ch\d+(.+)
replacement: ch${1}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment