[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" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to prometheus-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/fda06efa-4eff-46dc-afd5-1769a4d16dbd%40googlegroups.com.


[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 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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/916d1aea-9e0a-4dc1-b487-ce0d207cea2e%40googlegroups.com.


[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 unsubscribe from this group and stop receiving emails from it, send an email 
to prometheus-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/8545e3a4-79d9-42d6-baf1-d9af35373790%40googlegroups.com.


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

2020-04-15 Thread Adarsh Kumar Pandey
yes sure i'll look into that too..Thanks so much for such a detailed 
answer..I really appreciate that..

On Wednesday, 15 April 2020 15:07:16 UTC+5:30, Łukasz Mierzwa wrote:
>
> 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+05:30",
> "endsAt": "0001-01-01T00:00:00Z",
> "generatorURL": "http://adarsh-***";,
> "fingerprint": ""
> }]
>
> You seem to be sending a some internal attributes
> status - there's no "firing" status in alertmanager, and it handles status 
> internally so you should skip it
> fingerprint - AFAIR that's calculated internally from alert body, try 
> skipping it
> endsAt "0001-01-01T00:00:00Z" value 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/alertmanager/blob/master/api/v2/openapi.yaml
>
> On Wednesday, 15 April 2020 09:55:36 UTC+1, Adarsh Kumar Pandey wrote:
>>
>> 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" err="bad_data: json: cannot unmarshal string 
>> into Go value of type []*types.Alert"
>>
>> my alert content is (I have censored sensitive contents as ***):
>>
>> alert='''[{"status": "firing", "labels": {"alertname": "InstanceDown", 
>> "instance": "localhost:9100", "job": "node", "severity": "warning"}, 
>> "annotations": {}, "startsAt": "2020-04-06T19:57:38.628106884+05:30", 
>> "endsAt": "0001-01-01T00:00:00Z", "generatorURL": "http://adarsh-***";, 
>> "fingerprint": ""}]'''
>>
>> Please help me out guys I'm not able to understand what i'm doing wrong 
>> ... as far as i've read this seems to me in correct format (without the 
>> json like representation)
>> thanks
>>
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/2e8e674c-27a0-4f92-a024-ccc724ccae8b%40googlegroups.com.


[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" err="bad_data: json: cannot unmarshal string 
into Go value of type []*types.Alert"

my alert content is (I have censored sensitive contents as ***):

alert='''[{"status": "firing", "labels": {"alertname": "InstanceDown", 
"instance": "localhost:9100", "job": "node", "severity": "warning"}, 
"annotations": {}, "startsAt": "2020-04-06T19:57:38.628106884+05:30", 
"endsAt": "0001-01-01T00:00:00Z", "generatorURL": "http://adarsh-***";, 
"fingerprint": ""}]'''

Please help me out guys I'm not able to understand what i'm doing wrong ... 
as far as i've read this seems to me in correct format (without the json 
like representation)
thanks

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/71f66793-bf43-4b3c-b8e1-0cd76a7bfdca%40googlegroups.com.


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 us out
Regards,
Adarsh

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/013ae808-db61-434c-a9f5-a1ad120458f5%40googlegroups.com.


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

2020-04-12 Thread Adarsh Kumar Pandey
Hie Christian,
great to hear from you ..thanks for the response .
I had one more question..I read the alertmanager client doc and I get it 
that we need to send alerts in a predefined json format  but at what URL I 
need to do a POST request.. I hope I did not say something silly ..I'm 
kinda new 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 alerting rules ? can you please point me 
> > to the documentation of that. 
>
> In general, this is possible, yes, see here: 
> https://prometheus.io/docs/alerting/clients/ 
>
> However, you would have to mimic the semantics of this API pretty 
> closely (especially continuous resending of alerts). 
>
>
> Kind regards, 
> Christian 
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/5fdb0c69-7588-40be-a23f-560045139516%40googlegroups.com.


[prometheus-users] Re: alert generation to Alert Manager from microservice

2020-04-12 Thread Adarsh Kumar Pandey
hie it was a great reading the discussion ..If its not to much to ask ,I 
would  like to ask for your code snippet of the client ..Can you tell me at 
what api endpoint and in what format you sent the alerts .. I'm also very 
new to prometheus and so I'm also trying to understand this ..
Thanks and Cheers! :)

On Wednesday, 6 November 2019 21:55:02 UTC+5:30, Nitin Gupta wrote:
>
> Hello, 
>
> I would like to explore options, if someone has tried converting the 
> Alerts into snmp traps on the far end points. 
> As we understand the Alert rules configured on prometheus, get 
> executed on metric data based on their frequency of arrival at 
> prometheus. How to report application based alerts directly to Alert 
> Manager (AM) ? anybody tried this option to raise the Alerts directly 
> to AM and also clearing !! 
>
> We would like to seek help on approach, generating Alerts from 
> microservice to AM !! 
> Thanks 
> N.g 
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/0fb65c62-d827-41fb-bc00-2f39504b84ff%40googlegroups.com.


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

2020-04-11 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 from you.
Thanks.

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/b869e456-5783-4ce9-9f51-0b35b94e9f9b%40googlegroups.com.


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

