Skip to content

Commit

Permalink
Update prometheus-metrics.md
Browse files Browse the repository at this point in the history
Following up on cert-manager/cert-manager#3446

Signed-off-by: Maxence Harm <max@aggedon.com>
  • Loading branch information
maxaggedon committed Apr 16, 2021
1 parent 49dbb8e commit 84b32f1
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion content/en/docs/usage/prometheus-metrics.md
Expand Up @@ -24,7 +24,23 @@ prometheus:

### Regular Manifests

If you're not using helm to deploy cert-manager and instead using the provided regular YAML manifests, this example `PodMonitor` should be all you need to start ingesting cert-manager metrics.
If you're not using helm to deploy cert-manager and instead using the provided regular YAML manifests, this example `PodMonitor` and deployment patch should be all you need to start ingesting cert-manager metrics.

1. [Apply the following patch](https://kubernetes.io/docs/tasks/manage-kubernetes-objects/update-api-object-kubectl-patch/#use-a-strategic-merge-patch-to-update-a-deployment) to your cert-manager deployment

```yaml
spec:
template:
spec:
containers:
- name: cert-manager
ports:
- containerPort: 9402
name: http
protocol: TCP
```

2. Create the following `PodMonitor`

```yaml
apiVersion: monitoring.coreos.com/v1
Expand Down

0 comments on commit 84b32f1

Please sign in to comment.