[prometheus-users] webhook is not working

2022-06-23 Thread surendra matta
Hi Team, i am sending multiple alerts one is email alert and another is to msteam channel using webhook. My configuration in alertmanger .yml route: group_by: ['alertname'] group_wait: 30s group_interval: 5m repeat_interval: 1h receiver: 'ms_teams' routes: - receiver: "ms_tea

Re: [prometheus-users] Need help on monitoring N number of websites

2022-06-23 Thread surendra matta
Finally i am able to figure it out and it's working for me - Thanks On Thursday, June 23, 2022 at 4:20:57 PM UTC-4 surendra matta wrote: > if possible can you provide me with an example for the files_sd? > > I am trying the below steps > > in Blackbox, I configured the below JSON > > [{ > "l

Re: [prometheus-users] Need help on monitoring N number of websites

2022-06-23 Thread surendra matta
if possible can you provide me with an example for the files_sd? I am trying the below steps in Blackbox, I configured the below JSON [{ "labels": { "job": "blackbox" }, "targets": [ "http://prometheus.io";, "https://prometheus.io"; ] }] and I tried to r

[prometheus-users] Re: Prometheus CustomCollector

2022-06-23 Thread Siddhant Gupta
Thank you for the detailed answer, specially on point 2. This clarifies the use case of custom collectors. Based on your answer, I am convinced that a custom collector is what I should be using. The linux app is immutable but maintains and provides an interface to poll metrics. Its like using to

Re: [prometheus-users] Removal of "id"

2022-06-23 Thread Julien Pivotto
On 23 Jun 09:13, Senthil wrote: > So like this? > > metric_relabel_configs: > - source_labels: ['id'] > regex: 'id' > action: labeldrop Source labels is not used with labeldrop. > > On Thursday, June 23, 2022 at 12:11:44 PM UTC-4 Julien Pivotto wrote: > > > On 23 Jun 09:0

Re: [prometheus-users] Removal of "id"

2022-06-23 Thread Julien Pivotto
On 23 Jun 09:07, Senthil wrote: > We noticed that Prometheus is taking huge memory and slow. So by referring > to the internet > [https://www.robustperception.io/dropping-metrics-at-scrape-time-with-prometheus/] > > we removed the "id" using the below lines. > > metric_relabel_configs: >

[prometheus-users] Removal of "id"

2022-06-23 Thread Senthil
We noticed that Prometheus is taking huge memory and slow. So by referring to the internet [https://www.robustperception.io/dropping-metrics-at-scrape-time-with-prometheus/] we removed the "id" using the below lines. metric_relabel_configs: - source_labels: ['id'] regex: '.*'

Re: [prometheus-users] Need help on monitoring N number of websites

2022-06-23 Thread Ben Kochie
Prometheus has a "file discovery" that can accept a list of targets as JSON or YAML. https://prometheus.io/docs/guides/file-sd/ On Thu, Jun 23, 2022 at 5:47 PM surendra matta wrote: > Hi Everyone, > > I am new to Prometheus and we doing POC in our organization using > Prometheus + Blackbox + Al

[prometheus-users] Need help on monitoring N number of websites

2022-06-23 Thread surendra matta
Hi Everyone, I am new to Prometheus and we doing POC in our organization using Prometheus + Blackbox + AlertManager. Our scenarios : We need to monitor more than a 50 websites 24/7 in Prod and QA, sometime w will add the new websites too. As of now , i have all my website names in a text fil

[prometheus-users] Re: Multiple destinations receiver

2022-06-23 Thread Brian Candler
On Thursday, 23 June 2022 at 13:37:02 UTC+1 Martin wrote: > Despite the conf was correct it never worked fine. > With matchers instead of match_re it works like a charm :) > That's weird. I never had a problem with match_re. I just moved to matchers because it's the "new" way of doing things,

[prometheus-users] Re: Multiple destinations receiver

2022-06-23 Thread Martin
Despite the conf was correct it never worked fine. With matchers instead of match_re it works like a charm :) Thanks ;) Il giorno giovedì 23 giugno 2022 alle 10:54:47 UTC+2 Brian Candler ha scritto: > > As far as I know, what you've written is file > > s/file/fine/ > On Thursday, 23 June 2022

[prometheus-users] Re: Multiple destinations receiver

2022-06-23 Thread Brian Candler
> As far as I know, what you've written is file s/file/fine/ On Thursday, 23 June 2022 at 08:10:14 UTC+1 Brian Candler wrote: > What alertmanager version? Do you have any sort of alertmanager > clustering, and if so are you sure the nodes are consistent? > > As far as I know, what you've writte

[prometheus-users] Re: How auto-resolved an alarm ?

2022-06-23 Thread Brian Candler
The length of the label doesn't really matter in this discussion: you should not be putting a log message in a label at all. *Any* label which varies from request to request is a serious problem, because each unique value of that label will generate a new timeseries in Prometheus, and you'll g

[prometheus-users] Re: How auto-resolved an alarm ?

2022-06-23 Thread Loïc
Hi, If i use the label for storing the message field, do you know what is the maximum length of the string that should not be exceeded? Is there a recommendation on the maximum size? Thanks Loïc Le mercredi 22 juin 2022 à 16:44:37 UTC+2, Loïc a écrit : > Thanks for your reply Brian :) > > Le m

[prometheus-users] Re: Multiple destinations receiver

2022-06-23 Thread Brian Candler
What alertmanager version? Do you have any sort of alertmanager clustering, and if so are you sure the nodes are consistent? As far as I know, what you've written is file. Rules which send to receiver "devops" *should* send to both destinations. Therefore if this isn't happening then you shou