cert-manager: scrape webhook + cainjector metrics (VMServiceScrape)
ci/woodpecker/pr/pre-commit Pipeline was successful
ci/woodpecker/pr/kubeconform Pipeline was successful

Follow-up to #239. cert-manager already exposes metrics services
(webhook :9402 metrics, cainjector :9402 http-metrics) but nothing
scraped them. Add a VMServiceScrape so the observability VMAgent collects
cert-manager metrics (cert issuance, controller sync, etc.).
This commit is contained in:
2026-07-07 00:02:28 +10:00
parent 9a56612ae6
commit ecea0c668a
2 changed files with 18 additions and 0 deletions
@@ -7,3 +7,4 @@ resources:
- serviceaccount.yaml
- clusterrole.yaml
- clusterrolebinding.yaml
- vmservicescrape.yaml
@@ -0,0 +1,17 @@
---
# Scrape cert-manager webhook + cainjector metrics endpoints.
# Picked up by the observability VMAgent (selectAllByDefault).
apiVersion: operator.victoriametrics.com/v1beta1
kind: VMServiceScrape
metadata:
name: cert-manager
namespace: cert-manager
spec:
selector:
matchLabels:
app.kubernetes.io/instance: cert-manager
endpoints:
- port: metrics
path: /metrics
- port: http-metrics
path: /metrics