Questions tagged [telegraf-plugins]

54 questions
1
vote
1 answer

telegraf output to Elasticsearch: "health check timeout: no Elasticsearch node available"

I'm having trouble connecting to an Elasticsearch instance with a Telegraf output plugin. I created an Elasticsearch setup via the Elasticsearch service. I created a user and password (connected to a role) in Kibana for it. Then I setup a Telegraf…
1
vote
1 answer

Is there a Telegraf plugin which takes in queries to read data from Influxdb and then post them on a kafka topic using the Kafka output plugin?

Using Telegraf plugins, there is a way to read data from InfluxDb and publish it to a Kafka topic. But is there a way to read the data on demand and place it on a Kafka topic? Like a query based demand. I can do a query based read through REST API…
R10
  • 33
  • 6
1
vote
1 answer

Permission denied when attempting to use input.exec plugin

I have written a python script that prints out metrics so that I can add them to an influxdb. The script works as my local user. It also works as the telegraf user. However, the script fails when it runs as part of telegraf: $ /usr/bin/telegraf…
1
vote
2 answers

Filter InfluxDB data before they arrive

Folks, I am storing for 7 days temperature messuremnts I do get get via MQTT via the Telegraf into a messurement on my RapsberyyPI InfluxDB. what I do see when I visualize my Temperature that I do get Temperature values in between -200 and +200…
Juergen Schubert
  • 121
  • 4
  • 12
1
vote
1 answer

telegraf - exec plugin - aws ec2 ebs volumen info - metric parsing error, reason: [missing fields] or Errors encountered: [ invalid number]

Machine - CentOS 7.2 or Ubuntu 14.04/16.xx Telegraf version: 1.0.1 Python version: 2.7.5 Telegraf supports an INPUT plugin named: exec. First please see EXAMPLE 2 in the README doc there. I can't use JSON format as it only consumes Numeric values…
1
vote
1 answer

Telegraf - inputs.procstat procstat Plugin - Using command line pattern or username

Using: Telegraf v1.0.1 or later Telegraf procstat plugin's documentation: https://github.com/influxdata/telegraf/tree/master/plugins/inputs/procstat Under Documentation, it says: The procstat plugin can be used to monitor system resource usage by…
AKS
  • 16,482
  • 43
  • 166
  • 258
1
vote
1 answer

Telegraf - inputs.procstat pgrep plugin issue

Telegraf v1.0.1 I'm not able to see telegraf[._] (tree) metric anymore after I enabled [[inputs.procstat]] plugin. Telegraf is installed successfully. Process is running. I'm pretty much using the normal settings for inputs plugins and output…
AKS
  • 16,482
  • 43
  • 166
  • 258
0
votes
0 answers

Limiting Telegraf Aggregator Plugin to Certain Metrics?

i have network interface counter data (bytes in/bytes out) being collected by telegraf thru GNMI subscriptions to network devices. i am storing this raw data (un InfluxDB) already, but i want to add a rate calculation as well. i am considering…
godot
  • 3
  • 1
0
votes
0 answers

Issue while storing data to Influxdb using telegragh configuration with custom timestamp

I am trying to implement a small datalogger using Influxdb v2.7, Telegraf v1.26, and Grafana v9.4. The data is in JSON format and it is fetched from the mosquitto mqtt server using Telegraf. I am trying to store data with a custom timestamp given in…
0
votes
0 answers

Telegraf not sending data to InfluxDB

I am trying to send the result of a script output via Telegraf to InfluxDB. I have added execd plugin to telegraf.conf and this config looks like this: [agent] interval = "10s" round_interval = true metric_batch_size = 1000 …
Ben
  • 1
0
votes
1 answer

Telegraf splits input data into different outputs

I want to write Telegraf config file which will: Uses openweathermap input or custom http request result { "fields": { ... "humidity": 97, "temperature": -11.34, ... }, "name": "weather", "tags": {...}, …
lmasikl
  • 193
  • 2
  • 16
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
0 answers

telegraf gives different results when testing

Running telegraf 1.24.0 telegraf -config ./telegraf.conf -test -once 1>output 2>err In my telegraf.conf I have [[outputs.file]] files=["stdout"]…
NinjaGaiden
  • 3,046
  • 6
  • 28
  • 49
0
votes
0 answers

Telegraf not sending timestamp to InfluxDB_v2

I’m struggling with inserting timestamp in influxdb (I've asked this question on influxdb forum and slack channel but no one answered). This is example of json log {"@timestamp":"2022-12-26T04:27:24-05:00","client_ip":"xx.xx.xx.xx","domain":"…
0
votes
0 answers

Using HTTP API to build Grafana dashboard

I have been using influxDB as a datasource to build Grafana dashboard and now am trying to use an http api link that contain the below json file. The link is for example https://example:8080/cluster. Or if possible to use telegraf to get the…
user5820327
  • 181
  • 1
  • 2
  • 15