Add observability stack with Grafana, Prometheus, Loki, and cAdvisor
- Introduced a new Grafana dashboard for monitoring Docker containers using cAdvisor. - Created provisioning files for Grafana dashboards and data sources. - Added Dockerfiles and configuration files for Loki and Prometheus. - Implemented a Docker Compose stack for the observability services. - Configured Traefik as a reverse proxy for the services with appropriate routing. - Added scripts for SSH tunneling to access the telemetry dashboard. - Included secrets management for Grafana admin credentials.
This commit is contained in:
13
observability/prometheus/Dockerfile
Normal file
13
observability/prometheus/Dockerfile
Normal file
@@ -0,0 +1,13 @@
|
||||
|
||||
# https://github.com/prometheus/prometheus/releases
|
||||
FROM prom/prometheus:latest
|
||||
|
||||
# Copy Prometheus configuration
|
||||
COPY prometheus.yaml /etc/prometheus/prometheus.yaml
|
||||
|
||||
# Switch to default user and expose port
|
||||
EXPOSE 9090
|
||||
|
||||
# Start Prometheus with the provided configuration file
|
||||
ENTRYPOINT ["prometheus"]
|
||||
CMD ["--config.file=/etc/prometheus/prometheus.yaml", "--storage.tsdb.path=/prometheus"]
|
||||
Reference in New Issue
Block a user