diff options
| author | 2024-05-27 22:44:20 +0200 | |
|---|---|---|
| committer | 2024-05-27 22:44:20 +0200 | |
| commit | 7f667d29df62372c195f565948fed50978b7448a (patch) | |
| tree | ae14fa3e68affdf85d4565ca2b11ba4e56780e34 /ansible/host_vars | |
| parent | Group and deploy certificates per target host (#316) (diff) | |
Open port 9090 to allow hitting the prometheus instance (#317)
* add a monitoring group for better hosts distinction
* run prometheus with TLS
* add prometheus connections nftables config
Diffstat (limited to 'ansible/host_vars')
| -rw-r--r-- | ansible/host_vars/lovelace/prometheus.yml | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/ansible/host_vars/lovelace/prometheus.yml b/ansible/host_vars/lovelace/prometheus.yml index 5d114a1..cf748d0 100644 --- a/ansible/host_vars/lovelace/prometheus.yml +++ b/ansible/host_vars/lovelace/prometheus.yml @@ -1,4 +1,13 @@ --- + +prometheus_cmdline_options: " --web.config.file=/etc/prometheus/web_config.yml" + +prometheus_web_configuration: + tls_server_config: + cert_file: "/etc/letsencrypt/live/prometheus.{{ inventory_hostname }}.box.pydis.wtf/fullchain.pem" + key_file: "/etc/letsencrypt/live/prometheus.{{ inventory_hostname }}.box.pydis.wtf/privkey.pem" + + prometheus_configuration: global: scrape_interval: 15s # Set the scrape interval to every 15 seconds. Default is every 1 minute. |