---
title: Charmhub | Deploy Wazuh Server using Charmhub - The Open Operator Collection
description: Deploy the latest version of Wazuh Server as a Kubernetes Operator on
  any cloud.
url: https://charmhub.io/wazuh-server/docs/how-to-integrate-with-cos
---

# Wazuh Server

[Canonical IS DevOps](https://charmhub.io/publisher/canonical-is-devops "View all packages from Canonical IS DevOps")

* [Canonical IS DevOps](https://charmhub.io/publisher/canonical-is-devops "View all packages from Canonical IS DevOps")

Platform:

4.11/stable 19ff4c9d

```
juju deploy wazuh-server --channel 4.11/stable
```

[Learn to deploy on juju >](https://juju.is/docs/juju/manage-applications)

---

#### Contacts

##### Maintainers

+ [Launchpad Team](https://launchpad.net/~canonical-is-devops)

* [Submit a bug](https://github.com/canonical/wazuh-server-operator/issues)

---

Share your thoughts on this charm with the community on discourse.

[Join the discussion](https://discourse.charmhub.io/)

# How to integrate with Canonical Observability Stack

## [Deploy COS lite](https://charmhub.io/wazuh-server/docs/how-to-integrate-with-cos#p-38257-deploy-cos-lite)

Create a Juju model and deploy the Canonical Observability Stack bundle [cos-lite](https://charmhub.io/topics/canonical-observability-stack) to this model:

```
juju add-model cos-lite
juju deploy cos-lite --trust
```

## [Expose the application relation endpoints](https://charmhub.io/wazuh-server/docs/how-to-integrate-with-cos#p-38257-expose-the-application-relation-endpoints)

Once all the COS Lite applications are deployed and settled down (you can monitor this by using `juju status --watch 2s`), expose the relation points for Prometheus, Loki and Grafana:

```
juju offer prometheus:metrics-endpoint
juju offer loki:logging
juju offer grafana:grafana-dashboard
```

Validate that the offers have been successfully created by running:

```
juju find-offers cos-lite
```

You should see something similar to the output below:

```
Store                 URL                        Access  Interfaces
tutorial-controller  admin/cos-lite.loki        admin   loki_push_api:logging
tutorial-controller  admin/cos-lite.prometheus  admin   prometheus_scrape:metrics-endpoint
tutorial-controller  admin/cos-lite.grafana     admin   grafana_dashboard:grafana-dashboard
```

## [Integrate the Wazuh server](https://charmhub.io/wazuh-server/docs/how-to-integrate-with-cos#p-38257-integrate-the-wazuh-server)

Switch back to the charm model and integrate your charm with the exposed endpoints:

```
juju switch <Wazuh server charm model>
juju integrate wazuh-server admin/cos-lite.grafana
juju integrate wazuh-server admin/cos-lite.loki
juju integrate wazuh-server admin/cos-lite.prometheus
```

Ensure that Wazuh server and the COS Lite applications have settled down (you can monitor this by using `juju status --watch 2s`).

Obtain the Grafana dashboard credentials by running the `get-admin-password` action:

```
juju switch cos-lite
juju run grafana/0 get-admin-password
```

This action returns the URL and the admin password to access the Wazuh server dashboard. Now, on your host machine, open a web browser, enter the Grafana URL, and use the username “admin” and your Grafana password to log in. Under **Home > Dashboards**, you should be able to see the Wazuh server dashboard listed.

This integrates your application with Prometheus, Loki, and Grafana.

---
