[prometheus] desactivate captive portal and comment code

certbot_on_virtu
Alexandre Iooss 2019-08-17 15:16:33 +02:00
parent c0e91c4d28
commit 94aeb4e8ba
No known key found for this signature in database
GPG Key ID: 6C79278F3FCDCC02
1 changed files with 11 additions and 5 deletions

View File

@ -11,6 +11,7 @@ global:
monitor: 'example' monitor: 'example'
# Alertmanager configuration # Alertmanager configuration
# Use prometheus alertmanager installed on the same machine
alerting: alerting:
alertmanagers: alertmanagers:
- static_configs: - static_configs:
@ -18,18 +19,19 @@ alerting:
# Load rules once and periodically evaluate them according to the global 'evaluation_interval'. # Load rules once and periodically evaluate them according to the global 'evaluation_interval'.
rule_files: rule_files:
- "alert.rules.yml" - "alert.rules.yml" # Monitoring alerts, this is the file you may be searching!
- "django.rules.yml" - "django.rules.yml" # Custom rules specific for Django project monitoring
# A scrape configuration containing exactly one endpoint to scrape: # A scrape configuration containing exactly one endpoint to scrape:
# Here it's Prometheus itself. # Here it's Prometheus itself.
scrape_configs: scrape_configs:
# The .json in file_sd_configs is dynamically reloaded
- job_name: dummy - job_name: dummy
# This reload dynamically the list of targets
# You don't need to restart Prometheus when updating targets.json
file_sd_configs: file_sd_configs:
- files: - files:
- '/etc/prometheus/targets.json' - '/etc/prometheus/targets.json'
- job_name: ups_snmp - job_name: ups_snmp
file_sd_configs: file_sd_configs:
- files: - files:
@ -44,6 +46,7 @@ scrape_configs:
target_label: instance target_label: instance
- target_label: __address__ - target_label: __address__
replacement: 127.0.0.1:9116 replacement: 127.0.0.1:9116
- job_name: unifi_snmp - job_name: unifi_snmp
file_sd_configs: file_sd_configs:
- files: - files:
@ -58,7 +61,10 @@ scrape_configs:
target_label: instance target_label: instance
- target_label: __address__ - target_label: __address__
replacement: 127.0.0.1:9116 replacement: 127.0.0.1:9116
- job_name: django - job_name: django
scheme: https scheme: https
static_configs: static_configs:
- targets: ["portail-captif.crans.org:443"] - targets: []
# Activate this line when the captive portal need monitoring
# - targets: ["portail-captif.crans.org:443"]