# Telegraf synthetic monitoring

**URL:** <https://community.influxdata.com/t/telegraf-synthetic-monitoring/14437>\
**Category:** Systems\
**Created:** [May 20, 2020, 3:23pm UTC](https://community.influxdata.com/t/telegraf-synthetic-monitoring/14437 "2020-05-20T15:23:51Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![Annonyme1](https://avatars.discourse-cdn.com/v4/letter/a/e9bcb4/32.png) [@Annonyme1](https://community.influxdata.com/u/Annonyme1)\
**Post date:** [May 20, 2020, 3:23pm UTC](https://community.influxdata.com/t/telegraf-synthetic-monitoring/14437/1 "2020-05-20T15:23:51Z")

</div>

Hello ,  
I wondered how you monitor the servers ( "x.x.x.x " not ‘‘[www.xxx.com](http://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

---

<div class="post-metadata">

**Author:** ![Anaisdg](https://sea1.discourse-cdn.com/flex023/user_avatar/community.influxdata.com/anaisdg/32/6401_2.png) [@Anaisdg](https://community.influxdata.com/u/Anaisdg)\
**Post date:** [May 20, 2020, 4:22pm UTC](https://community.influxdata.com/t/telegraf-synthetic-monitoring/14437/2 "2020-05-20T16:22:49Z")

</div>

Hello @Annonyme1,  
What telegraf plugins are you using?

---

<div class="post-metadata">

**Author:** ![Annonyme1](https://avatars.discourse-cdn.com/v4/letter/a/e9bcb4/32.png) [@Annonyme1](https://community.influxdata.com/u/Annonyme1)\
**Post date:** [May 20, 2020, 8:09pm UTC](https://community.influxdata.com/t/telegraf-synthetic-monitoring/14437/3 "2020-05-20T20:09:22Z")

</div>

I’am just asking for a plugin to use !

---

<div class="post-metadata">

**Author:** ![Pooh](https://avatars.discourse-cdn.com/v4/letter/p/f05b48/32.png) [@Pooh](https://community.influxdata.com/u/Pooh)\
**Post date:** [May 20, 2020, 8:25pm UTC](https://community.influxdata.com/t/telegraf-synthetic-monitoring/14437/4 "2020-05-20T20:25:01Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Annonyme1](https://avatars.discourse-cdn.com/v4/letter/a/e9bcb4/32.png) [@Annonyme1](https://community.influxdata.com/u/Annonyme1)\
**Post date:** [May 20, 2020, 9:04pm UTC](https://community.influxdata.com/t/telegraf-synthetic-monitoring/14437/5 "2020-05-20T21:04:36Z")

</div>

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 !

---

<div class="post-metadata">

**Author:** ![Pooh](https://avatars.discourse-cdn.com/v4/letter/p/f05b48/32.png) [@Pooh](https://community.influxdata.com/u/Pooh)\
**Post date:** [May 20, 2020, 9:34pm UTC](https://community.influxdata.com/t/telegraf-synthetic-monitoring/14437/6 "2020-05-20T21:34:58Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Annonyme1](https://avatars.discourse-cdn.com/v4/letter/a/e9bcb4/32.png) [@Annonyme1](https://community.influxdata.com/u/Annonyme1)\
**Post date:** [May 21, 2020, 2:30am UTC](https://community.influxdata.com/t/telegraf-synthetic-monitoring/14437/7 "2020-05-21T02:30:39Z")

</div>

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 ?

---

<div class="post-metadata">

**Author:** ![Naumis1](https://avatars.discourse-cdn.com/v4/letter/n/c77e96/32.png) [@Naumis1](https://community.influxdata.com/u/Naumis1)\
**Post date:** [May 21, 2020, 5:41am UTC](https://community.influxdata.com/t/telegraf-synthetic-monitoring/14437/8 "2020-05-21T05:41:08Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Annonyme1](https://avatars.discourse-cdn.com/v4/letter/a/e9bcb4/32.png) [@Annonyme1](https://community.influxdata.com/u/Annonyme1)\
**Post date:** [May 21, 2020, 9:51am UTC](https://community.influxdata.com/t/telegraf-synthetic-monitoring/14437/9 "2020-05-21T09:51:03Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Naumis1](https://avatars.discourse-cdn.com/v4/letter/n/c77e96/32.png) [@Naumis1](https://community.influxdata.com/u/Naumis1)\
**Post date:** [May 21, 2020, 10:04am UTC](https://community.influxdata.com/t/telegraf-synthetic-monitoring/14437/10 "2020-05-21T10:04:41Z")

</div>

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: [telegraf/CONFIGURATION.md at master · influxdata/telegraf · GitHub](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: [Introducing Kapacitor | Kapacitor 1.5 Documentation](https://docs.influxdata.com/kapacitor/v1.5/introduction/)  
You can create rules via Chronograf.  
Read here: [Chronograf 1.8 Documentation](https://docs.influxdata.com/chronograf/v1.8/)  
If you want only graphs in grafana, forget kapacitor ant chronograf parts 🙂

---

<div class="post-metadata">

**Author:** ![Annonyme1](https://avatars.discourse-cdn.com/v4/letter/a/e9bcb4/32.png) [@Annonyme1](https://community.influxdata.com/u/Annonyme1)\
**Post date:** [May 21, 2020, 11:45am UTC](https://community.influxdata.com/t/telegraf-synthetic-monitoring/14437/11 "2020-05-21T11:45:01Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Naumis1](https://avatars.discourse-cdn.com/v4/letter/n/c77e96/32.png) [@Naumis1](https://community.influxdata.com/u/Naumis1)\
**Post date:** [May 21, 2020, 11:46am UTC](https://community.influxdata.com/t/telegraf-synthetic-monitoring/14437/12 "2020-05-21T11:46:46Z")

</div>

So as I said earlier:

> [@Naumis1](#):
>
> If you want only graphs in grafana, forget kapacitor ant chronograf parts 🙂

---

<div class="post-metadata">

**Author:** ![Annonyme1](https://avatars.discourse-cdn.com/v4/letter/a/e9bcb4/32.png) [@Annonyme1](https://community.influxdata.com/u/Annonyme1)\
**Post date:** [May 21, 2020, 1:36pm UTC](https://community.influxdata.com/t/telegraf-synthetic-monitoring/14437/13 "2020-05-21T13:36:09Z")

</div>

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