Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The Prometheus opensource monitoring solution (official page) can answer these and many other questions and addresses and solves these problems thanks also to the excellent travel companion Grafana. Grafana is a web application that creates graphs divided into panels, with data coming from a variety of different sources, such as OpenTSDB, InfluxDB, ElasticSearc and Prometheus itself.

Installation with Docker-compose

We present a procedure that establishes the service using Docker-compose. Obviously, Docker-compose must be present on the system (if not present install docker-compose). Create a folder (e.g. "mkdir prometheus") in which we insert the docker-compose.yml file

...

In general, if we wanted to launch Prometheus with a custom version, we can further modify the prometheus.yml file. For example, it is possible to modify the global configuration of the Prometheus server, specify the location of additional .yaml files containing rules that we want to upload to the server or define which resources should be monitored. An extensive overview of the possible configurations is available here.

Installation with Helm

Probably the fastest and most efficient way to get Prometheus is via Helm chart. Add the repo (reference) and install the chart (here we work in namespace monitoring)

...

Section


Column
width40

Grafana UI


Column
width55

Prometheus UI


Upgrade or uninstall chart

To upgrade all the Kubernetes components associated with the chart use or to remove them and delete the release

...