Prometheus service discovery
(Redirected from Ec2 sd config)
Jump to navigation
Jump to search
Examples[edit]
- job_name: 'ec2_service_discovery'
scrape_interval: 15s
scrape_timeout: 10s
metrics_path: '/metrics'
scheme: http
ec2_sd_configs:
- region: eu-west-1
profile: 'arn:aws:iam::01234567890:role/your_Role'
port: 9100
relabel_configs:
# Use the instance ID as the instance label
- source_labels: [__meta_ec2_tag_Name]
target_label: instance
Related[edit]
See also[edit]
prometheus.yml, /etc/default/prometheus, prometheus.args, job_name:, targets:, Prometheus service discovery,static_configs:- Prometheus: Prometheus installation,
9090, storage, Prometheus exporters: Node exporter9100, Blackbox exporter, Prometheus alertmanager (changelog), Prometheus versions, Prometheus Node exporter releases,promtool,amtool, tsdb,/etc/default/prometheus, /etc/prometheus/prometheus.yml, journalctl -u prometheus,/etc/default/prometheus-node-exporter, PromQL,alert:, Prometheus Operator, Thanos, VictoriaMetrics, PushGateway, Prometheus API,values.yml, Amazon Managed Service for Prometheus
Advertising: