Telegraf synthetic monitoring

Hello ,
I wondered how you monitor the servers ( "x.x.x.x " not ‘‘www.xxx.com’’). I would like to get an alert in grafana when a server goes down or when a telegraf agent stops.
How could I do that ?
thanks in advance

Hello @Annonyme1,
What telegraf plugins are you using?

I’am just asking for a plugin to use !

This sounds more like a job for a system such as Icinga to me.

You might also want to investigate monit for keeping services running if they
stop.

Regards,

Antony.

i’am monitoring system metrics using telegraf and i was asking if i can get an alert when the my servers are down !!
I could do that with prometheus with alert manager but i’am looking if telegraf+influxdb can do that !

Sorry if I offended you with my answer - from your tone it seems like it.

However, I merely wanted to suggest that I do not think telegraf + influxdb is
the right tool for what you are trying to do, so I suggested something else
which can definitely do what you want.

Regards,

Antony.

I thought maybe if i could somehome select my servers ip and send in each x (10s) interval a ping !
and generate a graph ! when i got now response i got value =0 so i got the grafana alert !
Is that possible ?

Hi, it seems that you need global tags in telegraf config (x.x.x.x part) and kapacitor for the alert rule. In your case it would be deadman function. Alert when no points received within some interval.

Can u explain better for me i 'am noob here so i need more detailed steps !

Well if you want to see hostname AND ip address as a tag, you need to configure telegraf on every server monitored with
[global_tags]
ip_address = “x.x.x.x”
with x.x.x.x which is corresponding system ip address.
Read here: https://github.com/influxdata/telegraf/blob/master/docs/CONFIGURATION.md
Regarding alerts. You need to setup full tick stack, and create DEADMAN script. Kapacitor is a part, witch manages alert rules (tickscript) and sends alerts (well and much more:) )
Read here: https://docs.influxdata.com/kapacitor/v1.5/introduction/
You can create rules via Chronograf.
Read here: https://docs.influxdata.com/chronograf/v1.8/
If you want only graphs in grafana, forget kapacitor ant chronograf parts :slight_smile:

i just want only graph than i will generate alert with grafana i don’t want to use chronograph or kapacitor

So as I said earlier:

so i should set global tag on each telegraf the ip-address of the host where it’s installed ?

1 Like