[英]Integrate opensearch prometheus exporter to Kubernetes/helm
My Opensearch app runs in Kube.netes.我的 Opensearch 应用程序在 Kube.netes 中运行。
I found this OpenSearch exporter plugin: https://github.com/aparo/opensearch-prometheus-exporter我找到了这个 OpenSearch 导出器插件: https://github.com/aparo/opensearch-prometheus-exporter
to export metrics to prometheus.将指标导出到普罗米修斯。 Is there any option to integrate this solution to kube.netes?
是否有将此解决方案集成到 kube.netes 的选项?
Yes, after you install plugins, You need Prometheus running on Kube.netes.是的,安装插件后,您需要在 Kube.netes 上运行 Prometheus。
I recommend you install Prometheus-operator, which creates Prometheus service for you.我建议您安装 Prometheus-operator,它会为您创建 Prometheus 服务。
https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/user-guides/getting-started.md https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/user-guides/getting-started.md
It includes the "ServiceMonitor" kind, which defines what "pod" under a "service" you would like to monitor.它包括“ServiceMonitor”种类,它定义了您想要监控的“服务”下的“pod”。
After creating the "ServerMonitor" point to your Opensearch pod correctly, Prometheus will scape your metrics.在正确创建指向您的 Opensearch pod 的“ServerMonitor”之后,Prometheus 将对您的指标进行 scape。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.