Skip to content

Instantly share code, notes, and snippets.

@dmage
Last active June 14, 2017 15:58
Show Gist options
  • Select an option

  • Save dmage/ec561bae6eb5224f6c2661119eed6cb3 to your computer and use it in GitHub Desktop.

Select an option

Save dmage/ec561bae6eb5224f6c2661119eed6cb3 to your computer and use it in GitHub Desktop.
global:
scrape_interval: 5s
evaluation_interval: 5s
scrape_configs:
- job_name: 'prometheus'
static_configs:
- targets: ['localhost:9090']
- job_name: 'cadvisor'
static_configs:
- targets: ['cadvisor:8080']
- job_name: 'docker-registry'
metrics_path: /extensions/v2/metrics
bearer_token: mysecret
kubernetes_sd_configs:
- role: pod
namespaces:
names:
- default
relabel_configs:
- source_labels: [__meta_kubernetes_pod_label_docker_registry]
regex: default
action: keep
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment