Skip to content

Commit

Permalink
Monitoring: enabling memcached monitoring
Browse files Browse the repository at this point in the history
  • Loading branch information
the2hill authored and cloudnull committed Mar 6, 2024
1 parent 2ab8111 commit f2a1177
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/kustomize-memcached.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ jobs:
overlays:
- base
- aio
- base-monitoring
name: Kustomize
runs-on: ubuntu-latest
steps:
Expand Down
9 changes: 9 additions & 0 deletions docs/deploy-required-infrastructure.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,15 @@ kubectl kustomize --enable-helm /opt/genestack/kustomize/memcached/base | kubect

> NOTE Memcached has a base configuration which is HA and production ready. If you're deploying on a small cluster the `aio` configuration may better suit the needs of the environment.
### Alternative - Deploy the Memcached Cluster With Monitoring Enabled

``` shell
kubectl kustomize --enable-helm /opt/genestack/kustomize/memcached/base-monitoring | kubectl apply --namespace openstack -f -
```

> NOTE Memcached has a base-monitoring configuration which is HA and production ready that also includes a metrics exporter for prometheus metrics collection. If you'd like to have monitoring enabled for your memcached cluster ensure the prometheus operator is installed first ([Deploy Prometheus](prometheus.md)).

### Verify readiness with the following command.

``` shell
Expand Down
2 changes: 1 addition & 1 deletion docs/prometheus-mysql-exporter.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ cd /opt/genestack/kustomize/prometheus-mysql-exporter
kubectl kustomize --enable-helm . | kubectl create -n openstack -f -
```

If the installation is succesful, you should see the exporter pod in openstack namespace.
If the installation is successful, you should see the exporter pod in openstack namespace.
2 changes: 1 addition & 1 deletion docs/prometheus-rabbitmq-exporter.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ cd /opt/genestack/kustomize/prometheus-rabbitmq-exporter
kubectl kustomize --enable-helm . | kubectl create -n openstack -f -
```

If the installation is succesful, you should see the exporter pod in openstack namespace.
If the installation is successful, you should see the exporter pod in openstack namespace.
20 changes: 20 additions & 0 deletions kustomize/memcached/base-monitoring/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
helmCharts:
- name: memcached
repo: https://marketplace.azurecr.io/helm/v1/repo
releaseName: memcached
valuesInline:
architecture: high-availability
autoscaling:
enabled: true
resources:
requests:
memory: 1Gi
persistence:
enabled: true
size: 10Gi
metrics:
enabled: true
serviceMonitor:
enabled: true
includeCRDs: true
namespace: openstack

0 comments on commit f2a1177

Please sign in to comment.