Skip to content

Prometheus memcached exporter + service monitor on k8s (PoC)

Notifications You must be signed in to change notification settings

sh-cho/prometheus-memcached-exporter-on-k8s

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 

Repository files navigation

prometheus-memcached-exporter-on-k8s

Warning

This repository is for demo purposes only and should be modified for production use.

test locally

  1. install kind cluster (https://kind.sigs.k8s.io/)
helm repo add bitnami https://charts.bitnami.com/bitnami
helm install aaa bitnami/memcached
helm install bbb bitnami/memcached
  1. install memcached using helm

** Please be patient while the chart is being deployed **

Memcached can be accessed via port 11211 on the following DNS name from within your cluster:

aaa-memcached.default.svc.cluster.local

Check this

LATEST=$(curl -s https://api.github.com/repos/prometheus-operator/prometheus-operator/releases/latest | jq -cr .tag_name)
curl -sL https://github.com/prometheus-operator/prometheus-operator/releases/download/${LATEST}/bundle.yaml | kubectl create -f -
  1. install prometheus CRDs and deploy operators into the default namespace (https://prometheus-operator.dev/docs/user-guides/getting-started/#installing-the-operator)

(Prometheus, ServiceMonitor CRDs are needed.)

  1. install chart (check helm-charts/README.md)

  2. (TODO) visualize TSDB with thanos OR check with prometheus service (debug only)

examples

memcached exporter metrics page

Memcached exporter metrics page (check with port-forward)

test2-min

Note

In order to prevent duplicated metric and make time-series with single tag,

  • remove all unrelated tags, other than your specific target tag
  • remove additional "prometheus", "prometheus_replica" tag with prometheus setting (check this commit)

Todos

About

Prometheus memcached exporter + service monitor on k8s (PoC)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Languages