Skip to content

Commit

Permalink
Initial infrastructure commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Depechie committed Oct 9, 2022
1 parent 26678f6 commit 2b81ec2
Show file tree
Hide file tree
Showing 12 changed files with 1,465 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Container fix user permission.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
https://github.com/prometheus/prometheus/issues/5976

docker run -it --rm -v /var/lib/docker/Volumes/pluralsightotel/prometheus:/prometheus ubuntu:22.04

chown -R 65534:65534 prometheus
7 changes: 7 additions & 0 deletions blackbox/blackbox.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
modules:
http_2xx:
prober: http
timeout: 5s
http:
method: GET
preferred_ip_protocol: "ip4"
119 changes: 119 additions & 0 deletions docker-compose-mac.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,119 @@
services:
blackbox:
# https://github.com/prometheus/blackbox_exporter/releases
image: prom/blackbox-exporter:v0.22.0
container_name: blackbox
restart: unless-stopped
ports:
- 9115:9115
volumes:
- /etc/localtime:/etc/localtime:ro
- /Volumes/pluralsightotel/blackbox/blackbox.yml:/etc/blackbox/blackbox.yml
command: --config.file=/etc/blackbox/blackbox.yml
networks:
otel:

prometheus:
# https://github.com/prometheus/prometheus/releases
image: prom/prometheus:v2.39.0
container_name: prometheus
hostname: prometheus
restart: unless-stopped
ports:
- 9090:9090
volumes:
- /etc/localtime:/etc/localtime:ro
- /Volumes/pluralsightotel/prometheus/prometheus.yml:/etc/prometheus/prometheus.yml
- /Volumes/pluralsightotel/prometheus:/prometheus
depends_on:
- blackbox
networks:
otel:

tempo:
# https://github.com/grafana/tempo/releases
image: grafana/tempo:1.5.0
container_name: tempo
command: [ "-config.file=/etc/tempo.yaml" ]
volumes:
- /etc/localtime:/etc/localtime:ro
- /Volumes/pluralsightotel/tempo/tempo.yml:/etc/tempo.yaml
- /Volumes/pluralsightotel/tempo:/tmp/tempo
restart: unless-stopped
ports:
- 3200:3200 # tempo
- 4007:4317 # otlp grpc
depends_on:
- otel-collector
networks:
otel:

loki:
# https://github.com/grafana/loki/releases
image: grafana/loki:2.5.0
container_name: loki
command: -config.file=/etc/loki/local-config.yaml
volumes:
- /etc/localtime:/etc/localtime:ro
- /Volumes/pluralsightotel/loki/loki.yml:/etc/loki/local-config.yaml
- /Volumes/pluralsightotel/loki:/data/loki
restart: unless-stopped
ports:
- 3100:3100
networks:
otel:

grafana:
# https://github.com/grafana/grafana/releases
image: grafana/grafana:9.1.7
container_name: grafana
#command:
environment:
- GF_AUTH_ANONYMOUS_ENABLED=true
- GF_AUTH_ANONYMOUS_ORG_ROLE=Admin
- GF_AUTH_DISABLE_LOGIN_FORM=true
volumes:
- /etc/localtime:/etc/localtime:ro
- /Volumes/pluralsightotel/grafana/grafana.ini:/etc/grafana/grafana.ini
- /Volumes/pluralsightotel/grafana/data:/var/lib/grafana
- /Volumes/pluralsightotel/grafana/provisioning:/etc/grafana/provisioning
restart: unless-stopped
ports:
- 3001:3000
depends_on:
- prometheus
- tempo
- loki
networks:
otel:

otel-collector:
# https://github.com/open-telemetry/opentelemetry-collector-contrib/releases
container_name: otel
hostname: otel
image: otel/opentelemetry-collector-contrib:0.61.0
command: ["--config=/etc/otel-collector-config.yaml"]
volumes:
- /Volumes/pluralsightotel/otel/otel.yml:/etc/otel-collector-config.yaml
restart: unless-stopped
ports:
- "8888:8888" # Prometheus metrics exposed by the collector
- "8889:8889" # Prometheus exporter metrics
- "4317:4317" # OTLP gRPC receiver
- "9200:55679" # zpages
networks:
otel:

rabbitmq:
# https://github.com/docker-library/rabbitmq
image: rabbitmq:3.11.0-management-alpine
container_name: rabbitmq
restart: unless-stopped
ports:
- 5672:5672
- 15672:15672
networks:
otel:

