alertmanager resolve_timeout not working

500 views
Skip to first unread message

lefthan...@gmail.com

unread,
Apr 6, 2017, 5:14:58 PM4/6/17
to Prometheus Users
I am trying to change the resolve timeout in alertmanager but the resolved status notification always seems to come at the default 5m in my testing with a local webhook. My test config is below(tried both json and yaml format), is there a conflict with one of the other timers?
{

  "global": {
    "resolve_timeout": "1m",
    "smtp_smarthost": "localhost:25",
    "smtp_from": "alertm...@example.local",
    "smtp_require_tls": false
  },
  "templates": [
    "/etc/alertmanager/template/*.tmpl"
  ],
  "route": {
    "receiver": "default-receiver",
    "group_wait": "10s",
    "group_interval": "5m",
    "repeat_interval": "2m",
    "routes": [
      {
        "receiver": "database-pager",
        "group_wait": "10s",
        "group_by": [
          "datacenter",
          "alertname",
          "job"
        ],
        "match_re": {
          "role": "core|aggregate"
        }
      }
    ]
  },
  "receivers": [
    {
      "name": "database-pager",
      "email_configs": [
        {
          "to": "root@localhost"
        }
      ]
    },
    {
      "name": "default-receiver",
      "webhook_configs": [
        {
          "url": "http://127.0.0.1:8000/webhook"
        }
      ]
    }
  ]
}

Brian Brazil

unread,
Apr 6, 2017, 5:59:04 PM4/6/17
to jeffrey mcauley, Prometheus Users
On 6 April 2017 at 22:14, <lefthan...@gmail.com> wrote:
I am trying to change the resolve timeout in alertmanager but the resolved status notification always seems to come at the default 5m in my testing with a local webhook. My test config is below(tried both json and yaml format), is there a conflict with one of the other timers?

You should never need to change the resolve timeout. You're likely hitting the group_interval, which defaults to 5m.

Brian
 

--
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/856c2d22-3074-4d5a-aa03-366ee9766da7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--

lefthan...@gmail.com

unread,
Apr 6, 2017, 7:19:17 PM4/6/17
to Prometheus Users, lefthan...@gmail.com
it was indeed the group interval, thanks.
To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-use...@googlegroups.com.
To post to this group, send email to promethe...@googlegroups.com.



--
Reply all
Reply to author
Forward
0 new messages