mirror of
https://github.com/dragonflydb/dragonfly.git
synced 2024-12-14 11:58:02 +00:00
chore(monitoring): add more dashboards + memcached (#3268)
This commit is contained in:
parent
62f54838f8
commit
8240c7f19e
6 changed files with 26019 additions and 4 deletions
|
@ -1,10 +1,18 @@
|
||||||
version: '3.8'
|
version: '3.8'
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
prometheus_data: {}
|
prometheus_data:
|
||||||
grafana_data: {}
|
grafana_data:
|
||||||
|
memcached_data:
|
||||||
|
|
||||||
services:
|
services:
|
||||||
|
change_vol_ownership:
|
||||||
|
image: alpine
|
||||||
|
user: root
|
||||||
|
volumes:
|
||||||
|
- memcached_data:/memcached
|
||||||
|
command: chown -R 11211:11211 /memcached
|
||||||
|
|
||||||
prometheus:
|
prometheus:
|
||||||
image: prom/prometheus:v2.45.5
|
image: prom/prometheus:v2.45.5
|
||||||
restart: always
|
restart: always
|
||||||
|
@ -21,7 +29,25 @@ services:
|
||||||
extra_hosts:
|
extra_hosts:
|
||||||
- 'host.docker.internal:host-gateway'
|
- 'host.docker.internal:host-gateway'
|
||||||
depends_on:
|
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:
|
node-exporter:
|
||||||
image: prom/node-exporter
|
image: prom/node-exporter
|
||||||
|
@ -59,6 +85,22 @@ services:
|
||||||
depends_on:
|
depends_on:
|
||||||
- prometheus
|
- 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:
|
renderer:
|
||||||
image: grafana/grafana-image-renderer:latest
|
image: grafana/grafana-image-renderer:latest
|
||||||
ports:
|
ports:
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
apiVersion: 1
|
apiVersion: 1
|
||||||
|
|
||||||
providers:
|
providers:
|
||||||
- name: 'Prometheus'
|
- name: dashboards
|
||||||
orgId: 1
|
orgId: 1
|
||||||
folder: ''
|
folder: ''
|
||||||
type: file
|
type: file
|
||||||
|
|
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
|
@ -47,3 +47,8 @@ scrape_configs:
|
||||||
- targets: ['node-exporter:9100']
|
- targets: ['node-exporter:9100']
|
||||||
labels:
|
labels:
|
||||||
instance: node
|
instance: node
|
||||||
|
|
||||||
|
- job_name: 'memcached-exporter'
|
||||||
|
scrape_interval: 1s
|
||||||
|
static_configs:
|
||||||
|
- targets: ['memcached-exporter:9150']
|
||||||
|
|
Loading…
Reference in a new issue