[prometheus-users] How to add a new receiver in alertmanager via some api

2020-05-03 Thread Adarsh Kumar Pandey
I was wondering if it is possible to add a receiver by some sort of post to the api provided by alertmanager... Also I could not find the swagger page of my alertmanager that I could use.. Thanks for any help! -- You received this message because you are subscribed to the Google Groups

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

2020-04-15 Thread Adarsh Kumar Pandey
Yeah I eliminated startsAt endsAt and fingerprint and its working now ... but i read in other answers that to resolve an alert when generating an alert we can use endsAt and mention some past time to disable that alert... Thanks once again for the help... -- You received this message because

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

2020-04-15 Thread Adarsh Kumar Pandey
Could you please send a simple(bare minimum) alert sample that should be sent... and do i have to make a major change in moving from v1 to v2 or just the url will change? thanks -- You received this message because you are subscribed to the Google Groups "Prometheus Users" group. To

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

2020-04-15 Thread Adarsh Kumar Pandey
e acts as "empty value" so if you're not > trying to set a custom endsAt then try skipping it > > You're using v1 API, which will go away soon, you're better of switching > to v2, which has openapi spec so you can generate a client using > https://github.com/prometheus

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

2020-04-15 Thread Adarsh Kumar Pandey
Hie all, I was trying to generate alerts from a custom application which will do a POST at the alertmanager endpoint /api/v1/alerts When sending alerts as a json I'm getting an error saying: level=error ts=2020-04-15T08:48:28.224Z caller=api.go:780 component=api version=v1 msg="API error"

Re: [prometheus-users] How Alertmanager can receive alerts from source other than prometheus server?

2020-04-12 Thread Adarsh Kumar Pandey
I read similar related questions and I think I found the answer to my question here: https://groups.google.com/forum/#!searchin/prometheus-users/alerts$20client|sort:date/prometheus-users/ZR_HRCG9ODg/BUYBvjzIAgAJ Thanks for the response though .. I really appreciate you taking the time to help

Re: [prometheus-users] How Alertmanager can receive alerts from source other than prometheus server?

2020-04-12 Thread Adarsh Kumar Pandey
to Prometheus.. Thanks.. On Sunday, 12 April 2020 12:24:57 UTC+5:30, Christian Hoffmann wrote: > > Hi, > > On 4/12/20 8:32 AM, Adarsh Kumar Pandey wrote: > > I just wanted to know that is it possible to get alerts generated from > > sources other than Prometheus alertin

Re: [prometheus-users] Prometheus Alert Manager | custom ML client to send alerts

2020-04-12 Thread Adarsh Kumar Pandey
Hie Brian first of all thanks for your contribution to Prometheus ... I also had a similar need and I did read the documentation but I could not find the API endpoint where I need to do the POST ..like to reload we had /-/reload Forgive me if the question seems a little basic.. I hope to hear

[prometheus-users] How Alertmanager can receive alerts from source other than prometheus server?

2020-04-12 Thread Adarsh Kumar Pandey
Hi all, I just wanted to know that is it possible to get alerts generated from sources other than Prometheus alerting rules ? can you please point me to the documentation of that. Thanks and Regards Adarsh -- You received this message because you are subscribed to the Google Groups

[prometheus-users] Re: How to put a boolean expression in alerting rule

2020-04-09 Thread Adarsh Kumar Pandey
Apologies for that.. On Thursday, 9 April 2020 16:38:40 UTC+5:30, Brian Candler wrote: > > What do you mean by "can even have a simple boolean expression in alerting > expression in the configuration file"? > > Can you paste an example of the expression you have a problem > understanding? > >

[prometheus-users] How to put a boolean expression in alerting rule

2020-04-09 Thread Adarsh Kumar Pandey
I just watched Julius mention that we can even have a simple boolean expression in alerting expression in the configuration file. Please refer a video on YouTube named something like "Intro+Deep dive into prometheus" at time around 15:51 My question is how we can we do that because my

[prometheus-users] Re: can I dynamically set alert expression and not have predefined or hardcoded rules

2020-04-08 Thread Adarsh Kumar Pandey
Much appreciate your response..I will look into these links..thanks ! On Wednesday, 8 April 2020 16:52:01 UTC+5:30, Brian Candler wrote: > > No I haven't - my alerting rules are implemented by hand. I don't have to > add any new rules when adding new hosts, because the rules apply to all >

[prometheus-users] Re: can I dynamically set alert expression and not have predefined or hardcoded rules

2020-04-08 Thread Adarsh Kumar Pandey
Thanks so much Brian I really needed an insight on this ... so I guess you have implemented this. If its not too much to ask then can I ask for a sample code please. On Wednesday, 8 April 2020 12:20:52 UTC+5:30, Brian Candler wrote: > > Yes: write a script to write the new alerting rules to a

