Re: [prometheus-users] Is it possible to extract labels when generating AlertManager alert ?

2020-07-01 Thread Brian Candler
On Tuesday, 30 June 2020 14:40:46 UTC+1, Sébastien Dionne wrote: > > but there is a way to configure the scrape interval with annoation too ? > > I could have applications that we want to monitor each 15 sec and others > at 45sec interval or more. > > You can have two different scrape jobs, one

Re: [prometheus-users] Is it possible to extract labels when generating AlertManager alert ?

2020-06-30 Thread Sébastien Dionne
YES.. when I have labels on my pods.. I received them. good. I think, I'll be able to work with AlertManager webhook. Prometheus auto-discover my pods because they are annoted with prometheus.io/path: /metrics prometheus.io/port: 8080 prometheus.io/scrape: true

Re: [prometheus-users] Is it possible to extract labels when generating AlertManager alert ?

2020-06-30 Thread Sébastien Dionne
that is the config that I have so far serverFiles: alerts: groups: - name: Instances rules: - alert: InstanceDown expr: up == 0 for: 10s labels: severity: page annotations: description: '{{

Re: [prometheus-users] Is it possible to extract labels when generating AlertManager alert ?

2020-06-30 Thread Christian Hoffmann
Hi, On 6/25/20 8:55 PM, Sébastien Dionne wrote: > I have few java applications that I'll deploy in my cluster.  I need to > know how can I detect if a instance is up or down with Prometheus.  > > *Alerting with AlertManager* > * > * > I have a alert that check for "instanceDown" and send a alert