Skip to content

Commit

Permalink
[pinpoint-apm#11417] Add telelgraf proctstat fd metric
Browse files Browse the repository at this point in the history
  • Loading branch information
donghun-cho committed Sep 4, 2024
1 parent 6673353 commit 5399016
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -115,4 +115,13 @@ mappings:
- name: "active"
matchingRule: ANY_ONE
- name: "waiting"
matchingRule: ANY_ONE
matchingRule: ANY_ONE

- definitionId: "processFd"
name: "procstat"
title: "process fd count"
grouping: "TAG"
unit: "count"
fields:
- name: "num_fds"
matchingRule: PASSED_ALL
10 changes: 9 additions & 1 deletion metric-module/metric/src/main/telegraf/pinpoint-telegraf.conf
Original file line number Diff line number Diff line change
Expand Up @@ -390,4 +390,12 @@
# Read metrics about system load & uptime
[[inputs.system]]
## Uncomment to remove deprecated metrics.
fielddrop = ["uptime_format"]
fielddrop = ["uptime_format"]

# Read metrics about process fd (telegraf may need to be ran as root)
# [[inputs.procstat]]
# # pattern as argument for pgrep (ie, pgrep -f <pattern>)
# pattern = "process.identifier"
#
# # only send num_fds metrics
# fieldpass = ["num_fds"]

0 comments on commit 5399016

Please sign in to comment.