Skip to content

Commit

Permalink
Change type for indices_query_cache_cache_count metric to counter
Browse files Browse the repository at this point in the history
  • Loading branch information
kaorimatz authored and zwopir committed May 16, 2019
1 parent 8148c56 commit 5b73766
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ by replacing `.` and `-` with `_` and upper-casing the parameter name.
| elasticsearch_indices_merges_total | counter | 1 | Total merges
| elasticsearch_indices_merges_total_size_bytes_total | counter | 1 | Total merge size in bytes
| elasticsearch_indices_merges_total_time_seconds_total | counter | 1 | Total time spent merging in seconds
| elasticsearch_indices_query_cache_cache_count | gauge | 1 | Count of query cache
| elasticsearch_indices_query_cache_cache_count | counter | 1 | Count of query cache
| elasticsearch_indices_query_cache_cache_size | gauge | 1 | Size of query cache
| elasticsearch_indices_query_cache_count | counter | 2 | Count of query cache hit/miss
| elasticsearch_indices_query_cache_evictions | counter | 1 | Evictions from query cache
Expand Down
2 changes: 1 addition & 1 deletion collector/nodes.go
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,7 @@ func NewNodes(logger log.Logger, client *http.Client, url *url.URL, all bool, no
Labels: defaultNodeLabelValues,
},
{
Type: prometheus.GaugeValue,
Type: prometheus.CounterValue,
Desc: prometheus.NewDesc(
prometheus.BuildFQName(namespace, "indices", "query_cache_cache_count"),
"Query cache cache count",
Expand Down

0 comments on commit 5b73766

Please sign in to comment.