Questions tagged [telegraf]

Telegraf is an open source, plugin-driven agent for collecting and reporting metrics written in Go with no external dependencies.

Telegraf is an open source(MIT licensed) agent for collecting and reporting metrics written for influxdata's Open Source Time Series Platform (a.k.a TICK stack).

Although build for the TICK stack it is not limited to delivering output to InfluxDB but several other common time series databases and message queues like Graphite, OpenTSDB, Kafka and MQTT.

Input plugins include SNMP, MySQL, Apache, PostgreSQL, kubernetes, docker and many more.

664 questions
5
votes
0 answers

How to check telegram group invitation link parameters on new_chat_members

I have telegram bot which is added to the group and is listening on everything what is going on on the group. There is a command /invite implemented which displays invitation link to the group (not to the bot but to the group). This link contains…
bofomike
  • 51
  • 5
5
votes
0 answers

Http TLS handshake error when using InfluxDb and Telegraf for Grafana

I generated certificate and key (.crt and .key) files with the OpenSSL tool, and set the generated file paths to these files in the influxdb.conf file. When I run my Telegraf service, the Influxd logs: http: TLS handshake error from [::1]:63020:…
Jure Beton
  • 137
  • 1
  • 9
5
votes
2 answers

How to apply 'Markdown style for reply with InlineKeyboardButton?

How to apply { parse_mode: 'Markdown' } for reply with InlineKeyboardButton ? const Telegraf = require("telegraf"); const Extra = require("telegraf/extra"); const Markup = require("telegraf/markup"); const keyboard = Markup.inlineKeyboard([ …
Mo.
  • 26,306
  • 36
  • 159
  • 225
5
votes
1 answer

Telegram Bot API: How to get MIME type of received photos

How do I get the MIME type of photos that users send to my bot? I am using the Telegram Bot API through Telegraf. My bot is saving file id's from photos and videos that users are sending it and I want to be able to download the files later. The…
Bert
  • 51
  • 2
5
votes
1 answer

Telegraf filecount values not showing up in influxdb

Telegraf 1.9.0, Influxdb 1.7.4. I'm using the filecount input plugin to count the number of files in two directories. Here's the relevant test output of telegraf: $ telegraf --config /etc/telegraf/telegraf.conf --test 2019-04-08T19:41:42Z I!…
Mark Fletcher
  • 701
  • 1
  • 14
  • 36
5
votes
2 answers

How to send message in a Telegram channel using Telegraf?

I want to create a Bot that automatically keeps posting in a Telegram channel.I am using Node.js. I am using Telegraf.js wrapper for Telegram API. You may even suggest any other suitable wrapper for this task.
Neel Bhave
  • 89
  • 1
  • 2
  • 10
5
votes
1 answer

Can telegraf store metrics data on the local system during network outages and later forward it?

We have IoT devices which are mostly connected well to the internet, but there is a possibility that the network goes down. For this case, the device itself will do the right thing (while it cannot be actively controlled any more). We would still…
Sven Haiges
  • 2,636
  • 5
  • 42
  • 54
5
votes
2 answers

Kapacitor .post() HTTP Post to url not sending data

I am using kapacitor to send alert to URL using HTTP POST. Written script is hitting on given url but it is not sending related data to any of given url. Following is my TICK script. stream |from() .measurement('cpu') |alert() …
Mahendra
  • 908
  • 1
  • 18
  • 38
5
votes
2 answers

Adding dynamic tags to telegraf input

We're using telegraf to collect CloudWatch data from AWS and output it to InfluxDB. We need to add dynamic tags to the input, s.t if "instancId == 12345", add tag "user = 3" Is there a way to do this?
Yossale
  • 14,165
  • 22
  • 82
  • 109
5
votes
1 answer

How to show the most recent timestamp for an InfluxDB measurement in Grafana table (or singlestat)?

I'm using Telegraf/InfluxDB/Grafana to register and view metrics for my servers. Occasionally one of these components crash and metrics stop flowing into InfluxDB. To be able to notice when this happens (on top of using Monit to restart the service)…
Robin Smidsrød
  • 447
  • 4
  • 9
4
votes
1 answer

telegraf and script command to send to grafana

I have the following inputs in my telegraf.conf that go to Grafana. I can get the simpler first 3 examples to work but cannot get the 4th to work. [[inputs.exec]] commands = ["sh -c 'grep -i DatasetVersion /etc/aaa/systemnameX/configfile | cut -d'='…
tj26
  • 197
  • 1
  • 10
4
votes
0 answers

Telegraf and Inlfuxdb with docker-compose connection refused

I am trying to set up a Telegraf and Influxdb on macOS 11.3.1 using docker compose. But unfortunately, I am getting the following error: telegraf | 2021-07-12T19:18:14Z E! [outputs.influxdb_v2] When writing to [http://localhost:8086]: Post…
endryha
  • 7,166
  • 8
  • 40
  • 64
4
votes
3 answers

Visual Studio Code cannot find module 'typegram/callback'

im working on a telegram bot using the telegraf package. (version 4.1.1) everything was working until i started using more modules from the telegraf package like Extra and mark-up. I started getting this error: internal/modules/cjs/loader.js:800 …
coding_potato
  • 353
  • 2
  • 15
4
votes
2 answers

Telegraf: can't use extra

Simple usage works fine: const { Telegraf } = require('telegraf'); const bot = new Telegraf(tgBotToken); bot.telegram.sendMessage(tgChatId, "My message"); But if I want to use HTML in my message, I need to require telegraf/extra const { Telegraf }…
Dmitry
  • 543
  • 2
  • 5
  • 20
4
votes
0 answers

How to migrate InfluxDb to Amazon Timestream?

I have been trying to migrate my InfluxDb to Amazon Timestream. Since it is a new service, I am unable to find the exact documentation for migrating Influx to Timestream. I found that Telegraf can be used for connecting InfluxDB to Timestream, but…
1
2
3
44 45