To bring up monitoring stack using docker

1. Prometheus

docker run -d --name prometheus-container -v /home/sndee/prometheus.yml:/etc/prometheus/prometheus.yml -e TZ=UTC -p 30090:9090 ubuntu/prometheus:2.33-22.04_beta

Note:- For more info prometheus

2. Grafana

docker run -d --name=grafana -p 3000:3000 grafana/grafana

Note:- For more info prometheus

3. InfluxDb

docker run -d -p 8086:8086 --name influxdb2 influxdb:1.8.6-alpine

Connect to container and execute below Influx Commands

docker exec -it influxdb2 bash 
influx
CREATE DATABASE "jenkins" WITH DURATION 1825d REPLICATION 1 NAME "jenkins-retention"
SHOW DATABASES
USE <database_name>

image