Re: [prometheus-users] prometheus federate transfter alerts stopped to main prometheus

2022-11-22 Thread Brian Candler
Federation is just scraping: the central prometheus server scrapes the 
other's /federate endpoint.

Scraping only collects metrics.

Alerts are completely separate:
- alerting rules are evaluated periodically inside the prometheus server
- if they are triggered, then alerts are *pushed* out to alertmanager (this 
is not scraping).

If you want to duplicate this centrally, then you'll need to duplicate the 
alerting rules on the central server.  But why would you want to?  The 
alerts are already coming from the remote prometheus servers, which can be 
configured to send them to a central alertmanager (which can be a cluster).

If the problem you are trying to solve is what happens when the remote 
prometheus servers lose connectivity (and hence can't deliver alerts), then 
you won't be able to scrape the federation endpoint either.

On Tuesday, 22 November 2022 at 09:44:33 UTC prashan...@gmail.com wrote:

> It is possible to alert get from federate prometheus to central prometheus 
> or only metrics get?
>
>
>
> On Tue, 22 Nov 2022, 12:41 Stuart Clark,  wrote:
>
>> On 22/11/2022 05:53, Prashant Singh wrote:
>> > Dear All,
>> >
>> > I am using federate prometheus and configured to central prometheus . 
>> > but getting alerts from federate prometheus also . how can avoids 
>> > alerts from federate.
>> >
>> >
>> >   - job_name: 'K8S-Federate'
>> > #scrape_interval: 15s
>> > honor_labels: true
>> > metrics_path: '/federate'
>> > scheme  : http
>> >
>> > params:
>> >   'match[]':
>> >- '{job!=""}'
>> >
>> The alert rules are set in each Prometheus, so if you are not wanting 
>> them you'd need to look at the configuration and change/remove.
>>
>> -- 
>> Stuart Clark
>>
>>

-- 
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/dbee7c47-5863-4166-bbb5-8af171290529n%40googlegroups.com.


Re: [prometheus-users] prometheus federate transfter alerts stopped to main prometheus

2022-11-22 Thread Prashant Singh
It is possible to alert get from federate prometheus to central prometheus
or only metrics get?



On Tue, 22 Nov 2022, 12:41 Stuart Clark,  wrote:

> On 22/11/2022 05:53, Prashant Singh wrote:
> > Dear All,
> >
> > I am using federate prometheus and configured to central prometheus .
> > but getting alerts from federate prometheus also . how can avoids
> > alerts from federate.
> >
> >
> >   - job_name: 'K8S-Federate'
> > #scrape_interval: 15s
> > honor_labels: true
> > metrics_path: '/federate'
> > scheme  : http
> >
> > params:
> >   'match[]':
> >- '{job!=""}'
> >
> The alert rules are set in each Prometheus, so if you are not wanting
> them you'd need to look at the configuration and change/remove.
>
> --
> Stuart Clark
>
>

-- 
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/CALGft8ynUWc1UxO44QeFxKhVun2p8Jf8-bfyeL1mG%3DKhs%3Du%3DRQ%40mail.gmail.com.


Re: [prometheus-users] prometheus federate transfter alerts stopped to main prometheus

2022-11-21 Thread Stuart Clark

On 22/11/2022 05:53, Prashant Singh wrote:

Dear All,

I am using federate prometheus and configured to central prometheus . 
but getting alerts from federate prometheus also . how can avoids 
alerts from federate.



  - job_name: 'K8S-Federate'
    #scrape_interval: 15s
    honor_labels: true
    metrics_path: '/federate'
    scheme      : http

    params:
      'match[]':
       - '{job!=""}'

The alert rules are set in each Prometheus, so if you are not wanting 
them you'd need to look at the configuration and change/remove.


--
Stuart Clark

--
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/da2abd71-8606-7e34-f566-c37313fa8b91%40Jahingo.com.


[prometheus-users] prometheus federate transfter alerts stopped to main prometheus

2022-11-21 Thread Prashant Singh
Dear All,

I am using federate prometheus and configured to central prometheus . but 
getting alerts from federate prometheus also . how can avoids alerts 
from federate.


  - job_name: 'K8S-Federate'
#scrape_interval: 15s
honor_labels: true
metrics_path: '/federate'
scheme  : http

params:
  'match[]':
   - '{job!=""}'


thanks,
prashant 

-- 
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/16ec6a85-f9e7-4e93-9753-96a50ae7e70fn%40googlegroups.com.