error while starting
● telegraf-evtlog.service - The plugin-driven server agent for reporting metrics into InfluxDB
Loaded: loaded (/usr/lib/systemd/system/telegraf-evtlog.service; enabled; vendor preset: disabled)
Active: active (running) since Thu 2022-04-07 11:07:53 CDT; 2min 12s ago
Docs: GitHub - influxdata/telegraf: The plugin-driven server agent for collecting & reporting metrics.
Main PID: 17728 (telegraf)
└─17728 /usr/bin/telegraf -config /etc/telegraf/telegraf-evtlog.conf
None of these messages are error messages, only debug messages.
What is missing from the output is Telegraf saying it collected any metrics from your input. Are you sure there are events coming into eventhub? That plugin works by connecting to eventhub, which it looks like it succeeded or it would have errored, and then waits for messages to appear and pull down.
I would check when your latest event is in eventhub and if possible try to send a test event.
If you you believe you are getting metrics from the inputs and not sent to the output, then I would suggest adding the [[outputs.file]] output and see if any metrics are printed out. That will print any metrics collected to STDOUT. However, based on your log messages this does not appear to be the case.
I still believe that your input configuration is not collecting any events. Try the above first to see if any events show up.
I’m new to influx and telegraf environment and I’m facing the same issue.
My telegraf config file:
## data collection interval for all inputs
interval = "10s"
round_interval = true
metric_batch_size = 10000
metric_buffer_limit = 1000
collection_jitter = "0s"
flush_interval = "10s"
flush_jitter = "0s"
precision = ""
debug = true
quiet = false
logfile = ""
hostname = ""
omit_hostname = false
files = ["stdout", "C:/Users/Manu/OneDrive - Bayesian Ways LLP/Desktop/influx/metrics.out"]
data_format = "json"
urls = ["http://localhost:8086"]
token = "my_token"
organization = "my_org"
bucket = "telegraf_conf_test"
#URL for NYC's Citi Bike station data in JSON format
urls = ["https://feeds.citibikenyc.com/stations/stations.json"]
#Overwrite measurement name from default `http` to `citibikenyc`
name_override = "citibikenyc"
#Exclude url and host items from tags
tagexclude = ["url", "host"]
#Data from HTTP in JSON format
data_format = "json"
#Parse `stationBeanList` array only
json_query = "stationBeanList"
#Set station metadata as tags
tag_keys = ["id", "stationName", "city", "postalCode"]
#Do not include station landmark data as fields
fielddrop = ["landMark"]
#JSON values to set as string fields
json_string_fields = ["statusValue", "stAddress1", "stAddress2", "location", "landMark"]
#Latest station information reported at `lastCommunicationTime`
json_time_key = "lastCommunicationTime"
#Time is reported in Golang "reference time" format
json_time_format = "2006-01-02 03:04:05 PM"
#Time is reported in Eastern Standard Time (EST)
json_timezone = "America/New_York"
As i’m using 2 output plugins, i got the data in local system, but nothing is sent to influxDB.
2022-08-02T14:49:59Z D! [outputs.influxdb_v2] Wrote batch of 509 metrics in 54.1031ms
2022-08-02T14:49:59Z D! [outputs.influxdb_v2] Buffer fullness: 0 / 1000 metrics