networks:
otel:
119 changes: 119 additions & 0 deletions docker-compose-win.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,119 @@
services:
blackbox:
# https://github.com/prometheus/blackbox_exporter/releases
image: prom/blackbox-exporter:v0.22.0
container_name: blackbox
restart: unless-stopped
ports:
- 9115:9115
volumes:
- /etc/localtime:/etc/localtime:ro
- /var/lib/docker/Volumes/pluralsightotel/blackbox/blackbox.yml:/etc/blackbox/blackbox.yml
command: --config.file=/etc/blackbox/blackbox.yml
networks:
- otel

prometheus:
# https://github.com/prometheus/prometheus/releases
image: prom/prometheus:v2.39.0
container_name: prometheus
hostname: prometheus
restart: unless-stopped
ports:
- 9090:9090
volumes:
- /etc/localtime:/etc/localtime:ro
- /var/lib/docker/Volumes/pluralsightotel/prometheus/prometheus.yml:/etc/prometheus/prometheus.yml
- /var/lib/docker/Volumes/pluralsightotel/prometheus:/prometheus
depends_on:
- blackbox
networks:
- otel

tempo:
# https://github.com/grafana/tempo/releases
image: grafana/tempo:1.5.0
container_name: tempo
command: [ "-config.file=/etc/tempo.yaml" ]
volumes:
- /etc/localtime:/etc/localtime:ro
- /var/lib/docker/Volumes/pluralsightotel/tempo/tempo.yml:/etc/tempo.yaml
- /var/lib/docker/Volumes/pluralsightotel/tempo:/tmp/tempo
restart: unless-stopped
ports:
- 3200:3200 # tempo
- 4007:4317 # otlp grpc
depends_on:
- otel-collector
networks:
otel:

loki:
# https://github.com/grafana/loki/releases
image: grafana/loki:2.5.0
container_name: loki
command: -config.file=/etc/loki/local-config.yaml
volumes:
- /etc/localtime:/etc/localtime:ro
- /var/lib/docker/Volumes/pluralsightotel/loki/loki.yml:/etc/loki/local-config.yaml
- /var/lib/docker/Volumes/pluralsightotel/loki:/data/loki
restart: unless-stopped
ports:
- 3100:3100
networks:
otel:

grafana:
# https://github.com/grafana/grafana/releases
image: grafana/grafana:9.1.7
container_name: grafana
environment:
- GF_AUTH_ANONYMOUS_ENABLED=true
- GF_AUTH_ANONYMOUS_ORG_ROLE=Admin
- GF_AUTH_DISABLE_LOGIN_FORM=true
volumes:
- /etc/localtime:/etc/localtime:ro
- /var/lib/docker/Volumes/pluralsightotel/grafana/grafana.ini:/etc/grafana/grafana.ini
- /var/lib/docker/Volumes/pluralsightotel/grafana/data:/var/lib/grafana
- /var/lib/docker/Volumes/pluralsightotel/grafana/provisioning:/etc/grafana/provisioning
restart: unless-stopped
user: root
ports:
- 3001:3000
depends_on:
- prometheus
- tempo
- loki
networks:
otel:

otel-collector:
# https://github.com/open-telemetry/opentelemetry-collector-contrib/releases
container_name: otel
hostname: otel
image: otel/opentelemetry-collector-contrib:0.61.0
command: ["--config=/etc/otel-collector-config.yaml"]
volumes:
- /var/lib/docker/Volumes/pluralsightotel/otel/otel.yml:/etc/otel-collector-config.yaml
restart: unless-stopped
ports:
- "8888:8888" # Prometheus metrics exposed by the collector
- "8889:8889" # Prometheus exporter metrics
- "4317:4317" # OTLP gRPC receiver
- "9200:55679" # zpages
networks:
otel:

rabbitmq:
# https://github.com/docker-library/rabbitmq
image: rabbitmq:3.11.0-management-alpine
container_name: rabbitmq
restart: unless-stopped
ports:
- 5672:5672
- 15672:15672
networks:
otel:

networks:
otel:
3 changes: 3 additions & 0 deletions grafana/grafana.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@

[feature_toggles]
enable = tempoSearch tempoBackendSearch
Loading

0 comments on commit 2b81ec2

Please sign in to comment.