It is usually a good idea to create a dedicated model for the COS Lite bundle. So let’s do just that and call the new model cos
:
juju add-model cos
juju switch cos
Next, deploy the bundle with:
juju deploy cos-lite --trust
Now you can sit back and watch the deployment take place:
watch --color juju status --color --relations
The status of your deployment should eventually be very similar to the following:
> juju status --relations
Model Controller Cloud/Region Version SLA Timestamp
cos charm-dev microk8s/localhost 2.9.33 unsupported 16:00:00-00:00
App Version Status Scale Charm Channel Rev Address Exposed Message
alertmanager active 1 alertmanager-k8s stable 28 10.152.183.92 no
grafana active 1 grafana-k8s stable 39 10.152.183.130 no
loki active 1 loki-k8s stable 41 10.152.183.216 no
prometheus 2.33.5 active 1 prometheus-k8s stable 56 10.152.183.240 no
traefik active 1 traefik-k8s stable 84 192.168.1.11 no
Unit Workload Agent Address Ports Message
alertmanager/0* active idle 10.1.55.21
grafana/0* active idle 10.1.55.17
loki/0* active idle 10.1.55.26
prometheus/0* active idle 10.1.55.27
traefik/0* active idle 10.1.55.16
Relation provider Requirer Interface Type Message
alertmanager:alerting loki:alertmanager alertmanager_dispatch regular
alertmanager:alerting prometheus:alertmanager alertmanager_dispatch regular
alertmanager:grafana-dashboard grafana:grafana-dashboard grafana_dashboard regular
alertmanager:grafana-source grafana:grafana-source grafana_datasource regular
alertmanager:replicas alertmanager:replicas alertmanager_replica peer
alertmanager:self-metrics-endpoint prometheus:metrics-endpoint prometheus_scrape regular
grafana:grafana grafana:grafana grafana_peers peer
loki:grafana-dashboard grafana:grafana-dashboard grafana_dashboard regular
loki:grafana-source grafana:grafana-source grafana_datasource regular
loki:metrics-endpoint prometheus:metrics-endpoint prometheus_scrape regular
prometheus:grafana-dashboard grafana:grafana-dashboard grafana_dashboard regular
prometheus:grafana-source grafana:grafana-source grafana_datasource regular
prometheus:prometheus-peers prometheus:prometheus-peers prometheus_peers peer
traefik:ingress-per-unit loki:ingress ingress_per_unit regular
traefik:ingress-per-unit prometheus:ingress ingress_per_unit regular
traefik:metrics-endpoint prometheus:metrics-endpoint prometheus_scrape regular
Now COS Lite is good to go: you can relate software with it to begin the monitoring!
Alternatively, you may want to deploy the bundle with one or more of our readily available overlays, which is what we’ll cover next.