Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(monitoring): add more dashboards + memcached #3268

Merged
merged 1 commit into from
Jul 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 45 additions & 3 deletions tools/local/monitoring/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,18 @@
version: '3.8'

volumes:
prometheus_data: {}
grafana_data: {}
prometheus_data:
grafana_data:
memcached_data:

services:
change_vol_ownership:
image: alpine
user: root
volumes:
- memcached_data:/memcached
command: chown -R 11211:11211 /memcached

prometheus:
image: prom/prometheus:v2.45.5
restart: always
Expand All @@ -21,7 +29,25 @@ services:
extra_hosts:
- 'host.docker.internal:host-gateway'
depends_on:
- node-exporter
node-exporter:
condition: service_started
change_vol_ownership:
condition: service_completed_successfully

memcached:
image: memcached
restart: unless-stopped
ports:
- "11211:11211"
command:
- '-t 8'
- '-m 10000'
- '--pidfile=/memcached/memcached.pid'
pid: host
volumes:
- memcached_data:/memcached
profiles: [memcached]


node-exporter:
image: prom/node-exporter
Expand Down Expand Up @@ -59,6 +85,22 @@ services:
depends_on:
- prometheus

memcached-exporter:
image: prom/memcached-exporter
container_name: memcached-exporter
restart: unless-stopped
ports:
- "9150:9150"
pid: host
command:
- --memcached.address=memcached:11211
- --memcached.pid-file=/memcached/memcached.pid
volumes:
- memcached_data:/memcached
profiles: [memcached]
depends_on:
- memcached

renderer:
image: grafana/grafana-image-renderer:latest
ports:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: 1

providers:
- name: 'Prometheus'
- name: dashboards
orgId: 1
folder: ''
type: file
Expand Down
Loading
Loading