security_ansible_playbook/roles/promotheus/templates/prometheus.yml.j2

35 lines
709 B
Django/Jinja

global:
scrape_interval: 15s
evaluation_interval: 15s
rule_files:
- "/etc/prometheus/security_rules.yml"
alerting:
alertmanagers:
- static_configs:
- targets:
- localhost:9093
scrape_configs:
- job_name: 'prometheus'
static_configs:
- targets: ['localhost:9090']
- job_name: 'node'
static_configs:
- targets: ['localhost:9100']
- job_name: 'wazuh'
static_configs:
- targets: ['localhost:55000']
metrics_path: '/api/monitoring'
- job_name: 'vault'
static_configs:
- targets: ['localhost:8200']
metrics_path: '/v1/sys/metrics'
params:
format: ['prometheus']
bearer_token_file: /etc/prometheus/vault_token