Questions tagged [telegraf-inputs-plugin]

96 questions
0
votes
0 answers

Impossible to fetch data from kafka to telegraf

I have a personal project to gather data from an earthquake monitoring API and put it in real time on a kafka topic and then retrieve it on grafana. For that I use telegraf and this plugin allowing to listen and to recover data of a topic, before…
0
votes
3 answers

Suricata IDS/Telegraf error: Client message is too long, disconnect him

I have a problem connecting Suricata with Telegraf, using unix_stream socket: Host: Ubuntu 20.04 Docker: SURICATA_VERSION=6.0.6 Docker: INFLUXDB_VERSION=2.1.1 Docker: TELEGRAF_VERSION=1.21 Suricata confg: - eve-log: enabled: yes filetype:…
0
votes
1 answer

passing docker env variables to a script called by telegraf by inputs.exec plugin

Need help from docker and telegraf experts. I am trying to create a docker image that runs inputs.exec input telegraf plugin, the plugin runs a script exec_oracle_python.sh which calls the env variables defined in docker file. Docker File: FROM…
nadir781
  • 3
  • 3
0
votes
1 answer

How to change the interval of a plugin in telegraf?

Using: telegraf version 1.23.1 Thats the workflow Telegraf => Influx => Grafana. I am using telegraf to check my metrics on a shared server. So far so good, i already could initalize the Telegraf uWSGI Plugin and display the data of my running…
0
votes
1 answer

Telegraf auto restart not working with connection_time. Telegraf 1.22.1

Telegraf not restarting after network Error. Getting the following massage [telegraf] Error running agent: starting input inputs.mqtt_consumer: network Error : dial tcp 192.168.1.5:1883: connect: connection refused. In the configure…
0
votes
1 answer

how to send metrics to influx oss2 using jolokia in telegraf config?

after running teltelegraf -debug with jolokia config [[inputs.jolokia2_agent]] urls = ["http://:8080/jolokia-war-unsecured-1.6.2/"] [[inputs.jolokia2_agent.metric]] name = "jr" mbean = "java.lang:type=Runtime" paths =…
0
votes
1 answer

Telegraf Data Collection - How to select specific Fields for input

The title is pretty much my question - I'm new to Telegraf and slowly getting to grips with how to run it and specify log files, archiving processes, etc etc. One of the, IMO very simple, tasks I have is to specify the metrics collected. For…
Vinny Pem
  • 57
  • 1
  • 6
0
votes
1 answer

Telegraf cannot correctly read JSON data in mqtt protocol

When I use telegraf inputs.mqtt_consumer cannot parse the data correctly when subscribing to mqtt This is the raw data I read from the client using emqx: { "air": "air", "humidity": 35, "region": "shanghai", "temperature": 34, "time":…
Ivan
  • 96
  • 8
0
votes
0 answers

Telegraf JSON v2 Topic Parsing

I want to combine the topic to a single field. Currently I am trying this: data_format = "json_v2" [[inputs.mqtt_consumer.json_v2]] [[inputs.mqtt_consumer.topic_parsing]] topic = "+/+/+/" tags = "name/id/value" fields =…
Leitzy
  • 21
  • 7
0
votes
1 answer

count bytes with influxs telegraf

I can receive messages with the inputs.mqtt_consumer telegraf plugin, but it gives me a lot of data in influxdb. How can I in the telegraf configuration just count the number of received bytes and messages and report that to influx db? #…
0
votes
1 answer

How to read the data from MQTT Consumer from queue instead of topic using the telegraf

I have an ActiveMQ broker and data is coming to the queue inside this broker. I am trying to read the data from the same broker but I am not able to read the data. Below I have given my telegraf configuration. I have provided the topic name. I tried…
0
votes
1 answer

Telegraf http input panics

I try to parse an XML file via http from openhab to InfluxDB version 2.1.1, but the service restarts with following error message: panic: runtime error: invalid memory address or nil pointer dereference Here is the full output: Feb 09 22:36:00…
0
votes
1 answer

telegraf on windows - inputs.docker error in plugin cannot connect to the docker daemon

I have this configuration: # Read metrics about docker containers [[inputs.docker]] ## Docker Endpoint ## To use TCP, set endpoint = "tcp://[ip]:[port]" ## To use environment variables (ie, docker-machine), set endpoint = "ENV" endpoint…
0
votes
1 answer

Precision gets lost for big number in telegraf

Precision gets lost for big number. I am using tail input plugin to read file and data inside a file is in json format. Below is the configuration [inputs.tail]] files = ["E:/Telegraph/MSTCIVRRequestLog_*.json"] from_beginning = true …
0
votes
1 answer

In Telegraf how to include only specific values of a tag

I am using a prometheus plugin in Telegraf to get the data from promitor and push it to InfluxDB. However, as per my requirement there is one tag named as "resource_name" and it contains multiple values let's say ["A", "B", "C", "D", "E", "F", "G",…