From 48c5af41a45da17df830da9bfd0773a4c6a917fc Mon Sep 17 00:00:00 2001 From: Xiang Fu Date: Fri, 4 Oct 2019 12:14:27 -0700 Subject: [PATCH] Adding examples of jmx exporter for Apache Pinot Signed-off-by: Xiang Fu --- example_configs/pinot.yml | 208 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 208 insertions(+) create mode 100644 example_configs/pinot.yml diff --git a/example_configs/pinot.yml b/example_configs/pinot.yml new file mode 100644 index 00000000..2f3d253a --- /dev/null +++ b/example_configs/pinot.yml @@ -0,0 +1,208 @@ +rules: +# Pinot Controller +- pattern: "\"org.apache.pinot.common.metrics\"<>(\\w+)" + name: "pinot_controller_$1_$2" +- pattern: "\"org.apache.pinot.common.metrics\"<>(\\w+)" + name: "pinot_controller_helix_$1_$2" +- pattern: "\"org.apache.pinot.common.metrics\"<>(\\w+)" + name: "pinot_controller_helix_ZookeeperReconnects_$1" +- pattern: "\"org.apache.pinot.common.metrics\"<>(\\w+)" + name: "pinot_controller_idealstateZnodeSize_$3" + labels: + table: "$1" + tableType: "$2" +- pattern: "\"org.apache.pinot.common.metrics\"<>(\\w+)" + name: "pinot_controller_numberOfReplicas_$3" + labels: + table: "$1" + tableType: "$2" +- pattern: "\"org.apache.pinot.common.metrics\"<>(\\w+)" + name: "pinot_controller_percentOfReplicas_$3" + labels: + table: "$1" + tableType: "$2" +- pattern: "\"org.apache.pinot.common.metrics\"<>(\\w+)" + name: "pinot_controller_percentSegmentsAvailable_$3" + labels: + table: "$1" + tableType: "$2" +- pattern: "\"org.apache.pinot.common.metrics\"<>(\\w+)" + name: "pinot_controller_segmentCount_$3" + labels: + table: "$1" + tableType: "$2" +- pattern: "\"org.apache.pinot.common.metrics\"<>(\\w+)" + name: "pinot_controller_segmentsInErrorState_$3" + labels: + table: "$1" + tableType: "$2" +- pattern: "\"org.apache.pinot.common.metrics\"<>(\\w+)" + name: "pinot_controller_numberSegmentUploadTimeoutExceeded_$1" +- pattern: "\"org.apache.pinot.common.metrics\"<>(\\w+)" + name: "pinot_controller_numberTimesScheduleTasksCalled_$1" +- pattern: "\"org.apache.pinot.common.metrics\"<>(\\w+)" + name: "pinot_controller_periodicTaskNumTablesProcessed_$1_$2" +- pattern: "\"org.apache.pinot.common.metrics\"<>(\\w+)" + name: "pinot_controller_pinotControllerLeader_$1" +- pattern: "\"org.apache.pinot.common.metrics\"<>(\\w+)" + name: "pinot_controller_partitionLeader_$1_$2" +- pattern: "\"org.apache.pinot.common.metrics\"<>(\\w+)" + name: "pinot_controller_realtimeTableCount_$1" +- pattern: "\"org.apache.pinot.common.metrics\"<>(\\w+)" + name: "pinot_controller_validateion_$2_$3" + labels: + table: "$1" +# Pinot Broker +- pattern: "\"org.apache.pinot.common.metrics\"<>(\\w+)" + name: "pinot_broker_authorization_$2" + labels: + table: "$1" +- pattern: "\"org.apache.pinot.common.metrics\"<>(\\w+)" + name: "pinot_broker_documentsScanned_$2" + labels: + table: "$1" +- pattern: "\"org.apache.pinot.common.metrics\"<>(\\w+)" + name: "pinot_broker_entriesScannedInFilter_$2" + labels: + table: "$1" +- pattern: "\"org.apache.pinot.common.metrics\"<>(\\w+)" + name: "pinot_broker_entriesScannedPostFilter_$2" + labels: + table: "$1" +- pattern: "\"org.apache.pinot.common.metrics\"<>(\\w+)" + name: "pinot_broker_freshnessLagMs_$2" + labels: + table: "$1" +- pattern: "\"org.apache.pinot.common.metrics\"<>(\\w+)" + name: "pinot_broker_queries_$2" + labels: + table: "$1" +- pattern: "\"org.apache.pinot.common.metrics\"<>(\\w+)" + name: "pinot_broker_queryExecution_$2" + labels: + table: "$1" +- pattern: "\"org.apache.pinot.common.metrics\"<>(\\w+)" + name: "pinot_broker_queryRouting_$2" + labels: + table: "$1" +- pattern: "\"org.apache.pinot.common.metrics\"<>(\\w+)" + name: "pinot_broker_reduce_$2" + labels: + table: "$1" +- pattern: "\"org.apache.pinot.common.metrics\"<>(\\w+)" + name: "pinot_broker_requestCompilation_$2" + labels: + table: "$1" +- pattern: "\"org.apache.pinot.common.metrics\"<>(\\w+)" + name: "pinot_broker_scatterGather_$2" + labels: + table: "$1" +- pattern: "\"org.apache.pinot.common.metrics\"<>(\\w+)" + name: "pinot_broker_totalServerResponseSize_$2" + labels: + table: "$1" +- pattern: "\"org.apache.pinot.common.metrics\"<>(\\w+)" + name: "pinot_broker_groupBySize_$3" + labels: + table: "$1" + tableType: "$2" +- pattern: "\"org.apache.pinot.common.metrics\"<>(\\w+)" + name: "pinot_broker_noServingHostForSegment_$3" + labels: + table: "$1" + tableType: "$2" +- pattern: "\"org.apache.pinot.common.metrics\"<>(\\w+)" + name: "pinot_broker_healthcheck_$1_$2" +- pattern: "\"org.apache.pinot.common.metrics\"<>(\\w+)" + name: "pinot_broker_helix_$1_$2" +- pattern: "\"org.apache.pinot.common.metrics\"<>(\\w+)" + name: "pinot_broker_helix_zookeeper_$1_$2" +- pattern: "\"org.apache.pinot.common.metrics\"<>(\\w+)" + name: "pinot_broker_nettyConnection_$1_$2" +- pattern: "\"org.apache.pinot.common.metrics\"<>(\\w+)" + name: "pinot_broker_clusterChangeCheck_$1" +- pattern: "\"org.apache.pinot.common.metrics\"<>(\\w+)" + name: "pinot_broker_proactiveClusterChangeCheck_$1" +- pattern: "\"org.apache.pinot.common.metrics\"<>(\\w+)" + name: "pinot_broker_exceptions_$1_$2" +- pattern: "\"org.apache.pinot.common.metrics\"<>(\\w+)" + name: "pinot_broker_routingTableUpdateTime_$1" +# Pinot Server +- pattern: "\"org.apache.pinot.common.metrics\"<>(\\w+)" + name: "pinot_server_documentCount_$3" + labels: + table: "$1" + tableType: "$2" +- pattern: "\"org.apache.pinot.common.metrics\"<>(\\w+)" + name: "pinot_server_segmentCount_$3" + labels: + table: "$1" + tableType: "$2" +- pattern: "\"org.apache.pinot.common.metrics\"<>(\\w+)" + name: "pinot_server_$3_$4" + labels: + table: "$1" + tableType: "$2" +- pattern: "\"org.apache.pinot.common.metrics\"<>(\\w+)" + name: "pinot_server_realtimeRowsConsumed_$5" + labels: + table: "$1" + tableType: "$2" + topic: "$3" + partition: "$4" +- pattern: "\"org.apache.pinot.common.metrics\"<>(\\w+)" + name: "pinot_server_helix_connected_$1" +- pattern: "\"org.apache.pinot.common.metrics\"<>(\\w+)" + name: "pinot_server_helix_zookeeperReconnects_$1" +- pattern: "\"org.apache.pinot.common.metrics\"<>(\\w+)" + name: "pinot_server_highestKafkaOffsetConsumed_$5" + labels: + table: "$1" + tableType: "$2" + topic: "$3" + partition: "$4" +- pattern: "\"org.apache.pinot.common.metrics\"<>(\\w+)" + name: "pinot_server_highestStreamOffsetConsumed_$5" + labels: + table: "$1" + tableType: "$2" + topic: "$3" + partition: "$4" +- pattern: "\"org.apache.pinot.common.metrics\"<>(\\w+)" + name: "pinot_server_lastRealtimeSegment$1Seconds_$6" + labels: + table: "$2" + tableType: "$3" + topic: "$4" + partition: "$5" +- pattern: "\"org.apache.pinot.common.metrics\"<>(\\w+)" + name: "pinot_server_llcControllerResponse_$1_$2" +- pattern: "\"org.apache.pinot.common.metrics\"<>(\\w+)" + name: "pinot_server_llcPartitionConsuming_$5" + labels: + table: "$1" + tableType: "$2" + topic: "$3" + partition: "$4" +- pattern: "\"org.apache.pinot.common.metrics\"<>(\\w+)" + name: "pinot_server_llcSimultaneousSegmentBuilds_$1" +- pattern: "\"org.apache.pinot.common.metrics\"<>(\\w+)" + name: "pinot_server_memory_$1_$2" +- pattern: "\"org.apache.pinot.common.metrics\"<>(\\w+)" + name: "pinot_server_queries_$1" +- pattern: "\"org.apache.pinot.common.metrics\"<>(\\w+)" + name: "pinot_server_realtime_consumptionExceptions_$1" +- pattern: "\"org.apache.pinot.common.metrics\"<>(\\w+)" + name: "pinot_server_realtime_offheapMemoryUsed_$2" + labels: + table: "$1" +- pattern: "\"org.apache.pinot.common.metrics\"<>(\\w+)" + name: "pinot_server_realtime_offsetCommits_$1" +- pattern: "\"org.apache.pinot.common.metrics\"<>(\\w+)" + name: "pinot_server_realtime_rowsConsumed_$1" +- pattern: "\"org.apache.pinot.common.metrics\"<>(\\w+)" + name: "pinot_server_realtime_exceptions_$1_$2" +- pattern: "\"org.apache.pinot.transport.netty.NettyTCPServer_(\\w+)_\"<>(\\w+)" + name: "pinot_server_netty_tcp_$2_$3" + labels: + id: "$1"