telegraf | driven server agent for collecting & reporting metrics | Plugin library
kandi X-RAY | telegraf Summary
kandi X-RAY | telegraf Summary
Telegraf is an agent for collecting, processing, aggregating, and writing metrics. Based on a plugin system to enable developers in the community to easily add support for additional metric collection. There are four distinct types of plugins:. New plugins are designed to be easy to contribute, pull requests are welcomed, and we work to incorporate as many pull requests as possible. Consider looking at the list of external plugins as well.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of telegraf
telegraf Key Features
telegraf Examples and Code Snippets
Community Discussions
Trending Discussions on telegraf
QUESTION
I'm working on a monitoring system to retrieve hardware metric by telegraf and store the time-series data to TDengine.
But seem the data insertion is very slow even making telegraf reject to work anymore.
I got error msg like following:
2021-12-28T11:36:14Z W! [agent] ["outputs.http"] did not complete within its flush interval
2021-12-28T11:36:23Z E! [agent] Error writing to outputs.http: Post "http://xxxxxx:6041/influxdb/v1/write?db=bmc": context deadline exceeded (Client.Timeout exceeded while awaiting headers)
2021-12-28T11:36:35Z W! [agent] ["outputs.http"] did not complete within its flush interval
2021-12-28T11:36:43Z E! [agent] Error writing to outputs.http: Post "http://xxxxxx:6041/influxdb/v1/write?db=bmc": context deadline exceeded (Client.Timeout exceeded while awaiting headers)
2021-12-28T11:37:02Z W! [agent] ["outputs.http"] did not complete within its flush interval
2021-12-28T11:37:07Z E! [agent] Error writing to outputs.http: Post "http://xxxxxx:6041/influxdb/v1/write?db=bmc": context deadline exceeded (Client.Timeout exceeded while awaiting headers)
2021-12-28T11:37:08Z W! [outputs.http] Metric buffer overflow; 7824 metrics have been dropped
2021-12-28T11:37:21Z W! [agent] ["outputs.http"] did not complete within its flush interval
2021-12-28T11:37:28Z E! [agent] Error writing to outputs.http: Post "http://xxxxxxxx:6041/influxdb/v1/write?db=bmc": context deadline exceeded (Client.Timeout exceeded while awaiting headers)
2021-12-28T11:37:28Z W! [outputs.http] Metric buffer overflow; 14363 metrics have been dropped
Does anyone know how to tune TDengine to work better performance?
...ANSWER
Answered 2022-Mar-31 at 02:17Edit /etc/taos/taosadatper.toml and add following lines:
QUESTION
I have a dockerised telegraf (influxdata-docker/telegraf/1.21 at master · influxdata/influxdata-docker · GitHub) and influxdb (influxdata-docker/Dockerfile at master · influxdata/influxdata-docker · GitHub).
I’m trying to send data to influxdb from ttn but without any success. The config file for telegraf is:
...ANSWER
Answered 2022-Mar-26 at 18:35Just in case somebody else has the same issue, it was finally due to the fact I was using ttn v3, ie. in telegraf.conf:
topics = [ "v3/+/devices/+/up" ]
instead of:
topics = [ "+/devices/+/up" ]
QUESTION
I am running InfluxDB and Telegraf ingesting MQTT data into the database. I have an odd behavior where in I am missing some data that I should be ingesting with Telegraf. I'm seeing loads of MQTT data, from topics and subtopics that are siblings of the missing data, but yet some data is still missing. I'm also not seeing anything indicating an error in the logs. This is my telegraf.conf
...ANSWER
Answered 2022-Mar-24 at 01:42The answer here turned out to be that the input data_format="json" does not support booleans. I needed to upgrade to json_v2. This was not exactly clear to me how to just get the same exact behavior because the documentation wasn't really great. But I ended up with this and it works just fine.
QUESTION
I am trying to run the Telegraf as a docker container on AWS fargate. I have created the Telegraf image file using Dockerfile and built the image and pushed it to ECR. Now, I am trying to run this image on AWS fargate.
The main challenge I facing is how to mount the configuration (telegraf.conf) file to the container which required by container to run it. I tried following this https://kichik.com/2020/09/10/mounting-configuration-files-in-fargate/ blog by spinning two containers but I have more files that I am passing to the telegraf.conf file. Fargate provides two options to mount files using the Bind mount and EFS. I am trying to use Bind Mount but I am not sure how to provide the configuration files or mount them. I am showing below how I run the telegraf container using docker-compose.
...ANSWER
Answered 2022-Mar-23 at 18:10Bind mount on Fargate is good for sharing a folder between multiple containers in a single task, but I'm not aware of any way to load external configuration files in Fargate bind mounts, other than running a sidecar container to download those from S3 on task startup.
I generally see EFS used for mounting a folder with configuration files in Fargate.
QUESTION
Im trying to deploy telegraf helm chart on kubernetes.
helm upgrade --install telegraf-instance -f values.yaml influxdata/telegraf
When I add modbus input plugin with holding_register i get error
[telegraf] Error running agent: Error loading config file /etc/telegraf/telegraf.conf: Error parsing data: line 49: key `name’ is in conflict with line 2fd
my values.yaml like below
...ANSWER
Answered 2022-Mar-11 at 12:37Problem resolved by doing the following steps
- deleted config section of my values.yaml
- added my telegraf.conf to /additional_config path
- added configmap to kubernetes with the following command
QUESTION
I'm trying to use Telegraf (4.6.0) types and I'm having an issue with exploring possible message properties.
Here's what I do now:
...ANSWER
Answered 2022-Feb-17 at 09:28You can flatten a union using StrictUnion
as defined here This type will basically add the missing members to all union constituents with the type undefined
. This will allow de-structuring to suggest all members from any constituent, but each member that is not present in all union constituents will also contain undefined
(which is probably for the best from a type-safety perspective)
QUESTION
I created a game using HTML, now I am trying to import it in my js file, and send to user.
This is my code so far
...ANSWER
Answered 2022-Jan-25 at 10:22As mentioned on Telegram BOT API's documentation, parse_mode
of type html
only supports a few tags. Therefore, you can't send your game's html file to the chat for the user with parse_mode
set to html
.
Here's what the docs say:
To use this mode, pass HTML in the parse_mode field. The following tags are currently supported:
QUESTION
I am using TelegrafJS
and nodejs
for developing a telegram
bot and I want to use "chat_member" because it returns the invite link used by the user to join the telegram group. but the problem is it is not getting invoked. when new members are joined. my primary goal is to get the invite link used by the member to join the telegram group.
ANSWER
Answered 2022-Jan-22 at 05:09I got the solution the thing I needed to add was the launch options in the bot.launch method
QUESTION
We have installed Telegraf add-on for almost all the nodes in Jelastic paas environment. But for couple nodes we get the following message when we are trying to install the add-on:
We have read the documentation of Jelastic but could not find why we are getting this message. We have tested with a basic hello world manifest but even that was not possible to install, we do get the same message.
We have this problem for the following nodes:
- Custom
- PostgresSQL
Does anyone have experience with this message an how to resolve it?
...ANSWER
Answered 2022-Jan-03 at 13:34Your Jelastic provider doesn't allow Telegraf to be installed on this type of node. You can ask them to allow that. Thanks
QUESTION
ANSWER
Answered 2021-Nov-09 at 13:39I had to type 'bot.telegram.setMyCommands()' instead of 'bot.setMyCommands()'
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install telegraf
Install Go >=1.17 (1.17.2 recommended)
Clone the Telegraf repository: git clone https://github.com/influxdata/telegraf.git
Run make from the source directory cd telegraf make
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page