Skip to content

Commit

Permalink
Fix for segment/count Metric Not Emitting with Statsd-emitter (#15347)
Browse files Browse the repository at this point in the history
* fix segment/count metric in Statsd-emitter

* update doc

* Update docs/development/extensions-contrib/prometheus.md

Co-authored-by: Suneet Saldanha <[email protected]>

* Update docs/development/extensions-contrib/statsd.md

Co-authored-by: Suneet Saldanha <[email protected]>

---------

Co-authored-by: Suneet Saldanha <[email protected]>
  • Loading branch information
YongGang and suneet-s authored Nov 10, 2023
1 parent e7d0429 commit 3a3d37e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions docs/development/extensions-contrib/prometheus.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,8 @@ For metrics which are emitted from multiple services with different dimensions,
the service name. For example:

```json
"coordinator-segment/count" : { "dimensions" : ["dataSource"], "type" : "gauge" },
"historical-segment/count" : { "dimensions" : ["dataSource", "tier", "priority"], "type" : "gauge" }
"druid/coordinator-segment/count" : { "dimensions" : ["dataSource"], "type" : "gauge" },
"druid/historical-segment/count" : { "dimensions" : ["dataSource", "tier", "priority"], "type" : "gauge" }
```

For most use cases, the default mapping is sufficient.
6 changes: 3 additions & 3 deletions docs/development/extensions-contrib/statsd.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ e.g.
For metrics which are emitted from multiple services with different dimensions, the metric name is prefixed with
the service name.
e.g.
`"coordinator-segment/count" : { "dimensions" : ["dataSource"], "type" : "gauge" },
"historical-segment/count" : { "dimensions" : ["dataSource", "tier", "priority"], "type" : "gauge" }`
`"druid/coordinator-segment/count" : { "dimensions" : ["dataSource"], "type" : "gauge" },
"druid/historical-segment/count" : { "dimensions" : ["dataSource", "tier", "priority"], "type" : "gauge" }`

For most use-cases, the default mapping is sufficient.
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,8 @@
"sys/storage/used" : { "dimensions" : ["fsDirName"], "type" : "gauge"},
"sys/cpu" : { "dimensions" : ["cpuName", "cpuTime"], "type" : "gauge"},

"coordinator-segment/count" : { "dimensions" : ["dataSource"], "type" : "gauge" },
"historical-segment/count" : { "dimensions" : ["dataSource", "tier", "priority"], "type" : "gauge" },
"druid/coordinator-segment/count" : { "dimensions" : ["dataSource"], "type" : "gauge" },
"druid/historical-segment/count" : { "dimensions" : ["dataSource", "tier", "priority"], "type" : "gauge" },

"jetty/numOpenConnections": { "dimensions" : [], "type" : "gauge" },
"jetty/threadPool/total": { "dimensions" : [], "type" : "gauge" },
Expand Down

0 comments on commit 3a3d37e

Please sign in to comment.