-
Notifications
You must be signed in to change notification settings - Fork 37
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
[Tutorial] Write complete tutorial on how to setup OpenSearch with the plugin in K8s and Prometheus craping it #240
Comments
Is there any progress in this task. I would like to use prometheus to scrape opensearch metrics and use Grafana dashboards to monitor |
This tutorial is very much needed, I've been though several attempts to get Prometheus to scrape an endpoint on Kubernetes with no success |
Just for the record the following is a Slack thread we had with @smbambling on this topic: |
I've attempted to configure a scrape endpoint for Proemtheus to OpenSearch Notes:
Method 1: Static Prometheus configs In this method I've modified the kube-prometheus-stack Helm value override in order to apply additional configs. In the below values I've tested multiple different combintations of configs
From another pod within the
|
I've attempted to configure a scrape endpoint for Proemtheus to OpenSearch Notes:
Method 2: Using Prometheus Service Monitor In this method I've created a servicemonitor for kube-prometheus-stack to read and generate scrape targets. Below is the output for my created servicemonitor
Again multiple different combintations of configs were tested within the servicemonitor which proivded the same end result. Where the scrape endpoints are created but there is an SSL handshake issue for Prometheus Just as verification I could also curl from the same pod in method 1 to the cluster IP endpoints generated via the servicemonitor
In the end both methods produce the following errors in the Prometheus UI
|
Thanks @smbambling for putting the effort into write it all down. |
In our testing setup we had limiting ciphers in |
i want to ask something, does this meas the opensearch provide the metrics data to prome? or prome provide the metrics data to opensearch? |
@rarifz This installs an exporter that exposes metrics about OpenSearch that Prometheus can be configured to scrape |
hello @smbambling, have you found a workaround? I tried with curl , it worked. But prometheus can not scrape metrics from this path |
Hello @smbambling, do we have any workaround for people using HTTPS with basic auth enabled? We see that it's working with curl, but Prometheus cannot scrape metrics from the /_prometheus/metrics path & it shows down. |
There is a lack of complete tutorial about how to setup OpenSearch cluster with the plugin in K8s and have Prometheus craping the metric endpoint.
See: https://forum.opensearch.org/t/prometheus-not-able-to-scrape-metrics-on-pod/16908/
Idea: This setup flow should be part of plugin new release process or even the CI (?)
The text was updated successfully, but these errors were encountered: