Skip to content

Commit f84d8b5

Browse files
authored
Merge pull request #1009 from sysadmind/indices-test
Add tests for Indices.shard
2 parents 6799cb5 + 06975c8 commit f84d8b5

File tree

6 files changed

+2499
-9
lines changed

6 files changed

+2499
-9
lines changed

collector/indices.go

+3
Original file line numberDiff line numberDiff line change
@@ -1103,6 +1103,9 @@ func (i *Indices) Describe(ch chan<- *prometheus.Desc) {
11031103
for _, metric := range i.aliasMetrics {
11041104
ch <- metric.Desc
11051105
}
1106+
for _, metric := range i.shardMetrics {
1107+
ch <- metric.Desc
1108+
}
11061109

11071110
}
11081111

collector/indices_test.go

+500-9
Large diffs are not rendered by default.

fixtures/indices/shards/1.7.6.json

Whitespace-only changes.

fixtures/indices/shards/2.4.5.json

Whitespace-only changes.

fixtures/indices/shards/5.4.2.json

Whitespace-only changes.

0 commit comments

Comments
 (0)