Hey Julius,

I meant alerting when the hosts running Prometheus in Agent Mode go down.

Turned out to be quite simple:

*absent(up{prometheus_agent="true",hostname="hostname"})*

Not sure what I got so confused about anymore.
Thanks)

Regards,
Gabriel

On Sat, Sep 3, 2022 at 11:04 PM Julius Volz <[email protected]>
wrote:

> Hi,
>
> Do you mean monitoring the host that the Agent-Mode Prometheus is running
> on? If that is the case, you would monitor it like any other host by
> deploying the Node Exporter (https://github.com/prometheus/node_exporter)
> on it, scraping it from another Prometheus server, and then having some
> alert based on the "up" metric for that Node Exporter job. See also
> https://prometheus.io/docs/guides/node-exporter/.
>
> Or do you mean configuring alerting rules in a Prometheus server that is
> running in Agent mode? In that case, that's not possible, since an
> Agent-mode Prometheus server does not have a full local storage and
> querying+rule engine. You would need to run a full Prometheus server for
> that.
>
> Regards,
> Julius
>
> On Tue, Aug 30, 2022 at 8:37 AM Clima Gabriel <[email protected]>
> wrote:
>
>> Hey y'all,
>>
>> Has anyone been able to figure out how to create a Host Down alert for a
>> host that is running Prometheus in Agent mode?
>>
>> --
>> 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 [email protected].
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/prometheus-users/b4c6eca2-bd6f-41ba-bc84-8d36fd89f410n%40googlegroups.com
>> <https://groups.google.com/d/msgid/prometheus-users/b4c6eca2-bd6f-41ba-bc84-8d36fd89f410n%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>
>
> --
> Julius Volz
> PromLabs - promlabs.com
>

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/CAHtWw8rd7h%2B06SP9H4m09gokEB-5cMgLGnCoTwGKBY_Tz6vo%2BA%40mail.gmail.com.

Reply via email to