voxpupuli / puppet-prometheus

Puppet module for prometheus
https://forge.puppet.com/puppet/prometheus
Apache License 2.0
60 stars 239 forks source link

mongodb_exporter - extracts archive to wrong directory #366

Open rmalenko opened 5 years ago

rmalenko commented 5 years ago

Extracted to /opt instead /opt/mongodb_exporter-0.9.0.linux-amd64/mongodb_exporter this means the symlink /usr/local/bin/mongodb_exporter is broken

 class { 'prometheus::mongodb_exporter':
    version            => '0.9.0',
    cnf_uri            => 'mongodb://localhost:27018',
    use_kingpin  => true,
  }
alexjfisher commented 4 years ago

Looks like from 0.7.0 onwards, the binary tarball releases no longer have a top level directory. There are a few other exporters like this too. See https://github.com/voxpupuli/puppet-prometheus/blob/0fb4e51896bf135a927ba9537a0a88795c22f796/manifests/postgres_exporter.pp#L163

Jellevandewege commented 3 years ago

Hi im running into the same issue with the mongodb exporter version 0.20.3. It is possible to merge the same fix for the postgres_exporter.pp into the mongodb_exporter.pp? Or has this issue already been resolved in another way?

TheMeier commented 4 months ago

Is this fixed?