Questions tagged [telegraf-inputs-plugin]

96 questions
1
vote
0 answers

Writing Telegraf Input Plugin - Is Contribution Guide Up to Date?

I've recently attempted at creating my own Telegraf input plugin to collect metrics from a Tibit OLT (https://tibitcom.com/). I apologise that I haven't any previous experience with Golang, and no one to ask who does have experience with it, so I'm…
1
vote
0 answers

Parse JSON value into separate strings in telegraf.conf

I am using telegraf inputs.tail to parse my application log files. Input data is in json format like so: { "key1":"value1", "key2":"value2", "key3":"value3a^value3b" } Question - How to parse the value of key3 so that I can write value3a and…
Aarthi
  • 39
  • 7
1
vote
0 answers

Timestamp env variable or argument for telegraf configuration

I am using the inputs.http plugin of Telegraf in order to import data from an API to influxdb. The API requires a time filter in the body of a POST request and responds with data between that time filter. I want to periodically call this API and…
Matthew Thomas
  • 594
  • 7
  • 13
1
vote
0 answers

Parse json inputs.http plugin of Telegraf

I have a json response of the below format that I am trying to parse via inputs.http plugin of Telegraf. https://docs.influxdata.com/influxdb/v1.7/tools/api/#examples-2 { "data": { "results": [ { "series": [ …
Matthew Thomas
  • 594
  • 7
  • 13
1
vote
1 answer

Prometheus - Creating an alert in case of http errors using the telegraf http_response plugin

I am using Telegraf and Prometheus to monitor my local services, for example OpenHab and my Grafana instance. The http_response plugin might produce the following…
1
vote
0 answers

How to get a list of available input- and output-filters for telegraf

Is there any way to get a list which input- and output-filters are currently supported by a given installation?
frlan
  • 6,950
  • 3
  • 31
  • 72
1
vote
0 answers

Can i have a vsphere metric as both tags and fields in telegraf?

I Need to perform count of tags like vm, datastore, host , cluster . show tag values cardinality from with key="clustername" where dcname = '' This query takes a lot of time to process, as we have huge data. Was thinking , the problem could be…
suman
  • 11
  • 1
1
vote
1 answer

How does telegraf input plugin like [[inputs.mem]] fetch data?

When we need memory related stats we add input plugin in telegraf.conf file. [[inputs.mem]] For application stats we keep input as statsd, we push stats from application using UDP to telegraf using its host and port. [[inputs.statsd]] Could…
Ash
  • 105
  • 1
  • 11
1
vote
1 answer

How to Insert a new string into telegraf.conf's inputs.ping using ansible regexp

I'm trying to use ansible to update telegraf.conf's [[inputs.ping]]. telegraf.conf looks like the following: [[inputs.ping]] urls = ["tac-temp1","tac-temp2", "tac-temp3","tac-temp4"] #tac count = 30 timeout = 15.0 [inputs.ping.tags] name…
james
  • 132
  • 12
1
vote
1 answer

How to add a alert panel in all the Grafana Dashboard

We are using grafana to visualize the influx data. There are multiple dashboard created in. Because of some technical issue there may not be new data in Influx to display in the dashboard because of some downtime. Is there a possibilities that I…
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
1 answer

Telegraf - input tail plugin error (Error: metric parse error: expected field at offset)

I want to read a plain text file. For this I use Tail Input Plugin. The configuration file is this: [[inputs.tail]] files = ["/home/nikitalipatov/Programing/Projects/Diploma/TestData/test.txt"] from_beginning = true data_format =…
1
vote
0 answers

Converting Nginx access log or InfluxDB tag data to lowercase

In Grafana I'm building a list of hostnames for templating. That data is stored in InfluxDB, supplied by Telegraf, using the logparser plugin to eat some Nginx access logs. Nginx is storing the hostname in whatever case the request comes across…
castis
  • 8,154
  • 4
  • 41
  • 63
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 test input and output plugins error multiple conf files

Telegraf version: Telegraf v1.0.1 I have the following files: /etc/telegraf/telegraf.conf main config file (which you create/get for free while installing telegraf). This file doesn't have any [[output.]] stanza in it but does have valid…
AKS
  • 16,482
  • 43
  • 166
  • 258