dcu / mongodb_exporter

MongoDB exporter for prometheus.io
MIT License
353 stars 216 forks source link

add the required files to build a mongodb_exporter snap #81

Closed axinojolais closed 6 years ago

axinojolais commented 6 years ago

Hi !

I have created a mongodb_exporter snap (https://snapcraft.io/prometheus-mongodb-exporter/), which works well, and I think it should be included and built upstream now (you can even get it built automatically from github - see https://build.snapcraft.io/).

You can find more information about snaps at : https://snapcraft.io/

To test the current snap (steps for Ubuntu - see the above URL for other distros) :

sudo apt-get install snapd
sudo snap install prometheus-mongodb-exporter
sudo vim /var/snap/prometheus-mongodb-exporter/current/daemon_arguments # and edit ARGS with whatever parameters you want to pass to mongodb_exporter
sudo service snap.prometheus-mongodb-exporter.mongodb-exporter.service restart

If you have any questions about snaps, happy to answer them :)

Cheers !

avishefi commented 6 years ago

Looks like a duplicate of the TravisCI setup, there's a way to combine both: https://docs.snapcraft.io/build-snaps/ci-integration