Questions tagged [telegraf-inputs-plugin]
96 questions
4
votes
2 answers
How do I troubleshoot this error in telegraf?
I have a custom python plugin that I am using to pull data into Telegraf. It prints out line protocol output, as expected.
In my Ubuntu 18.04 environment, when this plugin is run I see a single line in my logs:
2020-12-28T21:55:00Z E! [inputs.exec]…

TeleNoob
- 48
- 1
- 10
2
votes
1 answer
Telegraf can not connect to Docker sock
I try to gather some metrics about my Docker containers using Telegraf. I have mounted the docker sock to it but I still receive an error message. What am I missing here?
volumes:
- ./data/telegraf:/etc/telegraf
-…

Dennis Roth
- 85
- 1
- 7
2
votes
1 answer
Send python output (json output) to telegraf over http_listener_v2
I am trying to post test_data output from below python script (abc.py) to telegraf over http_listener_v2.
abc.py
------
import requests
url = "https://testazure.local/telegraf"
test_data = {'key1': 'value1'}
op = requests.post(url, data =…

Geek_Coder
- 29
- 5
2
votes
0 answers
Issue with Kafka consumer (provided member is not known in the current generation)
I am using Telegraf with Kafka consumer input plugin to forward the messages to InfluxDB. The Telegraf logs show the following when trying to consume from Kafka server
Apr 12 11:25:13 algtigtelegraf telegraf[848255]: 2021-04-12T08:25:13Z E!…

Marios Karatisoglou
- 173
- 1
- 13
2
votes
1 answer
How to filter JSON Response in Telegraf
I am trying to ingest JSON metric data from HTTP-Endpoints using Telegraf's HTTP Input Plugin, and write it to a Postgresql database using the Postgresql Output plugin. This is working as expected.
However, some of the JSON-Responses are very long .…

jay p
- 175
- 1
- 2
- 9
2
votes
1 answer
How to rename fields from multiple input processors with identical names
I am using Telegraf and I have multiple input.http plugins returning the same field names and want to distinguish between them.
I am calling ElasticSearch for different search criteria, the JSON structure returned is always the same, so while I can…

Remy
- 49
- 9
2
votes
0 answers
Telegraf [[inputs.snmp.field]] converting string to int?
I'm trying to create a new UPS.conf file for telegraf to collect data from a batch of ups units via SNMP. Inputs such as hostname and upsType when queried via SNMPGet the OID's return a String, but when run using Telegraf I get only integer…

Trapa
- 51
- 1
- 5
2
votes
3 answers
Monitoring nginx (500's) with telegraf
I'd like to understand what my nginx instance is returning and who it's asking to handle requests. What fraction of my queries get handled by rails, what fraction are handled directly by nginx, what fraction are heading off to nginx_status,…

jma
- 3,580
- 6
- 40
- 60
2
votes
1 answer
Dynamically updating Telegraf config with agent hosts?
I have a number of network switches in my infrastructure and I have been using telegraf to collect data traffic information from switches with snmp. So far switch IP addresses were added to the config statically. I was wondering if it is possible to…

A. Smith
- 75
- 1
- 1
- 9
2
votes
1 answer
How to tail Remote Log File's Using Telegraf
Hi i am new to Telegraf and Influxdb. I know that we can tail (monitor) a local file(on the same machine where Telegraf is installed) using Telegraf and send the output to Influxdb using [[inputs.tail]] and [[outputs.influxdb]] plugin's of…

Mohd Waseem
- 1,244
- 2
- 15
- 36
2
votes
2 answers
Ruby on Rails: getting Prometheus metrics with Telegraf
I have a RoR application with installed Prometheus-client and Telegraf daemon with Prometheus input plugin working on the instance I want to monitor.
As far as I understand I need some kind of exporter middleware to collect metrics from…

xamenrax
- 1,724
- 3
- 27
- 47
1
vote
0 answers
Can´t parse booleans using telegraf and kafka
I am trying to connect an InfluxDB database with kafka so that the data received by kafka is consumed by InfluxDB. For this I am using telegraf, an InfluxDB plugin.
The goal is to get a json similar to this:
"features": {
"feat1": {
"properties":…

Daniel Hernandez
- 9
- 3
1
vote
1 answer
Can't get config toml file to load information to telegraf input plugin
I've created an input plugin that has two parameters that are taken from the configuration file, as specified in the struct. For some unknown reason, the plugin refuses to run:
The struct:
type Plugin struct {
Address string…

SpaceCoder
- 13
- 3
1
vote
1 answer
Problem with multiple devices telegraf nagios plugin
I am trying to add some hosts (UPSs) for monitoring battery charge, invertor status, input voltage, etc. I've been trying to get this working for hours. So, the Nagios scripts seem to work ok and at least some data is logged in influxdb. However,…

Martin Mifsud
- 13
- 3
1
vote
0 answers
Telegraf adds random +1 to +10 nanoseconds to my timestamp
I’m on influxdb2 (cloud) and i’m getting a really weird situation:
I’m using telegraf’s tail plugin to collect logs and push them to a bucket, my timestamp (which is written in epoch) gets reformatted to ns and telegraf is adding random offset to…

zfou
- 891
- 1
- 10
- 33