2020-04-11 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" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to prometheus-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/404a4236-3e54-4bf8-9c64-6eaee276408d%40googlegroups.com.


[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?
>
> I'm not going to watch a Youtube video to try to guess your question - let 
> alone attempt to search for one where you don't even give the URL.
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/02996cb4-df41-41cc-adc3-f0211fb0d83b%40googlegroups.com.


[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 requirements are kind of 
related to that.
Thanks for your time and efforts, cheers!

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/9d192e25-8cbc-4345-a052-2b372431021c%40googlegroups.com.


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

2020-04-08 Thread Adarsh Kumar Pandey
I went through the links and I could not quite find what I wanted... I want 
the alerting rule to be created by any application that I'm monitoring or 
something like that...
I have one more question, what type of expressions I can put in alerting 
rules I mean only using metrics or a simple boolean expression also works 
or I need to make a custom metric for that...

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/dc22c8db-0cf4-4a41-b20a-dd9d0daa71fa%40googlegroups.com.


[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 
> relevant hosts automatically.
>
> These links might be useful:
>
> https://www.robustperception.io/using-time-series-as-alert-thresholds
> https://www.robustperception.io/how-to-have-labels-for-machine-roles/
>
> https://www.robustperception.io/exposing-the-software-version-to-prometheus/
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/0d44a994-2390-4a8e-82a1-73f63e76ea80%40googlegroups.com.


[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 file. Prometheus 
> can be configured to pick up all the files in a directory, e.g.
>
> rule_files:
>   - "rules/*.yml"
>
> Note: you will need to signal 
>  
> (e.g. "killall -HUP prometheus") to pick up rules when they are changed.
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/1d4c3fcc-4d9b-4271-a97c-d2851aeef115%40googlegroups.com.


[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 
other place into the alerting rule file..?
thanks 

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/9fc3e67d-a4c8-4cb7-800b-d3c276baa691%40googlegroups.com.


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

2020-04-07 Thread Adarsh Kumar Pandey
sure I will try to do that .. and thanks for the reply I really appreciate 
the response ! 

On Tuesday, 7 April 2020 21:27:49 UTC+5:30, Matthias Rampke wrote:
>
> This is a good use case for webhook receivers. I am not finding any 
> specifically for this case; basically, you need something that accepts the 
> body on HTTP and submits a message to Kafka.
>
> My guess is that it may be easier to solve in a few lines of code that do 
> exactly what you need using the language and libraries of your choice, than 
> trying to bend a generic solution to your will.
>
> /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 alerts fired , in addition to having the 
>> alerts as email or sms ...
>> Thanks for your time !!
>>
>> -- 
>> 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 promethe...@googlegroups.com .
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/prometheus-users/fa65c890-7e39-46a2-9c47-7f7e528b0328%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/prometheus-users/fa65c890-7e39-46a2-9c47-7f7e528b0328%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/cf21697f-0ccc-4a22-9cdf-edece8d624d2%40googlegroups.com.


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 
> solution. The formats there may change at any time.
>
> Instead, add a webhook receiver into your alert routing tree – if you add 
> it at the beginning and with continue: true, you will get a copy of every 
> notification as a webhook. Then you can do whatever you want with it, 
> including putting it into your database.
>
> /MR
>
>
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/2a4e9d4c-0257-44cc-b8cf-07d435887c50%40googlegroups.com.


[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 stop receiving emails from it, send an email 
to prometheus-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/0aea188a-38a2-47ac-aa4c-753b05aa71e1%40googlegroups.com.


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

2020-04-07 Thread Adarsh Kumar Pandey
The code is a python flask app:
import json
from flask import request
from flask import Flask, redirect
app=Flask(__name__)
@app.route('/', methods=['GET', 'POST'])
def index():
if request.method == 'POST':
data=request.get_json()
print(data)
with open('yourpath/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 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 from it, send an email 
to prometheus-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/3b6a09d1-cb4b-490a-a16a-65ed9207b18d%40googlegroups.com.


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

2020-04-07 Thread Adarsh Kumar Pandey
I can see that this is a issue that we all are facing.. I have developed a 
code that needs improvement to  write it to a database like postgresql.. 
right now it just takes the alerts and dumps the json in a file alerts.json 
Feel free to get creative with the code and if you could solve 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 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 from it, send an email 
to prometheus-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/43e44f16-9856-484b-a4cf-8d63c91de0d2%40googlegroups.com.


[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 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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/fa65c890-7e39-46a2-9c47-7f7e528b0328%40googlegroups.com.


[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 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 from it, send an email 
to prometheus-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/a23be91f-5297-4ea3-8b22-90731305d050%40googlegroups.com.


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

2020-04-05 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 from it, send an email 
to prometheus-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/90c7204e-5584-4001-a1b3-cef3acd3bce6%40googlegroups.com.


[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 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 Respect for your support guyz !!!
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/4b5d6737-22f3-4ee1-8c9b-06b9b0e8133f%40googlegroups.com.


[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 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 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 Respect for your support guyz !!!
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/b5b89581-8260-46f4-bc9d-c48f232190bc%40googlegroups.com.


[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 Respect for your support guyz !!!

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/6dc1b378-e7e7-4a2f-bb56-98ed7095ca68%40googlegroups.com.