Slackbot
12/28/2022, 4:21 AMBrandon Tan
12/28/2022, 4:23 AMquery/segments/count-
This metric is not enabled by default. See the QueryMetrics Interface for reference regarding enabling this metric.Sachidananda
12/28/2022, 4:24 AMquery/segments/count is different
i am talking about segment/countBrandon Tan
12/28/2022, 4:37 AMorg.apache.druid.server.metrics.HistoricalMetricsMonitor
org.apache.druid.server.metrics.SegmentStatsMonitorSachidananda
12/28/2022, 4:42 AMorg.apache.druid.server.metrics.HistoricalMetricsMonitor
this i have added in historical nodes and in druid code i can see
HistoricalMetricsMonitor.java:104 - its emitting segment/count but it is not shown in grafana and others like segment/used, segment/usedPercent are in same file, these are getting emitted and i can see in grafanaBrandon Tan
12/28/2022, 4:43 AMSachidananda
12/28/2022, 4:45 AMsegment/countBrandon Tan
12/28/2022, 4:46 AMorg.apache.druid.server.metrics.SegmentStatsMonitorSachidananda
12/28/2022, 4:47 AMSachidananda
12/28/2022, 5:10 AMsegment/count but not sure why its not showing up in grafanaBrandon Tan
12/28/2022, 5:25 AMSuneet Saldanha
12/29/2022, 3:35 PMSachidananda
12/30/2022, 4:25 AM"coordinator_segment/count"
"historical_segment/count"
in default list
but i don't see these appearing in grafana
Can you tell me what to search for finding these 2 metrics?Suneet Saldanha
01/05/2023, 3:26 AMSuneet Saldanha
01/05/2023, 3:27 AMSuneet Saldanha
01/05/2023, 3:28 AMsegment/count instead of trying to specify different dimensions based on the service that is reporting the segment/countSuneet Saldanha
01/05/2023, 3:28 AM"segment/count" : { "dimensions" : ["dataSource"], "type" : "gauge", "help": "Number of served segments."},
and see if that worksSuneet Saldanha
01/05/2023, 3:33 AM- but instead the defaultDimensions use _
See the last 2 lines in https://github.com/apache/druid/blob/master/docs/development/extensions-contrib/prometheus.md#metric-mappingSachidananda
01/06/2023, 5:05 AM