Hi ,
I have added urls for blackbox monitoring in prometheus and also added 
alert if url is not giving 302 redirect for 5mins. But the output of 
blackbox exporter is constantly giving zero value if the urls give 302 
value still and constant alerts are coming which are false. Can someone pls 
help me with this.It was working fine for past days but today it gives this 
weird issue .

prometheus.yml

  - job_name: 'blackbox'
    metrics_path: /probe
    params:
      module: [http_3xx] # Look for a HTTP 302 response.
    static_configs:
      - targets:
        - https://..........

    relabel_configs:
      - source_labels: [__address__]
        target_label: __param_target
      - source_labels: [__param_target]
        target_label: instance
      - target_label: __address__
        replacement: localhost:9115 # blackbox exporter

Alertmanager.yml configuration :


  - receiver: Monitoring
    group_wait: 15m
    match_re:
      severity: url-down

alert.rules.yml :


  - alert: URL-Monitoring
    expr: (sum(probe_success{job="blackbox"}) by (instance)) == 0
    for: 5m
    labels:
      severity: url-down
    annotations:
      summary: Health API endpoint down for '{{ $labels.instance }}'





-- 
You received this message because you are subscribed to the Google Groups 
"Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/69ff2796-4b80-4367-a1a8-37d1df38a674o%40googlegroups.com.

Reply via email to