Skip to content

Instantly share code, notes, and snippets.

@SpackHack
Created February 29, 2020 18:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save SpackHack/06ddc7e11221ced53d3bbdb52e55f8ff to your computer and use it in GitHub Desktop.
Save SpackHack/06ddc7e11221ced53d3bbdb52e55f8ff to your computer and use it in GitHub Desktop.
prometheus:
url: http://prometheus-server.default.svc
port: 80
rules:
default: false
custom:
- seriesQuery: '{__name__= "sem_metric"}'
seriesFilters: []
resources:
overrides:
kubernetes_namespace:
resource: namespace
kubernetes_pod_name:
resource: pod
name:
matches: "sem_metric"
as: ""
metricsQuery: <<.Series>>{<<.LabelMatchers>>,container_name!="POD"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment