D! [outputs.influxdb_v2] Buffer fullness: 0 / 1 metrics

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)
CGroup: /system.slice/telegraf-evtlog.service
└─17728 /usr/bin/telegraf -config /etc/telegraf/telegraf-evtlog.conf

Apr 07 11:09:55 vmaz1utteleg01.com telegraf[17728]: 2022-04-07T16:09:55Z D! [outputs.influxdb_v2] Buffer fullness: 0 / 1 metrics
Apr 07 11:09:56 vmaz1utteleg01.com telegraf[17728]: 2022-04-07T16:09:56Z D! [outputs.influxdb_v2] Buffer fullness: 0 / 1 metrics
Apr 07 11:09:57 vmaz1utteleg01.com telegraf[17728]: 2022-04-07T16:09:57Z D! [outputs.influxdb_v2] Buffer fullness: 0 / 1 metrics
Apr 07 11:09:58 vmaz1utteleg01.com telegraf[17728]: 2022-04-07T16:09:58Z D! [outputs.influxdb_v2] Buffer fullness: 0 / 1 metrics
Apr 07 11:10:00 vmaz1utteleg01.com telegraf[17728]: 2022-04-07T16:09:59Z D! [outputs.influxdb_v2] Buffer fullness: 0 / 1 metrics

conf 

[agent]

    interval = "1s"
    logtarget = "stderr"
    flush_interval = "1s"
    metric_batch_size = 1
    metric_buffer_limit = 1
    debug = true
    quiet = false
    logfile = "/var/log/telegraf/telegraf.log"

[global_tags]

[inputs.eventhub_consumer]

    connection_string = "Endpoint=sb://ns-az1-aod-uat-greendot-eventhub-namespace-001.servicebus.windows.net/;SharedAccessKeyName=evtlog_telegraf1;SharedAccessKey=Ksmn
=;EntityPath=b24-eps-evtlog"
    enqueued_time_as_ts = true
    latest = true
    json_string_fields = [ "DateTime", "TaskID", "UniqueEventID", "ThreadID"]

    data_format = "json"

[outputs.influxdb_v2]
  urls = ["http://10.92.xx.xx:8086"]

  ## Token for authentication.
  token = "-qtHyZdVmri_sAIhg=="

  ## Organization is the name of the organization you wish to write to; must exist.
  organization = "ACI-GD"

  ## Destination bucket to write into.
  bucket = "evtlog"

I am not sure why i am getting this error. I am getting the data in Grafana.

Hello @rks83,
I’m not sure either, but why did. you make your buffer limit and batch size = 1?
I’d recommend using the default values.

ok thank you .i will try that now.

1 Like

Apr 7 20:49:37 vmaz1utteleg01 telegraf: 2022-04-07T20:49:37Z D! [agent] Successfully connected to outputs.influxdb_v2
Apr 7 20:49:37 vmaz1utteleg01 telegraf: 2022-04-07T20:49:37Z D! [agent] Starting service inputs
Apr 7 20:49:38 vmaz1utteleg01 telegraf: 2022-04-07T20:49:38Z D! [outputs.influxdb_v2] Buffer fullness: 0 / 10000 metrics
Apr 7 20:49:39 vmaz1utteleg01 telegraf: 2022-04-07T20:49:39Z D! [outputs.influxdb_v2] Buffer fullness: 0 / 10000 metrics
Apr 7 20:49:40 vmaz1utteleg01 telegraf: 2022-04-07T20:49:40Z D! [outputs.influxdb_v2] Buffer fullness: 0 / 10000 metrics
Apr 7 20:49:41 vmaz1utteleg01 telegraf: 2022-04-07T20:49:41Z D! [outputs.influxdb_v2] Buffer fullness: 0 / 10000 metrics
No Luck

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.

Thank you sure i am checking in Eventhubs now.

nope we are getting input from Eventhubs. But it is not reflecting it in influxDB through the Telegraf agent.

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.

ok sure. i will try.

Hi,
I’m new to influx and telegraf environment and I’m facing the same issue.

My telegraf config file:

[agent]
  ## 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

[[outputs.file]]

  files = ["stdout", "C:/Users/Manu/OneDrive - Bayesian Ways LLP/Desktop/influx/metrics.out"]
  data_format = "json" 

[[outputs.influxdb_v2]]
  urls = ["http://localhost:8086"]
  token = "my_token"
  organization = "my_org"
  bucket = "telegraf_conf_test"


[[inputs.http]]
#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.

It’s showing:`

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

Please help me to resolve this.