Skip to content

Instantly share code, notes, and snippets.

@cjohnston1158
Created February 9, 2021 14: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 cjohnston1158/46a2541fb464c52a0dea99d46e0f1125 to your computer and use it in GitHub Desktop.
Save cjohnston1158/46a2541fb464c52a0dea99d46e0f1125 to your computer and use it in GitHub Desktop.
prometheus scrape-job for etcd
juju config prometheus scrape-jobs="
- job_name: 'etcd_metrics'
metrics_path: /metrics
scheme: https
scrape_interval: 30s
static_configs:
- targets: ['10.5.0.42:2379']
- targets: ['10.5.1.137:2379']
- targets: ['10.5.1.249:2379']
tls_config:
cert_file: '/var/snap/prometheus/common/certs/etcd_client.crt'
key_file: '/var/snap/prometheus/common/certs/etcd_client.key'
ca_file: '/var/snap/prometheus/common/certs/etcd_ca.crt'
"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment