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?
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 )
FYI - I tried on OpenSearch 2.19.1 with the latest version of the plugin
[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)