- 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.
14 lines
393 B
Docker
14 lines
393 B
Docker
|
|
# 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"]
|