diff options
| author | 2024-05-04 17:48:31 +0200 | |
|---|---|---|
| committer | 2024-05-06 13:37:59 +0200 | |
| commit | 29138efe3a47574e55f22a6d71b4ef1d038a67c5 (patch) | |
| tree | cd9c683d94e52fae630fad602d96d289e6ad68f1 /ansible/roles | |
| parent | Perform fail2ban bans directly via nftables (diff) | |
install blackbox exporter as part of out monitoring stack
Diffstat (limited to 'ansible/roles')
| -rw-r--r-- | ansible/roles/prometheus-blackbox-exporter/README.md | 3 | ||||
| -rw-r--r-- | ansible/roles/prometheus-blackbox-exporter/tasks/main.yaml | 7 | ||||
| -rw-r--r-- | ansible/roles/prometheus/defaults/main.yml | 47 |
3 files changed, 10 insertions, 47 deletions
diff --git a/ansible/roles/prometheus-blackbox-exporter/README.md b/ansible/roles/prometheus-blackbox-exporter/README.md new file mode 100644 index 0000000..d84e7ed --- /dev/null +++ b/ansible/roles/prometheus-blackbox-exporter/README.md @@ -0,0 +1,3 @@ +# Role "prometheus-blackbox-exporter" + +Installs `prometheus-blackbox-exporter` on target hosts. diff --git a/ansible/roles/prometheus-blackbox-exporter/tasks/main.yaml b/ansible/roles/prometheus-blackbox-exporter/tasks/main.yaml new file mode 100644 index 0000000..bba364c --- /dev/null +++ b/ansible/roles/prometheus-blackbox-exporter/tasks/main.yaml @@ -0,0 +1,7 @@ +--- +- name: Install prometheus-blackbox-exporter + package: + name: prometheus-blackbox-exporter + state: present + tags: + - role::prometheus-blackbox-exporter diff --git a/ansible/roles/prometheus/defaults/main.yml b/ansible/roles/prometheus/defaults/main.yml deleted file mode 100644 index fc2da50..0000000 --- a/ansible/roles/prometheus/defaults/main.yml +++ /dev/null @@ -1,47 +0,0 @@ ---- -# Default Prometheus configuration sample -prometheus_configuration: - global: - scrape_interval: 15s # Set the scrape interval to every 15 seconds. Default is every 1 minute. - evaluation_interval: 15s # Evaluate rules every 15 seconds. The default is every 1 minute. - # scrape_timeout is set to the global default (10s). - - # Attach these labels to any time series or alerts when communicating with - # external systems (federation, remote storage, Alertmanager). - external_labels: - monitor: 'example' - - # Alertmanager configuration - alerting: - alertmanagers: - - static_configs: - - targets: ['localhost:9093'] - - # Load rules once and periodically evaluate them according to the global 'evaluation_interval'. - rule_files: - - "rules.yml" - - # A scrape configuration containing exactly one endpoint to scrape: - # Here it's Prometheus itself. - scrape_configs: - # The job name is added as a label `job=<job_name>` to any timeseries scraped from this config. - - job_name: 'prometheus' - - # Override the global default and scrape targets from this job every 5 seconds. - scrape_interval: 5s - scrape_timeout: 5s - - # metrics_path defaults to '/metrics' - # scheme defaults to 'http'. - - static_configs: - - targets: ['localhost:9090'] - - - job_name: node - # If prometheus-node-exporter is installed, grab stats about the local - # machine by default. - static_configs: - - targets: ['localhost:9100'] - -prometheus_rules: - groups: [] |