![]() '-config.file=/etc/alertmanager/config.yml' - '-storage.path=/alertmanager' grafana: alertmanager/:/etc/alertmanager/ restart: always command: alertmanager:alertmanager restart: always alertmanager: '-config.file=/etc/prometheus/prometheus.yml' - '=/prometheus' - '=/usr/share/prometheus/console_libraries' - '=/usr/share/prometheus/consoles' ports: prometheus/:/etc/prometheus/ - prometheus_data:/prometheus command: icmp, dns and grpc, which can be used to monitor services with other protocols. In this case I configured a basic HTTP probe with the http_2xx module and the tcp_connect module.įor e.g. The blackbox-exporter is configured via a simple blackbox.yml. The whole setup can be found in my GitHub repository.īut let’s take a look into the most important configurations. The directories should look like this, to be able to provide all services with the needed configurations. So let’s get started with setting up all needed components. Or can create a TCP connection to the service.Īnother interesting dashboard or metric is the actual time since the last downtime of the service. There are more advanced services like the already mentioned pingdom where you can also checkįor specific parts on a HTTP page, but let’s go for a basic setup which will simply check if we get any http 2xx response In this case it means the service should be accessible via HTTP or TCP and therefore the user should be able to In this example we will monitor http services (in this case my blog) and a simple TCP service (e.g. Then scrape this metrics with Prometheus and store it for further usage.īuild a simple dashboard with Grafana for visualization and finally setup alerting with alertmanager.Īs this uses a few projects on the Prometheus ecosystem, this is a perfect example on how to integreate these The general idea is to check if a service is up with the blackbox-exporter. So let’s build our own uptime monitoring with Prometheus, Grafana, There are existing services like pingdom or uptimerobot toĬheck if your network services are up and running.īut as always I like to be independent of service providers and host as much by myself as possible.
0 Comments
Leave a Reply. |