[prometheus-users] can I dynamically set alert expression and not have predefined or hardcoded rules

2020-04-07 Thread Adarsh Kumar Pandey
Hie there .. I hope you are good and safe. >From what I have read, I have an understanding that in prometheus we have to mention all the alert generating rules in a rules file before we can use it to generate alerts. Is there any other possibility to have the alerting rules comming from some

Re: [prometheus-users] Does anyone has any idea about any possibility for sending alerts to kafka

2020-04-07 Thread Adarsh Kumar Pandey
t; /MR > > On Tue, Apr 7, 2020 at 3:44 PM Adarsh Kumar Pandey > wrote: > >> Hie Im new to prometheus and I need your expert advice on whether we can >> have alerts from alertmanager sent to kafka for facilitating some model >> where I can get the data about the

Re: [prometheus-users] Re: how to read the log file generated by alertmanager

2020-04-07 Thread Adarsh Kumar Pandey
Yeah after this much only I was not able to implement the database saving function so I was wondering if someone has any codes or suggestions for that. On Tuesday, 7 April 2020 21:32:20 UTC+5:30, Matthias Rampke wrote: > > I don't think looking at alertmanager's internal storage is a good >

[prometheus-users] Re: Does anyone has any idea about any possibility for sending alerts to kafka

2020-04-07 Thread Adarsh Kumar Pandey
If you have a alertmanager-kafka-producer for this and if you could share that with us it would be great and we all will be humbled by your generosity . -- You received this message because you are subscribed to the Google Groups "Prometheus Users" group. To unsubscribe from this group and

[prometheus-users] Re: how to read the log file generated by alertmanager

2020-04-07 Thread Adarsh Kumar Pandey
/alerts.json','a') as f: json.dump(data,f) return redirect('/') else: return "nothing" if __name__=='__main__': app.run() On Monday, 6 April 2020 12:20:16 UTC+5:30, Adarsh Kumar Pandey wrote: > > I saw that alertmanager generates a nflog file ..I w

[prometheus-users] Re: how to read the log file generated by alertmanager

2020-04-07 Thread Adarsh Kumar Pandey
this issue then you have just helped a lot of users and a ton of thanks to you for that !!! On Monday, 6 April 2020 12:20:16 UTC+5:30, Adarsh Kumar Pandey wrote: > > I saw that alertmanager generates a nflog file ..I was wondering how that > works and can i get all the alerts fired from that

[prometheus-users] Does anyone has any idea about any possibility for sending alerts to kafka

2020-04-07 Thread Adarsh Kumar Pandey
Hie Im new to prometheus and I need your expert advice on whether we can have alerts from alertmanager sent to kafka for facilitating some model where I can get the data about the alerts fired , in addition to having the alerts as email or sms ... Thanks for your time !! -- You received this

[prometheus-users] Re: how to read the log file generated by alertmanager

2020-04-06 Thread Adarsh Kumar Pandey
Does prometheus (not the alertmanager log)stores the alerts generated somewhere and where to find it...? Thanks for any suggestion and insights...I really appreciate the community efforts. On Monday, 6 April 2020 12:20:16 UTC+5:30, Adarsh Kumar Pandey wrote: > > I saw that alertm

[prometheus-users] how to read the log file generated by alertmanager

2020-04-06 Thread Adarsh Kumar Pandey
I saw that alertmanager generates a nflog file ..I was wondering how that works and can i get all the alerts fired from that log file? -- You received this message because you are subscribed to the Google Groups "Prometheus Users" group. To unsubscribe from this group and stop receiving emails

[prometheus-users] Re: Saving alerts generated in a database for further procesing like offline querying and ML

2020-04-02 Thread Adarsh Kumar Pandey
Anyone has any other solutions for this please let me know Thanks. On Thursday, 2 April 2020 08:48:02 UTC+5:30, Adarsh Kumar Pandey wrote: > > I wanted to store the alerts generated by prometheus into a separate > database and I know that alertsnitch provides this feature but what if

[prometheus-users] Re: Saving alerts generated in a database for further procesing like offline querying and ML

2020-04-01 Thread Adarsh Kumar Pandey
Thanks for the hint I will try that but I'm not much of a coder so I will have to learn to do that ..meanwhile if you could make my life easier by pointing me to the right direction I will be humbled by that. Rgards, Adarsh On Thursday, 2 April 2020 08:48:02 UTC+5:30, Adarsh Kumar Pandey

[prometheus-users] Saving alerts generated in a database for further procesing like offline querying and ML

2020-04-01 Thread Adarsh Kumar Pandey
I wanted to store the alerts generated by prometheus into a separate database and I know that alertsnitch provides this feature but what if I want to use another database then how to do that? Does prometheus logs the alerts firing internally and how to access that any idea? Thanks and much