2021-05-07 10:00:46 -05:00
|
|
|
global:
|
2022-03-31 15:34:33 -04:00
|
|
|
scrape_interval: 30s
|
2021-05-07 10:00:46 -05:00
|
|
|
external_labels:
|
|
|
|
monitor: 'my-monitor'
|
|
|
|
|
|
|
|
rule_files:
|
|
|
|
- "/etc/prometheus/prometheus_rules.yml"
|
|
|
|
|
|
|
|
alerting:
|
|
|
|
alertmanagers:
|
|
|
|
- static_configs:
|
|
|
|
- targets:
|
|
|
|
- alertmanager:9093
|
|
|
|
|
|
|
|
scrape_configs:
|
|
|
|
- job_name: 'node-exporter'
|
|
|
|
static_configs:
|
|
|
|
- targets: ['node-exporter:9100']
|
|
|
|
|
|
|
|
- job_name: 'app_servers'
|
|
|
|
static_configs:
|
|
|
|
- targets: ['haproxy']
|
|
|
|
metrics_path: /monitor/app-servers
|
|
|
|
scheme: https
|
|
|
|
tls_config:
|
|
|
|
insecure_skip_verify: true
|
|
|
|
- job_name: 'app_times'
|
|
|
|
static_configs:
|
|
|
|
- targets: ['haproxy']
|
|
|
|
metrics_path: /monitor/app-times
|
|
|
|
scheme: https
|
|
|
|
tls_config:
|
|
|
|
insecure_skip_verify: true
|
|
|
|
- job_name: 'classifiers'
|
|
|
|
static_configs:
|
|
|
|
- targets: ['haproxy']
|
|
|
|
metrics_path: /monitor/classifiers
|
|
|
|
scheme: https
|
|
|
|
tls_config:
|
|
|
|
insecure_skip_verify: true
|
|
|
|
- job_name: 'db_times'
|
|
|
|
static_configs:
|
|
|
|
- targets: ['haproxy']
|
|
|
|
metrics_path: /monitor/db-times
|
|
|
|
scheme: https
|
|
|
|
tls_config:
|
|
|
|
insecure_skip_verify: true
|
|
|
|
- job_name: 'errors'
|
|
|
|
static_configs:
|
|
|
|
- targets: ['haproxy']
|
|
|
|
metrics_path: /monitor/errors
|
|
|
|
scheme: https
|
|
|
|
tls_config:
|
|
|
|
insecure_skip_verify: true
|
|
|
|
- job_name: 'feed_counts'
|
|
|
|
static_configs:
|
|
|
|
- targets: ['haproxy']
|
|
|
|
metrics_path: /monitor/feed-counts
|
|
|
|
scheme: https
|
|
|
|
tls_config:
|
|
|
|
insecure_skip_verify: true
|
|
|
|
- job_name: 'feeds'
|
|
|
|
static_configs:
|
|
|
|
- targets: ['haproxy']
|
|
|
|
metrics_path: /monitor/feeds
|
|
|
|
scheme: https
|
|
|
|
tls_config:
|
|
|
|
insecure_skip_verify: true
|
|
|
|
- job_name: 'load_times'
|
|
|
|
static_configs:
|
|
|
|
- targets: ['haproxy']
|
|
|
|
metrics_path: /monitor/load-times
|
|
|
|
scheme: https
|
|
|
|
tls_config:
|
|
|
|
insecure_skip_verify: true
|
|
|
|
- job_name: 'stories'
|
|
|
|
static_configs:
|
|
|
|
- targets: ['haproxy']
|
|
|
|
metrics_path: /monitor/stories
|
|
|
|
scheme: https
|
|
|
|
tls_config:
|
|
|
|
insecure_skip_verify: true
|
|
|
|
- job_name: 'task_codes'
|
|
|
|
static_configs:
|
|
|
|
- targets: ['haproxy']
|
|
|
|
metrics_path: /monitor/task-codes
|
|
|
|
scheme: https
|
|
|
|
tls_config:
|
|
|
|
insecure_skip_verify: true
|
|
|
|
- job_name: 'task_pipeline'
|
|
|
|
static_configs:
|
|
|
|
- targets: ['haproxy']
|
|
|
|
metrics_path: /monitor/task-pipeline
|
|
|
|
scheme: https
|
|
|
|
tls_config:
|
|
|
|
insecure_skip_verify: true
|
|
|
|
- job_name: 'task_servers'
|
|
|
|
static_configs:
|
|
|
|
- targets: ['haproxy']
|
|
|
|
metrics_path: /monitor/task-servers
|
|
|
|
scheme: https
|
|
|
|
tls_config:
|
|
|
|
insecure_skip_verify: true
|
|
|
|
- job_name: 'task_times'
|
|
|
|
static_configs:
|
|
|
|
- targets: ['haproxy']
|
|
|
|
metrics_path: /monitor/task-times
|
|
|
|
scheme: https
|
|
|
|
tls_config:
|
|
|
|
insecure_skip_verify: true
|
|
|
|
- job_name: 'updates'
|
|
|
|
static_configs:
|
|
|
|
- targets: ['haproxy']
|
|
|
|
metrics_path: /monitor/updates
|
|
|
|
scheme: https
|
|
|
|
tls_config:
|
|
|
|
insecure_skip_verify: true
|
|
|
|
- job_name: 'users'
|
|
|
|
static_configs:
|
|
|
|
- targets: ['haproxy']
|
|
|
|
metrics_path: /monitor/users
|
|
|
|
scheme: https
|
|
|
|
tls_config:
|
|
|
|
insecure_skip_verify: true
|
2022-03-31 15:34:33 -04:00
|
|
|
- job_name: 'django'
|
|
|
|
static_configs:
|
|
|
|
- targets: ['haproxy']
|
|
|
|
metrics_path: /metrics
|
|
|
|
scheme: https
|
|
|
|
tls_config:
|
|
|
|
insecure_skip_verify: true
|
2021-08-10 10:05:50 -05:00
|
|
|
|
2021-09-05 22:41:04 -05:00
|
|
|
#- job_name: 'mongo heap usage'
|
|
|
|
# static_configs:
|
2021-09-15 11:10:31 -05:00
|
|
|
# - targets: ['flask_metrics:5569']
|
2021-09-07 15:09:45 -05:00
|
|
|
# metrics_path: /mongo/heap-usage
|
|
|
|
# scheme: http
|
2021-09-05 22:41:04 -05:00
|
|
|
# tls_config:
|
|
|
|
# insecure_skip_verify: true
|
2021-08-10 10:05:50 -05:00
|
|
|
- job_name: 'mongo objects'
|
|
|
|
static_configs:
|
2021-09-15 11:10:31 -05:00
|
|
|
- targets: ['flask_metrics_mongo:5569']
|
|
|
|
metrics_path: /objects/
|
2021-09-07 15:09:45 -05:00
|
|
|
scheme: http
|
2021-08-10 10:05:50 -05:00
|
|
|
tls_config:
|
|
|
|
insecure_skip_verify: true
|
|
|
|
- job_name: 'mongo repl set lag'
|
|
|
|
static_configs:
|
2021-09-15 11:10:31 -05:00
|
|
|
- targets: ['flask_metrics_mongo:5569']
|
|
|
|
metrics_path: /repl-set-lag/
|
2021-09-07 15:09:45 -05:00
|
|
|
scheme: http
|
2021-08-10 10:05:50 -05:00
|
|
|
tls_config:
|
|
|
|
insecure_skip_verify: true
|
|
|
|
- job_name: 'mongo size'
|
|
|
|
static_configs:
|
2021-09-15 11:10:31 -05:00
|
|
|
- targets: ['flask_metrics_mongo:5569']
|
|
|
|
metrics_path: /size/
|
2021-09-07 15:09:45 -05:00
|
|
|
scheme: http
|
2021-08-10 10:05:50 -05:00
|
|
|
tls_config:
|
|
|
|
insecure_skip_verify: true
|
|
|
|
- job_name: 'mongo ops'
|
|
|
|
static_configs:
|
2021-09-15 11:10:31 -05:00
|
|
|
- targets: ['flask_metrics_mongo:5569']
|
|
|
|
metrics_path: /ops/
|
2021-09-07 15:09:45 -05:00
|
|
|
scheme: http
|
2021-08-10 10:05:50 -05:00
|
|
|
tls_config:
|
|
|
|
insecure_skip_verify: true
|
|
|
|
- job_name: 'mongo page faults'
|
|
|
|
static_configs:
|
2021-09-15 11:10:31 -05:00
|
|
|
- targets: ['flask_metrics_mongo:5569']
|
|
|
|
metrics_path: /page-faults/
|
2021-09-07 15:09:45 -05:00
|
|
|
scheme: http
|
2021-08-10 10:05:50 -05:00
|
|
|
tls_config:
|
|
|
|
insecure_skip_verify: true
|
|
|
|
- job_name: 'mongo page queues'
|
|
|
|
static_configs:
|
2021-09-15 11:10:31 -05:00
|
|
|
- targets: ['flask_metrics_mongo:5569']
|
|
|
|
metrics_path: /page-queues/
|
2021-09-07 15:09:45 -05:00
|
|
|
scheme: http
|
2021-08-10 10:05:50 -05:00
|
|
|
tls_config:
|
|
|
|
insecure_skip_verify: true
|
2021-09-21 09:51:41 -05:00
|
|
|
|
|
|
|
- job_name: 'redis active connections'
|
|
|
|
static_configs:
|
2022-01-04 12:26:47 -05:00
|
|
|
- targets: ['flask_metrics_redis:5589']
|
2021-09-21 09:51:41 -05:00
|
|
|
metrics_path: /active-connections/
|
|
|
|
scheme: http
|
|
|
|
tls_config:
|
|
|
|
insecure_skip_verify: true
|
|
|
|
- job_name: 'redis commands'
|
|
|
|
static_configs:
|
2022-01-04 12:26:47 -05:00
|
|
|
- targets: ['flask_metrics_redis:5589']
|
2021-09-21 09:51:41 -05:00
|
|
|
metrics_path: /commands/
|
|
|
|
scheme: http
|
|
|
|
tls_config:
|
|
|
|
insecure_skip_verify: true
|
|
|
|
- job_name: 'redis connects'
|
|
|
|
static_configs:
|
2022-01-04 12:26:47 -05:00
|
|
|
- targets: ['flask_metrics_redis:5589']
|
2021-09-21 09:51:41 -05:00
|
|
|
metrics_path: /connects/
|
|
|
|
scheme: http
|
|
|
|
tls_config:
|
|
|
|
insecure_skip_verify: true
|
|
|
|
- job_name: 'redis size'
|
|
|
|
static_configs:
|
2022-01-04 12:26:47 -05:00
|
|
|
- targets: ['flask_metrics_redis:5589']
|
2021-09-21 09:51:41 -05:00
|
|
|
metrics_path: /size/
|
|
|
|
scheme: http
|
|
|
|
tls_config:
|
|
|
|
insecure_skip_verify: true
|
|
|
|
- job_name: 'redis memory'
|
|
|
|
static_configs:
|
2022-01-04 12:26:47 -05:00
|
|
|
- targets: ['flask_metrics_redis:5589']
|
2021-09-21 09:51:41 -05:00
|
|
|
metrics_path: /memory/
|
|
|
|
scheme: http
|
|
|
|
tls_config:
|
|
|
|
insecure_skip_verify: true
|
|
|
|
- job_name: 'redis used memory'
|
|
|
|
static_configs:
|
2022-01-04 12:26:47 -05:00
|
|
|
- targets: ['flask_metrics_redis:5589']
|
2021-09-21 09:51:41 -05:00
|
|
|
metrics_path: /used-memory/
|
|
|
|
scheme: http
|
2021-10-11 11:09:58 -05:00
|
|
|
tls_config:
|
|
|
|
insecure_skip_verify: true
|
|
|
|
|
|
|
|
- job_name: 'elastic search exporter'
|
|
|
|
static_configs:
|
|
|
|
- targets: ['elasticsearch_exporter:9114']
|
|
|
|
scheme: http
|
2021-10-12 10:08:40 -05:00
|
|
|
tls_config:
|
|
|
|
insecure_skip_verify: true
|
|
|
|
|
|
|
|
- job_name: 'postgres exporter'
|
|
|
|
static_configs:
|
|
|
|
- targets: ['postgres_exporter:9187']
|
|
|
|
scheme: http
|
2021-12-10 16:55:20 -05:00
|
|
|
tls_config:
|
|
|
|
insecure_skip_verify: true
|
|
|
|
|
2022-01-04 12:26:47 -05:00
|
|
|
- job_name: 'haproxy state'
|
2021-12-10 16:55:20 -05:00
|
|
|
static_configs:
|
2022-01-04 12:26:47 -05:00
|
|
|
- targets: ['flask_metrics_haproxy:5599']
|
2021-12-15 14:17:48 -05:00
|
|
|
metrics_path: /state/
|
|
|
|
scheme: http
|
|
|
|
tls_config:
|
|
|
|
insecure_skip_verify: true
|
2022-01-04 12:26:47 -05:00
|
|
|
scrape_interval: 30s
|