Questions tagged [telegraf-inputs-plugin]
96 questions
0
votes
0 answers
Set up Telegraf inputs.kubernetes on IBM Cloud Kubernetes Free Cluster to monitor ram/cpu usage
Sorry, I'm a beginner. I'm trying to set up Telegraf on a Kubernetes Free Cluster in IBM Cloud. I have a single node cluster and I don't know if it will work at all. I don't know how to find out the necessary url kubelet to read the metrics. I am…

Fady
- 1
0
votes
0 answers
Telegraf MQTT input data flatten
How can I use Telegraf to extract timestamp and sensor value from an MQTT message and insert it into a PostgreSQL database with separate timestamp and sensor value columns?
I am receiving this JSON object from MQTT:
{"sensor": "current", "data":…
0
votes
1 answer
How does ActiveMQ Artemis determine when an MQTT subscriber is unsubscribed when the listening process terminates without unsubsribing
My understanding from a previous post is that setting the "clean" parameter to false in MQTT has the same effect as subscribing to a topic in JMS. That is, the message will be kept until all subscribers have received the message.
My question is,…

Jack BeNimble
- 35,733
- 41
- 130
- 213
0
votes
1 answer
How does Telegraf MQTT listener specify "clean = false?"
In this post, I asked if it was possible to keep a message in a queue in ActiveMQ Artemis until all subscribers had received it, and the answer was that this can be done using the clean = false flag.
I haven't tested this yet due to corporate…

Jack BeNimble
- 35,733
- 41
- 130
- 213
0
votes
1 answer
How to echo variable env in telegraf [[input.exec]]
I have a variable env and I want to get it in telegraf. I use [[inputs.exec]]
My code:
[[inputs.exec]]
commands = ["echo $val_env"]
data_format = "value"
data_type = "string"
name_override = "value_A"
But I can't get this value $val_env. I also…

Tai Do
- 117
- 1
- 8
0
votes
1 answer
Telegraf Error: configuration specified the fields ["measurement_name"], but they weren't used
I have configured Telegraf to collect from an mqtt queue, but it is not working and I can't see the reason why.
The error
2022-11-15T19:30:13Z E! [telegraf] Error running agent: Error loading
config file /etc/telegraf/telegraf.conf: plugin…

jason.kaisersmith
- 8,712
- 3
- 29
- 51
0
votes
1 answer
Telegraf MQTT consumer with multiple topics and json data
We use Telegraf to connect to an MQTT broker and subscribe to several topics. The data send through is all in JSON, but with different configurations.
[[inputs.mqtt_consumer]]
name_override = "devices"
topics = [
"devices/+/control",
]
…

Patrick
- 7,903
- 11
- 52
- 87
0
votes
0 answers
Monitoring a postgresql db process with telegraf using procstat input plugin send running=0i for active running state
I'm monitoring a postgresql db process with telegraf and procstat input plugin, but it's not seems to be working as expected in all machines(master and slaves).
The input plugin configuration is like below:
[[inputs.procstat]]
systemd_unit =…

GUISSOUMA Issam
- 2,572
- 2
- 16
- 27
0
votes
1 answer
How to send data in log file to MongoDB using Telagraf?
Telegraf agent seems not to send data to MongoDB
I am trying to collect log file data like Apache-Tomcat's access_log, app_log, etc using Telegraf and send it to MongoDB 6.x version to store data.
So, these are what I did.
downloaded Telegraf…

leeyounsoo
- 19
- 4
0
votes
1 answer
How to write log data from a file to Splunk
An application writes its logs into files which are saved e.g in /home/my-user/myapp/ directory.
I want to send the data (logs) from those files to Splunk.
I was thinking to use [inputs.file] or [inputs.tail] plugins in Telegraf.
In order to verify…

ssazonau
- 68
- 6
0
votes
1 answer
Telegraf json_v2 parser error: Unable to convert field to type int. strconv.ParseInt: parsing invalid syntax
Good day!
I have built a small IoT device that monitors the conditions inside a specific enclosure using an ESP32 and a couple of sensors. I want to monitor that data by publishing it to the ThingSpeak cloud, then writing it to InfluxDB with…

T.I
- 1
- 2
0
votes
0 answers
Error in plugin: Invalid JSON provided, unable to parse
I'm using docker to bring up Telegraf,InfluxDB,Grafana.
I'm using amqp_consumer input plugin in Telegraf conf file.
I'm getting the error
E! [inputs.amqp_consumer] Error in plugin: Invalid JSON provided, unable to parse.
I have enabled debug level…

Prajyod Kumar
- 395
- 2
- 4
- 15
0
votes
0 answers
All metrics are not show in influxdb from Telegraf
I have followed multiple documentation but I couldn't receive all the metrics from my JSON file to Influxdb.
My Input json file
{
"apBuildNumber": "04.04.01.0003.1f7fd3ce8896",
"version": "1.0.0",
"sentTimeMs": "1661678671000",
…

Prajyod Kumar
- 395
- 2
- 4
- 15
0
votes
0 answers
Telegraf SNMP plugin Error: IF-MIB::ifTable: Unknown Object Identifier
Steps followed to installed SNMP manager and agent on ec2
sudo apt-get update
sudo apt-get install snmp snmp-mibs-downloader
sudo apt-get update
sudo apt-get install snmpd
I opened sudo nano /etc/snmp/snmp.conf and commented the following…

dhyanesh
- 1
0
votes
0 answers
how to view/extract data from telegraf inputs.exec script json output
new to influxdb/telegraf/grafana.
As example, say I have a custom script producing this JSON output:
{
"ERROR_MSG":"Could not find 'looker.monitoring.alerting.telegraf.scripts'",
"DETAILS": {
"HOME_DIR":"/home/me"
}
}
In my…

ecorrales
- 137
- 11