influxdata/telegraf

puppet plugin custom resources from last_run_summary

Open

#16,138 创建于 2024年11月5日

在 GitHub 查看
 (1 评论) (0 反应) (0 负责人)Go (4,161 fork)batch import
feature requesthelp wanted

仓库指标

Star
 (9,892 star)
PR 合并指标
 (平均合并 2天 12小时) (30 天内合并 136 个 PR)

描述

Use Case

specify a list of additional custom resources to report on from the yaml

Expected behavior

counters will be added for these custom resources

Actual behavior

This is a statically defined list in code: https://github.com/influxdata/telegraf/blob/master/plugins/inputs/puppetagent/puppetagent.go#L56-#L78

However, additional struct items can be output. For instance, on a windows node you might want to define

Registryvalue float64 yaml:"registry_value"

These will largely be dependent on the last_run_summary.yaml of a node.

For instance the values might require some user defined configuration:

time:
  audit_policy: 0.015552399999999997
  catalog_application: 12.702384400065057
  chocolateysource: 0.0005288
  config_retrieval: 1.086993100005202
  convert_catalog: 1.4537254000315443
  exec: 6.6299175
  fact_generation: 3.570928900036961
  file: 0.0324541
  file_line: 0.014903999999999995
  filebucket: 0.0001311
  group: 0.0235182
  local_security_policy: 0.0621579
  package: 1.9399391000000004
  plugin_sync: 1.6557640000246465
  reboot: 0.0005569
  registry_key: 0.018593
  registry_value: 0.08759190000000001
  schedule: 0.0003258
  service: 0.010542800000000003
  startup_time: 1.2416734
  total: 24.1869254
  transaction_evaluation: 12.55120290000923
  user: 0.0095031
  windows_env: 0.0011035
  last_run: 1730772855

Additional info

No response

贡献者指南