[prometheus-users] Re: Alertmanager API cant create silences

2020-05-11 Thread Łukasz Mierzwa
What are you passing under "id"? You only pass id when editing existing silence (it must be an id of a valid active silence), not when creating a new one. On Monday, 11 May 2020 14:46:47 UTC+1, TechJunkie wrote: > > Hie all , > I am struck trying to POST a python dictionary as json for creating

[prometheus-users] Re: Replace absent values with zeros

2020-05-02 Thread Łukasz Mierzwa
You could also just tell grafana to render null values as zeros. There's a "Null value" select on the visualisation tab: [image: Screen Shot 2020-05-02 at 15.41.45.png] On Saturday, 2 May 2020 11:26:12 UTC+1, Albert Aleksandrov wrote: > > Hi all! > I have some areas with absent values

[prometheus-users] Re: API error Bad data when sending alerts via another application

2020-04-15 Thread Łukasz Mierzwa
This is not valid json, paste it to https://jsonlint.com/ to verify. Valid JSON body example would be: [{ "status": "firing", "labels": { "alertname": "InstanceDown", "instance": "localhost:9100", "job": "node", "severity": "warning" }, "annotations": {}, "startsAt": "2020-04-06T19:57:38.628106884

[prometheus-users] [ANN] controlling what silences users can create using karma

2020-03-10 Thread Łukasz Mierzwa
Authentication, authorization and multi tenancy comes up a lot in questions so I've decided to take a stab at it after a feature request ( https://github.com/prymitive/karma/issues/1347). Starting with 0.56 karma will now have ability to block silences from being added to alertmanager using ACL r

[prometheus-users] Re: Alert for high-frequency changes of a metric?

2020-02-28 Thread Łukasz Mierzwa
Did you try something like "changes(foo[30m]) > 10" ? That would alert if the value changed 10 times in the last 30 minutes. On Friday, 28 February 2020 16:21:53 UTC, Moses Moore wrote: > > (Looks like my previous ask of this question got spamblocked because I > included a screenshot. c'est la

[prometheus-users] Re: Applying same alert rule on different set of machines with different thresholds

2020-02-18 Thread Łukasz Mierzwa
Did you see this post: https://www.robustperception.io/using-time-series-as-alert-thresholds? That pattern works well On Tuesday, 18 February 2020 13:52:42 UTC, Saurabh Garg wrote: > > Hi All, > > Can anyone please share the configuration to apply an alert rule on > different set of machines w