opensearch-project / OpenSearch

🔎 Open source distributed and RESTful search engine.
https://opensearch.org/docs/latest/opensearch/index/
Apache License 2.0
9.25k stars 1.7k forks source link

Add prometheus-exporter-plugin to Opensearch builtin plugins #8990

Open saeed-mcu opened 1 year ago

saeed-mcu commented 1 year ago

Currently, it is not possible to monitor Opensearch performance from the Opensearch dashboard, while Elasticsearch can be monitored through Stack Monitoring easily.

If the prometheus-exporter-plugin is added to the Built-in plugins , monitoring of opensearch will be easy, and it can be have dashboard something like stack monitoring or monitored through Prometheus externally.

lukas-vlcek commented 1 year ago

Hi,

OpenSearch Community projects page lists Prometheus exporter plugin which can be installed very easily (like any other OpenSearch plugin). On top of that the Prometheus exporter plugin repo has a branch mixin which contains Grafana dashboard and Prometheus Alerts (if you do not want to build the dashboard from sources you can download its release here: https://github.com/aiven/prometheus-exporter-plugin-for-opensearch/releases/tag/mixin-1.0.0-rc.1).

Is that what you are looking for?

Regards, Lukáš

peternied commented 8 months ago

This seems like a good feature to consider - I know there hasn't been much traction, but I'm going to tag in a number of feature areas that might want to take ownership here.

coredump17 commented 4 months ago

Any progress on this? Dashboards already supports Prometheus as a data source.

AdaptiveStep commented 3 months ago

Hi,

OpenSearch Community projects page lists Prometheus exporter plugin which can be installed very easily (like any other OpenSearch plugin). On top of that the Prometheus exporter plugin repo has a branch mixin which contains Grafana dashboard and Prometheus Alerts (if you do not want to build the dashboard from sources you can download its release here: https://github.com/aiven/prometheus-exporter-plugin-for-opensearch/releases/tag/mixin-1.0.0-rc.1).

Is that what you are looking for?

Regards, Lukáš

Why is this not a default plugin inside opensearch?!!! Its extremely useful!

lukas-vlcek commented 3 months ago

@AdaptiveStep There is a more general RFC to introduce metric framework directly into OpenSearch which should be able to support Prometheus servers as well.

dblock commented 3 months ago

Why is this not a default plugin inside opensearch?!!! Its extremely useful!

I think the maintainers of https://github.com/aiven/prometheus-exporter-plugin-for-opensearch should first voice whether they want their plugin to be included in the default distribution or not. Consider opening an issue there?

In general, every plugin we add proportionally increases the work to make a release because OpenSearch is tightly coupled, which isn't great.

saeed-mcu commented 3 months ago

@dblock prometheus-exporter-plugin-for-opensearch is very very essential and useful for performance analysis of opensearch and I think it MUST be added as default plugin inside opensearch as soon as possible

lukas-vlcek commented 3 months ago

I think it would make sense to bring the Prometheus exporter plugin a lot closer to the OpenSearch core and I would support this transition.

Let's discuss some cons and pros (feel free to add more, the following are just the ones I can think of right now).

Cons

Increased cost for the core maintainers and committers:

Pros

Other things to consider

Regards, Lukáš

lukas-vlcek commented 2 months ago

FYI, related: https://github.com/opensearch-project/OpenSearch/issues/13879