Velero Operator COS integration

Integrate with COS

This guide describes how to integrate Velero Operator with the Canonical Observability Stack (COS).

Requirements

  • A Juju controller bootstrapped on a MicroK8s cloud. Follow this guide for more details.

Deploy COS Lite

Follow Deploy COS Lite on MicroK8s for details on how to set up cos-lite on MicroK8s.

Ensure to set up cos-lite with this offers overlay so that the COS model is ready for cross-model relations. See —relevant section in the above guide here.

Deploy a Grafana agent

Deploy a Grafana agent in the same model as the Velero Operator charm. It is used to scrape Prometheus metrics and export them to Prometheus in the COS model. Then relate the charms:

juju deploy grafana-agent-k8s
juju relate grafana-agent-k8s:metrics-endpoint velero-operator:metrics-endpoint

See here for more details.

The required integration can be provided by the Juju Offers. Verify if the offers from the COS model are visible:

juju find-offers -m microk8s-controller:cos-model

Then add the necessary relations with the grafana-agent charm:

juju relate grafana-agent-k8s cos.prometheus-receive-remote-write
juju relate grafana-agent-k8s cos.grafana-dashboards
juju relate grafana-agent-k8s cos.loki-logging

Check metrics

The metrics are available via http://10.43.8.34:80/cos-prometheus-0, which is exposed by COS.