Skip to content

Commit

Permalink
feat: add icmp probing (ping) (#97)
Browse files Browse the repository at this point in the history
* feat: add icmp probing (ping)
* feat: ping proxy1 and proxy2
  • Loading branch information
alexgarel authored Dec 11, 2023
1 parent 519f797 commit ca73995
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
5 changes: 5 additions & 0 deletions configs/blackbox_exporter/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@ modules:
insecure_skip_verify: false
preferred_ip_protocol: "ip4" # defaults to "ip6"
ip_protocol_fallback: false # no fallback to "ip6"
icmp: # aka ping
prober: icmp
timeout: 5s
icmp:
preferred_ip_protocol: "ip4"
# http_post_2xx:
# prober: http
# timeout: 5s
Expand Down
27 changes: 27 additions & 0 deletions configs/prometheus/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -155,3 +155,30 @@ scrape_configs:
- elasticsearch|http://10.1.0.203:9200/_cluster/health?wait_for_status=yellow&timeout=50s
labels:
env: org
- job_name: blackbox-exporter-icmp
metrics_path: /probe
scrape_interval: 60s
params:
module: [icmp_probe]
relabel_configs:
- source_labels: [__address__]
regex: ^([^|]+)\|(.+)$ # splits target by | and uses 2nd token as target for blackbox_exporter
replacement: ${2}
target_label: __param_target
- source_labels: [__address__]
regex: (.+)\|(.+) # splits target by | and uses 1st token as 'app' label
replacement: ${1}
target_label: app
- source_labels: [__param_target]
target_label: instance
- replacement: blackbox_exporter:9115
target_label: __address__
static_configs:
- targets:
- ovh1:ovh1.openfoodfacts.org
- proxy1_ovh:proxy1.openfoodfacts.org
- proxy2_free:proxy2.openfoodfacts.org
- ovh2:ovh2.openfoodfacts.org
- ovh3:ovh3.openfoodfacts.org
- off1:off1.openfoodfacts.org
- off2:off2.openfoodfacts.org

0 comments on commit ca73995

Please sign in to comment.