Operator based metrics
guide on how to enable crd-based scraping targets
Step 1 - Enable custom metrics and victoria-metrics-operator
Enable custom metrics scraping and
victoria-metrics-operator
Step 2 - Deploy Monitoring CRDs
By default the vm operator will identify the Prometheus CRDs (ServiceMonitor
, PodMonitor
, PrometheusRule
and Probe
) that are already deployed and will scrape them automatically.
In case you want to deploy a test monitor object, here is an example using PodMonitor
Create the following
my-test-podmonitor.yaml
Deploy it
The vmagent will reload its configuration and will start scraping the target, metrics should appear in groundcover's grafana shortly after.
Other then supporting the standard Prometheus CRDs, VictoriaMetrics operator has their own proprietary CRDs that can be used, more about them can be found here.
Last updated