Skip to content

ntpq reachability should be converted to a counter #2257

@paulgear

Description

@paulgear

Bug report

The ntpq input plugin pulls in the reachability column from ntpq without treating it specially in any way.

System info:

n/a

Steps to reproduce:

Read https://github.com/influxdata/telegraf/blob/master/plugins/inputs/ntpq/ntpq.go#L44

Expected behavior:

Convert the "reach" column from octal to a decimal count of the number of successful recent polls (out of a total possible 8): 377 -> 8, 177,277,376,etc. -> 7, 77 -> 6, and so on.

Actual behavior:

Integers are shipped raw to their outputs.

Additional info:

Feature Request

Proposal:

Current behavior:

Desired behavior:

Use case: [Why is this important (helps with prioritizing requests)]

Because otherwise it's not possible to do anything useful with the reachability metric, and it doesn't accurately represent the state of the plugin's inputs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedRequest for community participation, code, contributionsize/s1 day effort, great beginniner issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions