-
Notifications
You must be signed in to change notification settings - Fork 235
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
[BUG][opensearch] cant connect to metrics endpoint #590
Comments
Same problem here. Thank you for your report. |
TBH this looks more like a configuration issue. I have the same problem. Looking into it, probably opensearch is either missing a configuration option or even the prometheus-exporter-plugin |
Looking at what port is by default configured ( |
Okay, when trying to start it inside the container I just see that the address is already bound but not reachable. I'm gonna continue troubleshoot this.
|
According to the initial PR, the SM is meant to be used in conjunction with https://github.com/Aiven-Open/prometheus-exporter-plugin-for-opensearch I'll try to integrate it and make sure it's installed by default when enabling serviceMonitor Reference: #537 (comment) |
with the plugin i managed to access the metrics on port 9200, but the ServiceMonitor manifest still have a port pointing to metrics port name:
i believe that is why prometheus keeps warning me that the opensearch metrics are unreachable even so i can access it through port forward. |
You can configure the port with |
@KristijanL i found out that serviceMonitor needs to use basic auth to properly connect to prometheus endpoint:
you can disable the chart default serviceMonitor and put a custom one in the extraObjects. |
That is certainly an option. However, at present, the charts ServiceMonitor appears to be non-functional and effectively redundant. If it is intended for use, it will need modifications to make it functional, or detailed documentation should be provided on how to use it effectively, as its current purpose is unclear. |
totally agree |
Describe the bug
Im trying to see the metrics for opensearch but it seems that it isn't working.
To Reproduce
Expected behavior
See all metrics
Chart Name
Specify the Chart which is affected?
Screenshots
Host/Environment (please complete the following information):
Additional context
Also, prometheus is alerting that the metrics are unreachable
The text was updated successfully, but these errors were encountered: