mirror of
https://github.com/KevinMidboe/playbooks-retailor.git
synced 2025-10-29 09:40:34 +00:00
ansible playbooks for retailor.io infrastructure
This commit is contained in:
50
roles/prometheus-grafana/templates/prometheus.yml.j2
Normal file
50
roles/prometheus-grafana/templates/prometheus.yml.j2
Normal file
@@ -0,0 +1,50 @@
|
||||
global:
|
||||
scrape_interval: 15s
|
||||
scrape_configs:
|
||||
- job_name: prometheus
|
||||
static_configs:
|
||||
- targets: ['localhost:9090']
|
||||
|
||||
- job_name: cadvisor-local
|
||||
static_configs:
|
||||
- targets: ['10.0.0.2:8080']
|
||||
relabel_configs:
|
||||
- source_labels: [__address__]
|
||||
target_label: instance
|
||||
replacement: 'grafana'
|
||||
|
||||
- job_name: node_exporter-local
|
||||
static_configs:
|
||||
- targets: ['10.0.0.2:9100']
|
||||
relabel_configs:
|
||||
- source_labels: [__address__]
|
||||
target_label: instance
|
||||
replacement: grafana
|
||||
|
||||
- job_name: fail2ban_exporter-local
|
||||
static_configs:
|
||||
- targets: ['10.0.0.2:9191']
|
||||
relabel_configs:
|
||||
- source_labels: [__address__]
|
||||
target_label: instance
|
||||
replacement: grafana
|
||||
|
||||
- job_name: nginx_prometheus_exporter
|
||||
static_configs:
|
||||
- targets: ['web1:9113', 'web2:9113', 'loadbalancer:9113']
|
||||
|
||||
- job_name: redis-exporter
|
||||
static_configs:
|
||||
- targets: ['cache:9121']
|
||||
|
||||
- job_name: node_exporter
|
||||
static_configs:
|
||||
- targets: ['web1:9100', 'web2:9100', 'worker1:9100', 'worker2:9100', 'cache:9100', 'loadbalancer:9100', 'elasticsearch:9100']
|
||||
|
||||
- job_name: fail2ban_exporter
|
||||
static_configs:
|
||||
- targets: ['web1:9191', 'web2:9191', 'worker1:9191', 'worker2:9191', 'cache:9191', 'loadbalancer:9191', 'elasticsearch:9191']
|
||||
|
||||
- job_name: cadvisor
|
||||
static_configs:
|
||||
- targets: ['elasticsearch:8080']
|
||||
Reference in New Issue
Block a user