Questions tagged [telegraf-inputs-plugin]

96 questions
0
votes
1 answer

Selection expression using GJSON syntax, as in the example with jq

I am trying to configure the HTTP input plugin using Telegraf, but I need to select certain metrics using the select expression and write them to a specific Influxdb database. I know how to select using jq, but I can't do it using a GJSON…
akashavkin
  • 331
  • 1
  • 3
  • 6
0
votes
1 answer

Aggregate data in Telegraf only by time, not by tags

I use Telegraf to collect data and then write it to InfluxDb. And I would like to aggregate the data into one row. As I know there are a lot of plugins for Telegraf including plugins to aggregate data. I use BasicStats Aggregator Plugin for my…
Pupkin
  • 1,211
  • 3
  • 13
  • 30
0
votes
1 answer

Telegraf processors.regex create a new tag based on two patterns

I am using Telegraf's [[processors.regex]] to create a replacement tag. Need to add a new tag "custom_instance" from existing tag "instance". Matching upto first occurrence of "#" If tag does not have "#" then it should simply copy the same…
Karan
  • 33
  • 7
0
votes
2 answers

Collect metrics from a Prometheus server to telegraf

I have a prometheus server running on a K8s instance and telegraf on a different cluster. Is there some way to pull metrics from the prometheus server using telegraf? I know there is telegraf support for scraping metrics from prometheus clients but…
0
votes
1 answer

Telegraf plugins - Telegraf send data to influxdb only for one plugin

Im new here, I have an issue with one plugin, So im using telegraf to get data from ipmi sensor, and it’s working I can see that in Grafana dashboard via InfluxDB, so until here everything is working correctly, I added another input plugin to my…
0
votes
1 answer

Telegraf boot-up issue

I tried to setup the tool chain of mosquitto, telegraf, and influxdb. All three are installed on a raspberry pi using apt. To debug, I use a file output from telegraf. This connection does not work when the pi boots. Mosquito is working if…
0
votes
1 answer

Telegraf, trigger at start and not interval?

Hello i am currently trying to parse a folder of many csv Files(ca. 3GB) into influxdb. On the influxdata blog it was suggested, that this would be the fastest way since telegraf is written in go.So: I can get everything to work and i can parse all…
0
votes
1 answer

Telegraf logparser giving error. Error parsing log line:: must have one or more fields

Using Log parser input plugin, writing custom logs to influxdb. Input plugin logparser giving error: Error parsing log line: filename.log: must have one or more fields. This is running telegraf version 1.5.3 and is failing with above error. I…
0
votes
1 answer

How to get the process name and process state (running or stop) using telegraf procstat plugin

I am trying to monitor the system services state (running or stop) using telegraf. I am pushing all the data into the influxdb and trying to visualize it in grafana. My end goal is that i need to visualize the processname and processstate from…
0
votes
1 answer

Field type conflict with [input.tail] plugin

I'm trying to import the data from my csv file to InfluxDB by using Telegraf's input.tail plugin. I'm able to import the data without expliciting the type of the fields. The problem is that I want to merge the data from csv to already existing…
0
votes
2 answers

Multiple Telegraf Daemons trying to write to same DB in InfluxDB

I have two telegraf daemons running. Daemon 1 : Input = kafka topic : sample_topic, Output = InfluxDb : DB = telegraf, MEASUREMENT = KI1 Daemon 2 : Input = kafka topic : sample_topic2, Output = InfluxDb : DB = telegraf, MEASUREMENT = KI2 The two…
0
votes
1 answer

Telegraf - how to run bash script with a flag?

I am trying to configure telegraf to run bash script with a flag. For example: [[inputs.exec]] ## Commands array commands = [ "/tmp/test.sh", ] That works fine, but when I modify it to: [[inputs.exec]] ## Commands array commands = […
Saine1991
  • 1
  • 4
0
votes
1 answer

metric parse error: expected field at offset # is not very helpful

I have a problem with Telegraf where it returns an error in the input when working with the following lines produced by a powershell script: nps,Component\ Name=E\:\ Label\:DB\ Serial\ Number\ 51646c8b,Component\ Type=DISK,Node\…
nnmiguyra
  • 1
  • 2
0
votes
0 answers

telegraf not able to parse kafka consumer input

I have a docker compose file: influx: image: influxdb:latest container_name: influxdb ports: - "8083:8083" - "8086:8086" - "8090:8090" telegraf: image: telegraf:latest container_name: telegraf links: -…
0
votes
2 answers

telegraf http input plugin

I am trying to create a proof on concept using the TICK stack for monitoring. I have the helloworld stack running and showing CPU/Docker metrics. I am trying to use the telegraf http input plugin to pull from an http endpoint: From the docs i have…
user685590
  • 2,464
  • 5
  • 30
  • 42