Skip to content

data point missing when using procstat with multi pids outputing to influxdb #1668

@piglei

Description

@piglei

Bug report

When using prostat plugin with pattern matching, if it matches multi pids, multi data points are generated with identical tags and timestamp. when these points are sent to influxdb, only the last point was stored correctly, former points will be overwritten repeatedly.

This will result in only one pid's data will be found in the database, instead of one point per pid.

Relevant telegraf.conf:

[[input:procstat]]
# Use pattern matching
pattern = "ANY PATTERN MATCHING MULTI PIDS"

System info:

telegraf-1.0.0-beta3_linux_amd64

Steps to reproduce:

  1. Use prostat input's pattern matching method, match multi pids.
  2. Produce to influxdb output

Expected behavior:

One data point per pid will be written to database.

Actual behavior:

Only the last pid data point can be found, others got overwritten.

Additional info:

Metadata

Metadata

Assignees

Labels

bugunexpected problem or unintended behavior

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions