-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Jason C. Nucciarone <nuccitheboss@ubuntu.com>
- Loading branch information
1 parent
80d97e2
commit a2b77a2
Showing
2 changed files
with
71 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
--- | ||
relatedlinks: "[Get started with COS](https://charmhub.io/topics/canonical-observability-stack/tutorials/install-microk8s)" | ||
--- | ||
|
||
(connect-workload-manager-to-cos)= | ||
# Connect workload manager to COS | ||
|
||
This how-to guide shows you how to connect your cluster's | ||
workload manager to the Canonical Observability Stack to observe | ||
the workload manager's logs, metrics, and a alerts. | ||
|
||
## Prerequisites | ||
|
||
To successfully connect your cluster's workload manager to COS, you must have: | ||
|
||
- [A deployed COS cloud.](https://charmhub.io/topics/canonical-observability-stack/tutorials/install-microk8s) | ||
- {ref}`A deployed workload manager. <deploy-workload-manager>` | ||
- The [Juju CLI client](https://juju.is/docs/juju/install-and-manage-the-client) installed on your machine. | ||
|
||
## Deploy an agent | ||
|
||
First, in the model hosting your Charmed HPC cluster's workload manager, | ||
deploy a Grafana agent: | ||
|
||
```shell | ||
juju deploy grafana-agent | ||
``` | ||
|
||
## Connect the workload manager to the agent | ||
|
||
After deploying the Grafana agent, connect the agent to the | ||
workload manager controller: | ||
|
||
```shell | ||
juju integrate slurmctld:cos-agent grafana-agent:cos-agent | ||
``` | ||
|
||
## Make COS available to the workload manager | ||
|
||
With the agent connected to the workload manager controller, make COS available | ||
to the model hosting the cluster's workload manager: | ||
|
||
```shell | ||
juju consume mk8s:admin/cos.prometheus-receive-remote-write | ||
juju consume mk8s:admin/cos.loki-logging | ||
juju consume mk8s:admin/cos.grafana-dashboards | ||
``` | ||
|
||
## Connect the workload manager to COS | ||
|
||
Now connect the Grafana agent connected to the workload manager controller to | ||
COS: | ||
|
||
```shell | ||
juju relate grafana-agent prometheus-receive-remote-write | ||
juju relate grafana-agent loki-logging | ||
juju relate grafana-agent grafana-dashboards | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# Observability | ||
|
||
See the how-to guides in this section for how to connect your Charmed HPC | ||
cluster to the [Canonical Observabilivity Stack](https://charmhub.io/topics/canonical-observability-stack) | ||
to observe the cluster's logs, metrics, and alerts. | ||
|
||
```{toctree} | ||
:titlesonly: | ||
:maxdepth: 1 | ||
connect-workload-manager-to-cos | ||
``` | ||
|