Skip to content

inputs.procstat: measurement procstat_lookup missing the query information in its tags #9793

@sajoupa

Description

@sajoupa

Relevant telegraf.conf:

[[inputs.procstat]]
# Just a random example
  exe = "cron"

System info:

Telegraf 1.20.0 (git: HEAD f489cff3)

Description:	Ubuntu 20.04.3 LTS
Release:	20.04

Steps to reproduce:

  1. Enable the procstat input plugin in telegraf 1.20.0, and specify the relevant selectors
  2. Observe the procstat_lookup measurement

Expected behavior:

The query information should be in the measurement tags as explained in https://github.com/influxdata/telegraf/tree/master/plugins/inputs/procstat#metrics.

Actual behavior:

The tags are missing.

Additional info:

root@focal:~# grep -A 1 procstat /etc/telegraf/telegraf.conf
[[inputs.procstat]]
 exe = "cron"

Telegraf 1.19.3 (there's an exe=cron tag):

root@focal:~# /usr/bin/telegraf --config /etc/telegraf/telegraf.conf --input-filter procstat --test | grep '^> procstat_lookup'
2021-09-22T13:15:17Z I! Starting Telegraf 1.19.3
> procstat_lookup,exe=cron,host=focal,pid_finder=pgrep,result=success pid_count=1i,result_code=0i,running=1i 1632316518000000000

Telegraf 1.20.0 (no more exe=cron tag):

root@focal:~# /usr/bin/telegraf --config /etc/telegraf/telegraf.conf --input-filter procstat --test | grep '^> procstat_lookup'
2021-09-22T13:14:37Z I! Starting Telegraf 1.20.0
> procstat_lookup,host=focal,pid_finder=pgrep,result=success pid_count=1i,result_code=0i,running=1i 1632316478000000000

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/procstatbugunexpected problem or unintended behavior

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions