Skip to content

Commit

Permalink
chore(monitoring): add more dashboards + memcached (#3268)
Browse files Browse the repository at this point in the history
  • Loading branch information
romange committed Jul 5, 2024
1 parent 62f5483 commit 8240c7f
Show file tree
Hide file tree
Showing 6 changed files with 26,019 additions and 4 deletions.
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

0 comments on commit 8240c7f

Please sign in to comment.