Error | Install prometheus plugin for elasticsearch

Trying to install prometheus-exporter plugin for elasticsearch - version 6.5.4.0 but I got the below error
Any support to resolve this?

[root@ elasticsearch]# ./bin/elasticsearch-plugin install -b file:///tmp/elasticsearch-prometheus-exporter-6.5.4.0.zip

-> Downloading file:///tmp/elasticsearch-prometheus-exporter-6.5.4.0.zip
[=================================================] 100%Â Â
Exception in thread "main" java.nio.file.NoSuchFileException: /usr/share/elasticsearch/plugins/.installing-5109354402234643044/plugin-descriptor.properties
at sun.nio.fs.UnixException.translateToIOException(UnixException.java:86)
at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)
at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)
at sun.nio.fs.UnixFileSystemProvider.newByteChannel(UnixFileSystemProvider.java:214)
at java.nio.file.Files.newByteChannel(Files.java:361)
at java.nio.file.Files.newByteChannel(Files.java:407)
at java.nio.file.spi.FileSystemProvider.newInputStream(FileSystemProvider.java:384)
at java.nio.file.Files.newInputStream(Files.java:152)
at org.elasticsearch.plugins.PluginInfo.readFromProperties(PluginInfo.java:162)
at org.elasticsearch.plugins.InstallPluginCommand.loadPluginInfo(InstallPluginCommand.java:713)
at org.elasticsearch.plugins.InstallPluginCommand.installPlugin(InstallPluginCommand.java:792)
at org.elasticsearch.plugins.InstallPluginCommand.install(InstallPluginCommand.java:775)
at org.elasticsearch.plugins.InstallPluginCommand.execute(InstallPluginCommand.java:231)
at org.elasticsearch.plugins.InstallPluginCommand.execute(InstallPluginCommand.java:216)
at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:86)
at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:124)
at org.elasticsearch.cli.MultiCommand.execute(MultiCommand.java:77)
at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:124)
at org.elasticsearch.cli.Command.main(Command.java:90)
at org.elasticsearch.plugins.PluginCli.main(PluginCli.java:47)

Does the plugin archive have a plugin-descriptor.properties file? Just check via zip -l...

No It doesn't have this file.
So what should I do?

Where is this prometheus-exporter plugin coming from? Is it an Elasticsearch plugin after all? Can you share a link?

HYG

I also tried to place "plugin-descriptor.properties" inside the plugin folder but still the same error


So is there a certain path that this file should be placed in ?

Hi,

as far as I know https://github.com/justwatchcom/elasticsearch_exporter is a proxy exporter. This means it runs as a standalone process. It is not installed as Elasticsearch plugin.

If you are looking for Prometheus exporter that is implemented as Elasticsearch plugin you can check https://github.com/vvanholl/elasticsearch-prometheus-exporter

Regards,
Lukáš

1 Like

Sorry Lukas as it is my bad
Actually I'm already using the exporter in the below link for version 6.5.4

Hi Muhammad,

if you are running into issues with this plugin, please open a ticket here https://github.com/vvanholl/elasticsearch-prometheus-exporter/issues

Regards,
Lukáš

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.