Skip to content

A docker-compose stack for Thanos monitoring

License

Notifications You must be signed in to change notification settings

lai3d/quickstart-thanos

 
 

Repository files navigation

Quickstart for Thanos

CI badge

Get up and running with Thanos, Prometheus, Grafana, Alertmanager, cAdvisor and node_exporter with a docker-compose.yaml file in less than 5 minutes.

Running the example

git clone https://github.com/dbluxo/quickstart-thanos
cd quickstart-thanos
docker-compose up -d

The following services will be installed (and some are accessible via browser):

Component Description URL
prometheus-1 Prometheus Server 1 (labels: cluster=chicago, replica=r1) https://localhost:9081/
prometheus-2 Prometheus Server 2 (labels: cluster=chicago, replica=r2) https://localhost:9082/
prometheus-3 Prometheus Server 3 (labels: cluster=seattle, replica=r1) https://localhost:9083/
prometheus-4 Prometheus Server 4 (labels: cluster=seattle, replica=r2) https://localhost:9084/
thanos-sidecar-1 Thanos Sidecar for Prometheus Server 1 not accessible via browser
thanos-sidecar-2 Thanos Sidecar for Prometheus Server 2 not accessible via browser
thanos-sidecar-3 Thanos Sidecar for Prometheus Server 3 not accessible via browser
thanos-sidecar-4 Thanos Sidecar for Prometheus Server 4 not accessible via browser
thanos-query-frontend Thanos Query Frontend https://localhost:10901/
thanos-querier Thanos Querier https://localhost:10902/
thanos-ruler Thanos Ruler https://localhost:10903/
thanos-bucket-web Thanos Bucket Web https://localhost:10904/
thanos-store-gateway Thanos Store Gateway not accessible via browser
thanos-compactor Thanos Compactor not accessible via browser
minio Minio - Amazon S3 Compatible Object Storage https://localhost:9000/
alertmanager Alertmanager https://localhost:9093/
grafana Grafana https://localhost:3000/
cadvisor cAdvisor https://localhost:8080/
node-exporter node_exporter https://localhost:9100/

Credentials

Grafana:

username - admin
password - foobar (Password is stored in the `/grafana/config monitoring` env file)

Minio:

Access Key - smth
Secret Key - Need8Chars (Keys are stored in the `docker-compose.yaml` file)

Explore metrics

Notes

This project is intended to be a quick-start to get up and running with Thanos. Security has not been implemented in this project. It is inspired by:

About

A docker-compose stack for Thanos monitoring

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published