Skip to content

Commit

Permalink
Merge pull request #92 from canonical/IAM-1033-cos-integration
Browse files Browse the repository at this point in the history
Add COS integration
  • Loading branch information
natalian98 committed Sep 18, 2024
2 parents 2fc3475 + 955171f commit 0b41c8c
Show file tree
Hide file tree
Showing 17 changed files with 9,484 additions and 1 deletion.
22 changes: 22 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,28 @@ Refer
to [this](https://charmhub.io/topics/canonical-identity-platform/tutorials/e2e-tutorial)
tutorial to learn how to deploy and configure the Identity Platform.

### Observability

The Oathkeeper Operator integrates
with [Canonical Observability Stack (COS)](https://charmhub.io/topics/canonical-observability-stack) bundle.
It comes with a Grafana dashboard and Loki and Prometheus alert rules for basic
common scenarios. To integrate with the COS bundle, after
you [deploy it](https://charmhub.io/topics/canonical-observability-stack/tutorials/install-microk8s#heading--deploy-the-cos-lite-bundle),
you can run:

```shell
juju integrate oathkeeper:grafana-dashboard grafana:grafana-dashboard
juju integrate oathkeeper:metrics-endpoint prometheus:metrics-endpoint
juju integrate loki:logging oathkeeper:logging
```

To integrate with `tracing`, additionally run:

```shell
juju deploy tempo-k8s
juju integrate oathkeeper:tracing tempo-k8s:tracing
```

## Actions

Oathkeeper charmed operator offers the following juju actions:
Expand Down
16 changes: 16 additions & 0 deletions charmcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,14 @@ provides:
interface: oathkeeper_info
description: |
Provides oathkeeper deployment info to a related application
metrics-endpoint:
interface: prometheus_scrape
description: |
Provides application metrics to COS Prometheus instance
grafana-dashboard:
description: |
Forwards the built-in grafana dashboard(s) for monitoring oathkeeper
interface: grafana_dashboard

requires:
kratos-info:
Expand All @@ -50,6 +58,14 @@ requires:
limit: 1
description: |
Send a CSR to- and obtain a signed certificate from an external CA.
logging:
interface: loki_push_api
limit: 1
tracing:
interface: tracing
limit: 1
description: |
Provides traces to COS Tempo instance
peers:
oathkeeper:
Expand Down
Loading

0 comments on commit 0b41c8c

Please sign in to comment.