Important: This is a work in progress.
Even more important: If you actually plan to use this do not forget to edit configuration files to your needs (service files, YAML configuration files, etc.). Configuration files provided here are just generic files.
More about it here: gist.
This script downloads the files in the current directory. You could change this.
- Rewrite scripts so one could start it with
sudo ./full_installation
instead of doingsudo
before script - Write uninstallation scripts (both full uninstall and uninstallation of individual components)
- Add optional installation for
mysqld_exporter
andpostgresql_exporter
Any suggestions and contributions are welcome.
I have written few Prometheus instructions that you may or may not find useful:
- How to Write Rules for Prometheus
- How to Install Alertmanager on Ubuntu 16.04
- How to Install MySQL Exporter for Prometheus 2.0 on Ubuntu 16.04
If you find any mistake, or suggestion for enhancement that would be great.
Whether you are using this to install individual components or the full app, it is best to start scripts from the cloned repository. If you copy scripts anywhere else, the behaviour of the scripts is not guaranteed. Note that these scripts will add Prometheus and other utilities to systemd as services, and enable the by default.
Full installation will install the following:
- Prometheus
- Alertmanager
- Node Exporter
- Blackbox Exporter
- Grafana
Scripts have many sudo
s, so before you start the full installation, do:
sudo pwd
just to make sure, sudo
in scripts won't interrupt you. After that you can run script as:
./full_installation.sh
Or run script as a root
user.
Same rules apply as for the full installation before you try to execute other scripts:
sudo pwd
just to make sure, sudo
in scripts won't interrupt you. And to install individual components, use:
- Prometheus:
./prometheus.sh
- Alertmanager:
./alertmanager.sh
- Node Exporter:
./node.sh
- Blackbox Exporter:
./blackbox.sh
- Grafana:
./grafana.sh