level=error ts=2018-09-20T20:35:33.377247181Z caller=notify.go:332 component=dispatcher msg="Error on notify" err="context deadline exceeded"
level=error ts=2018-09-20T20:35:33.377314472Z caller=dispatch.go:280 component=dispatcher msg="Notify for alerts failed" num_alerts=1 err="context deadline exceeded"
sh-4.2# curl -v json-server:3030/EspServiceRequest
* About to connect() to json-server port 3030 (#0)
* Trying 192.168.145.41...
* Connected to json-server (192.168.145.41) port 3030 (#0)
> GET /EspServiceRequest HTTP/1.1
> User-Agent: curl/7.29.0
> Host: json-server:3030
> Accept: */*
>
< HTTP/1.1 200 OK
< X-Powered-By: Express
< Vary: Origin, Accept-Encoding
< Access-Control-Allow-Credentials: true
< Cache-Control: no-cache
< Pragma: no-cache
< Expires: -1
< X-Content-Type-Options: nosniff
< Content-Type: application/json; charset=utf-8
< Content-Length: 2317
< ETag: W/"90d-uFTpG0JU/P9t/SwjtDitnIPYSAM"
< Date: Thu, 20 Sep 2018 20:44:25 GMT
< Connection: keep-alive
sh-4.2# cat /etc/prometheus/alert.rules
groups:
- name: sample1
rules:
- alert: sample_alert
expr: testmetric == 0
labels:
severity: warning
instance: i1
annotations:
summary: this is sample summary for {{ $labels.instance }}
sh-4.2# cat /etc/prometheus/alertmanager.yml
global:
resolve_timeout: 1m
route:
group_by: [instance]
group_wait: 1m
group_interval: 5m
repeat_interval: 1h
receiver: 'alert_recv'
receivers:
- name: 'alert_recv'
webhook_configs:
- url: 'json-server:3030/EspServiceRequest'

--
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 prometheus-users+unsubscribe@googlegroups.com.
To post to this group, send email to prometheus-users@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/b467f5bb-65e0-48b1-a8a6-edad6080b1a3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.