Skip to content

Commit

Permalink
[receiver/elasticsearch]: fix the list of operations for which metric…
Browse files Browse the repository at this point in the history
…s are fetched on index level (open-telemetry#16513)

fix: fix the list of operations for which metrics are fetched on index level
  • Loading branch information
aboguszewski-sumo committed Dec 5, 2022
1 parent 2da516b commit 4107c6a
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
16 changes: 16 additions & 0 deletions .chloggen/elastic-fix-fetched-index-ops.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# One of 'breaking', 'deprecation', 'new_component', 'enhancement', 'bug_fix'
change_type: bug_fix

# The name of the component, or a single word describing the area of concern, (e.g. filelogreceiver)
component: elasticsearchreceiver

# A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`).
note: fix the set of operations for which the data is fetched on index-level

# One or more tracking issues related to the change
issues: [14635]

# (Optional) One or more lines of additional information to render under the primary note.
# These lines will be padded with 2 spaces and then inserted directly into the document.
# Use pipe (|) for multiline entries.
subtext:
2 changes: 1 addition & 1 deletion receiver/elasticsearchreceiver/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ const nodeStatsMetrics = "breaker,indices,process,jvm,thread_pool,transport,http
// nodeStatsIndexMetrics is a comma separated list of index metrics that will be gathered from NodeStats.
const nodeStatsIndexMetrics = "store,docs,indexing,get,search,merge,refresh,flush,warmer,query_cache,fielddata,translog"

const indexStatsMetrics = "search"
const indexStatsMetrics = "_all"

func (c defaultElasticsearchClient) NodeStats(ctx context.Context, nodes []string) (*model.NodeStats, error) {
var nodeSpec string
Expand Down

0 comments on commit 4107c6a

Please sign in to comment.