Skip to content

Commit

Permalink
Fix role detection
Browse files Browse the repository at this point in the history
This PR adds some more test cases for a multi-node 5.5.0 cluster and fixes the role detection.

Fixes prometheus-community#109
  • Loading branch information
Dominik Schulz authored and dominikschulz committed Nov 27, 2017
1 parent bdf7fff commit 0abc5b2
Show file tree
Hide file tree
Showing 2 changed files with 68 additions and 7 deletions.
4 changes: 2 additions & 2 deletions collector/nodes.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ var (
defaultNodeLabelValues = func(cluster string, node NodeStatsNodeResponse) []string {
// default settings (2.x) and map, which roles to consider
roles := map[string]bool{
"master": true,
"data": true,
"master": false,
"data": false,
"ingest": false,
}
isClientNode := "true"
Expand Down
71 changes: 66 additions & 5 deletions collector/nodes_test.go

Large diffs are not rendered by default.

0 comments on commit 0abc5b2

Please sign in to comment.