Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[receiver/elasticsearch]: _cluster/stats/_all is not a valid path #17867

Closed
davidji99 opened this issue Jan 19, 2023 · 3 comments
Closed

[receiver/elasticsearch]: _cluster/stats/_all is not a valid path #17867

davidji99 opened this issue Jan 19, 2023 · 3 comments
Labels
bug Something isn't working needs triage New item requiring triage receiver/elasticsearch

Comments

@davidji99
Copy link
Contributor

Component(s)

receiver/elasticsearch

What happened?

Description

#16346 introduced this ES endpoint for querying metrics: _cluster/stats/all. According to ES 7 and 8 documentation, this is not a valid endpoint. The correct endpoint would be /_cluster/stats/nodes/_all.

Steps to Reproduce

  1. Run ES locally via docker
  2. Query http://localhost:9200/_cluster/stats/_all.

Expected Result

I should see a successful JSON response.

Actual Result

I get this response:

{
"error": {
"root_cause": [
{
"type": "index_not_found_exception",
"reason": "no such index [_cluster]",
"resource.type": "index_expression",
"resource.id": "_cluster",
"index_uuid": "_na_",
"index": "_cluster"
}
],
"type": "index_not_found_exception",
"reason": "no such index [_cluster]",
"resource.type": "index_expression",
"resource.id": "_cluster",
"index_uuid": "_na_",
"index": "_cluster"
},
"status": 404
}

Collector version

v0.69.0

Environment information

Environment

OS: (e.g., "Ubuntu 20.04")
Compiler(if manually compiled): (e.g., "go 14.2")

OpenTelemetry Collector configuration

No response

Log output

No response

Additional context

No response

@davidji99 davidji99 added bug Something isn't working needs triage New item requiring triage labels Jan 19, 2023
@github-actions
Copy link
Contributor

Pinging code owners:

See Adding Labels via Comments if you do not have permissions to add labels yourself.

@junhuangli
Copy link
Contributor

@djaglowski the fixes was checked in. Should we close this bug? Or we need to wait till the release.

@djaglowski
Copy link
Member

Thanks again @junhuangli.

Closing this as resolved by #19414

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs triage New item requiring triage receiver/elasticsearch
Projects
None yet
Development

No branches or pull requests

3 participants