# Opensearch 2.18.0 is not compatible with prometheus exporter 2.17.1

**URL:** <https://forum.opensearch.org/t/opensearch-2-18-0-is-not-compatible-with-prometheus-exporter-2-17-1/23285>\
**Category:** OpenSearch\
**Tags:** troubleshoot\
**Created:** [January 31, 2025, 12:29pm UTC](https://forum.opensearch.org/t/opensearch-2-18-0-is-not-compatible-with-prometheus-exporter-2-17-1/23285 "2025-01-31T12:29:01Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Maha](https://avatars.discourse-cdn.com/v4/letter/m/e495f1/32.png) [@Maha](https://forum.opensearch.org/u/Maha)\
**Post date:** [January 31, 2025, 12:29pm UTC](https://forum.opensearch.org/t/opensearch-2-18-0-is-not-compatible-with-prometheus-exporter-2-17-1/23285/1 "2025-01-31T12:29:01Z")

</div>

**Versions** (relevant - OpenSearch/Dashboard/Server OS/Browser):

Opensearch 2.18.0

**Describe the issue** :  
I’m trying to integrate prometheus exporter 2.17.1 but my pods are not coming up with  
below errors,  
Failed to install opensearch- prometheus-exporter plugin

Could you please confirm whether 2.18.0 opesearch version is compatible with  
Prometheus exporter plugin 2.17.1.0?

---

<div class="post-metadata">

**Author:** ![nateynate](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.opensearch.org/nateynate/32/4913_2.png) [@nateynate](https://forum.opensearch.org/u/nateynate)\
**Post date:** [January 31, 2025, 6:41pm UTC](https://forum.opensearch.org/t/opensearch-2-18-0-is-not-compatible-with-prometheus-exporter-2-17-1/23285/2 "2025-01-31T18:41:09Z")

</div>

> [@Maha](#):
>
> Could you please confirm whether 2.18.0 opesearch version is compatible with  
> Prometheus exporter plugin 2.17.1.0?

Hi @Maha! I’m pretty sure that the version of the exporter and the version of opensearch have to match. There’s a compatibility matrix on the Aiven github here: [GitHub - Aiven-Open/prometheus-exporter-plugin-for-opensearch: Prometheus exporter plugin for OpenSearch & OpenSearch Mixin](https://github.com/Aiven-Open/prometheus-exporter-plugin-for-opensearch)

 ![image](https://us1.discourse-cdn.com/flex019/uploads/mauve_hedgehog/original/2X/a/a6c44b1ba61552aa72e52f78d37e4030a9e17404.png)

Hope that helps!

---

<div class="post-metadata">

**Author:** ![berezins](https://avatars.discourse-cdn.com/v4/letter/b/58956e/32.png) [@berezins](https://forum.opensearch.org/u/berezins)\
**Post date:** [March 13, 2025, 12:05pm UTC](https://forum.opensearch.org/t/opensearch-2-18-0-is-not-compatible-with-prometheus-exporter-2-17-1/23285/3 "2025-03-13T12:05:44Z")

</div>

Exception in thread “main” java.lang.IllegalArgumentException: Plugin [prometheus-exporter] was built for OpenSearch version 2.17.1 but version 2.18.0 is running  
Please, tell it someone else )

---

<div class="post-metadata">

**Author:** ![Hung](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.opensearch.org/hung/32/8903_2.png) [@Hung](https://forum.opensearch.org/u/Hung)\
**Post date:** [May 21, 2025, 7:01am UTC](https://forum.opensearch.org/t/opensearch-2-18-0-is-not-compatible-with-prometheus-exporter-2-17-1/23285/4 "2025-05-21T07:01:34Z")

</div>

FYI - I tried on OpenSearch 2.19.1 with the latest version of the plugin

```bash
[opensearch@opensearch-demo-master-0 ~]$ ./bin/opensearch-plugin install https://github.com/aiven/prometheus-exporter-plugin-for-opensearch/releases/download/2.17.1.0/prometheus-exporter-2.17.1.0.zip
-> Installing https://github.com/aiven/prometheus-exporter-plugin-for-opensearch/releases/download/2.17.1.0/prometheus-exporter-2.17.1.0.zip
-> Downloading https://github.com/aiven/prometheus-exporter-plugin-for-opensearch/releases/download/2.17.1.0/prometheus-exporter-2.17.1.0.zip
[=================================================] 100%??
-> Failed installing https://github.com/aiven/prometheus-exporter-plugin-for-opensearch/releases/download/2.17.1.0/prometheus-exporter-2.17.1.0.zip
-> Rolling back https://github.com/aiven/prometheus-exporter-plugin-for-opensearch/releases/download/2.17.1.0/prometheus-exporter-2.17.1.0.zip
-> Rolled back https://github.com/aiven/prometheus-exporter-plugin-for-opensearch/releases/download/2.17.1.0/prometheus-exporter-2.17.1.0.zip
Exception in thread "main" java.lang.IllegalArgumentException: Plugin [prometheus-exporter] was built for OpenSearch version 2.17.1 but version 2.19.1 is running
        at org.opensearch.plugins.PluginsService.verifyCompatibility(PluginsService.java:397)
        at org.opensearch.plugins.InstallPluginCommand.loadPluginInfo(InstallPluginCommand.java:797)
        at org.opensearch.plugins.InstallPluginCommand.installPlugin(InstallPluginCommand.java:852)
        at org.opensearch.plugins.InstallPluginCommand.execute(InstallPluginCommand.java:274)
        at org.opensearch.plugins.InstallPluginCommand.execute(InstallPluginCommand.java:248)
        at org.opensearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:104)
        at org.opensearch.cli.Command.mainWithoutErrorHandling(Command.java:138)
        at org.opensearch.cli.MultiCommand.execute(MultiCommand.java:104)
        at org.opensearch.cli.Command.mainWithoutErrorHandling(Command.java:138)
        at org.opensearch.cli.Command.main(Command.java:101)
        at org.opensearch.plugins.PluginCli.main(PluginCli.java:60)

```

---

<div class="post-metadata">

**Author:** ![Hung](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.opensearch.org/hung/32/8903_2.png) [@Hung](https://forum.opensearch.org/u/Hung)\
**Post date:** [May 21, 2025, 7:50pm UTC](https://forum.opensearch.org/t/opensearch-2-18-0-is-not-compatible-with-prometheus-exporter-2-17-1/23285/5 "2025-05-21T19:50:51Z")

</div>

As advised on OpenSearch Slack I used this fork for the version 2.19.1 [GitHub - Virtimo/prometheus-exporter-plugin-for-opensearch: Prometheus exporter plugin for OpenSearch & OpenSearch Mixin](https://github.com/Virtimo/prometheus-exporter-plugin-for-opensearch)
