From 53990168fd4b14ca2cdb16febc37b9cdc5b268c8 Mon Sep 17 00:00:00 2001 From: donghun-cho Date: Tue, 27 Aug 2024 10:46:43 +0900 Subject: [PATCH] [#11417] Add telelgraf proctstat fd metric --- .../src/main/resources/pinot-web/telegraf-metric.yml | 11 ++++++++++- .../metric/src/main/telegraf/pinpoint-telegraf.conf | 10 +++++++++- 2 files changed, 19 insertions(+), 2 deletions(-) diff --git a/metric-module/metric/src/main/resources/pinot-web/telegraf-metric.yml b/metric-module/metric/src/main/resources/pinot-web/telegraf-metric.yml index eedf01b69b08..be7a57e61d6b 100644 --- a/metric-module/metric/src/main/resources/pinot-web/telegraf-metric.yml +++ b/metric-module/metric/src/main/resources/pinot-web/telegraf-metric.yml @@ -115,4 +115,13 @@ mappings: - name: "active" matchingRule: ANY_ONE - name: "waiting" - matchingRule: ANY_ONE \ No newline at end of file + matchingRule: ANY_ONE + + - definitionId: "processFd" + name: "procstat" + title: "process fd count" + grouping: "TAG" + unit: "count" + fields: + - name: "num_fds" + matchingRule: PASSED_ALL diff --git a/metric-module/metric/src/main/telegraf/pinpoint-telegraf.conf b/metric-module/metric/src/main/telegraf/pinpoint-telegraf.conf index c132b82d94ad..1a096b5a0abf 100644 --- a/metric-module/metric/src/main/telegraf/pinpoint-telegraf.conf +++ b/metric-module/metric/src/main/telegraf/pinpoint-telegraf.conf @@ -390,4 +390,12 @@ # Read metrics about system load & uptime [[inputs.system]] ## Uncomment to remove deprecated metrics. - fielddrop = ["uptime_format"] \ No newline at end of file + 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 = "process.identifier" +# +# # only send num_fds metrics +# fieldpass = ["num_fds"] \ No newline at end of file