项目作者: instrumentisto

项目描述 :
Grafana dashboard for monitoring Memcached Pods in Kubernetes cluster via Prometheus
高级语言:
项目地址: git://github.com/instrumentisto/grafana-dashboard-memcached-kubernetes-prometheus.git


Memcached Pods monitoring Grafana Dashboard (via Prometheus)

release license
prometheus grafana memcached_exporter

screenshot

Metrics

  • Memory usage
  • Hit & Miss ratio
  • Evicts & Reclaims
  • Items in cache
  • Network stats
  • Commands usage

Requirements

  1. Kubernetes cluster with deployed Prometheus and Grafana.
  2. Memcached Exporter deployed alongside with Memcached Pod.

Your Prometheus configuration should contain the following scrape_config:

  1. scrape_configs:
  2. - job_name: kubernetes-pods
  3. kubernetes_sd_configs:
  4. - role: pod
  5. relabel_configs:
  6. - source_labels: [__meta_kubernetes_pod_annotation_prometheus_io_scrape]
  7. action: keep
  8. regex: true
  9. - source_labels: [__meta_kubernetes_pod_annotation_prometheus_io_path]
  10. action: replace
  11. target_label: __metrics_path__
  12. regex: (.+)
  13. - source_labels: [__address__, __meta_kubernetes_pod_annotation_prometheus_io_port]
  14. action: replace
  15. regex: ([^:]+)(?::\d+)?;(\d+)
  16. replacement: $1:$2
  17. target_label: __address__
  18. - action: labelmap
  19. regex: __meta_kubernetes_pod_label_(.+)
  20. - source_labels: [__meta_kubernetes_namespace]
  21. action: replace
  22. target_label: kubernetes_namespace
  23. - source_labels: [__meta_kubernetes_pod_name]
  24. action: replace
  25. target_label: kubernetes_pod_name

Your Memcached Pod should contain prometheus.io/* annotations:

  1. kind: StatefulSet
  2. apiVersion: apps/v1beta1
  3. metadata:
  4. name: my-memcached
  5. spec:
  6. serviceName: my-memcached
  7. replicas: 1
  8. template:
  9. metadata:
  10. annotations:
  11. prometheus.io/scrape: 'true'
  12. prometheus.io/port: '9150'
  13. spec:
  14. containers:
  15. - name: memcached
  16. image: memcached:alpine
  17. ports:
  18. - name: memcache
  19. containerPort: 11211
  20. - name: metrics
  21. image: quay.io/prometheus/memcached-exporter:v0.3.0
  22. ports:
  23. - name: metrics
  24. containerPort: 9150

Issues

If you have any problems with or questions about this dashboard, please contact us through a GitHub issue.