|
| 1 | +# Installing the exporter |
| 2 | +You will use the [Prometheus Memcached Metrics Exporter](https://github.com/prometheus/memcached_exporter). |
| 3 | + |
| 4 | +The `memcached-exporter-deploy.yaml` file provides a deployment with the exporter. |
| 5 | + |
| 6 | +To deploy it, download the file and run: |
| 7 | +``` |
| 8 | +kubectl apply -f memcached-exporter-deploy.yaml |
| 9 | +``` |
| 10 | +> Make sure to edit the argumment `memcached.address` with the proper address name of your memcached instance |
| 11 | +
|
| 12 | +# Sysdig Agent configuration |
| 13 | +> Requires Sysdig Agent >= v11.3 |
| 14 | +
|
| 15 | +In the Redis exporter Deployment use the Sysdig annotations to configure the port of the exporter as the scraping port. See the example given in the `memcached-exporter-deploy.yaml` file. |
| 16 | + |
| 17 | +Additionally, you can use the labels to add the namespace, workload type, and name of the database the exporter will take data from. |
| 18 | +This way, you can view the metrics associated directly with the database pods and the exporter in Sysdig Monitor. |
| 19 | + |
| 20 | +```yaml |
| 21 | +spec: |
| 22 | + template: |
| 23 | + metadata: |
| 24 | + annotations: |
| 25 | + promcat.sysdig.com/integration_type: memcached |
| 26 | + promcat.sysdig.com/port: "9150" |
| 27 | + # Add here the namespace, workload type (deployment, statefulset, replicaset, daemonset) |
| 28 | + # and workload name of the Memcached instance that the exporter will take data from |
| 29 | + promcat.sysdig.com/target_ns: default |
| 30 | + promcat.sysdig.com/target_workload_type: deployment |
| 31 | + promcat.sysdig.com/target_workload_name: memcached |
| 32 | +``` |
| 33 | +
|
| 34 | +After configuring the Sysdig annotations, download the sample configuration file and apply it by: |
| 35 | +```bash |
| 36 | +kubectl apply -f sysdig-agent-config.yaml |
| 37 | +``` |
0 commit comments