From a433cbb6e98a66a1aa2a3f895c17362bc1a01c4f Mon Sep 17 00:00:00 2001 From: Prashant Pandey <84911643+suddendust@users.noreply.github.com> Date: Sat, 23 Sep 2023 00:56:26 +0530 Subject: [PATCH] Export Additional Upsert Metrics to Prom (#11660) --- .../jmx_prometheus_javaagent/configs/server.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/docker/images/pinot/etc/jmx_prometheus_javaagent/configs/server.yml b/docker/images/pinot/etc/jmx_prometheus_javaagent/configs/server.yml index d02345dc490..0b243f1a744 100644 --- a/docker/images/pinot/etc/jmx_prometheus_javaagent/configs/server.yml +++ b/docker/images/pinot/etc/jmx_prometheus_javaagent/configs/server.yml @@ -130,6 +130,20 @@ rules: cache: true labels: version: "$2" +- pattern: "\"org.apache.pinot.common.metrics\"<>(\\w+)" + name: "pinot_server_upsertValidDocSnapshotCount_$4" + cache: true + labels: + table: "$1" + tableType: "$2" + partition: "$3" +- pattern: "\"org.apache.pinot.common.metrics\"<>(\\w+)" + name: "pinot_server_upsertPrimaryKeysInSnapshotCount_$4" + cache: true + labels: + table: "$1" + tableType: "$2" + partition: "$3" ## Metrics that fit the catch-all patterns above should not be added to this file. ## In case a metric does not fit the catch-all patterns, add them before this comment