Skip to content

Commit

Permalink
Merge pull request #65 from canonical/IAM-1034-o11y-improvements
Browse files Browse the repository at this point in the history
Iam 1034 o11y improvements
  • Loading branch information
pik4ez-canonical authored Sep 20, 2024
2 parents 877a055 + 9c8d075 commit 08d0b0c
Show file tree
Hide file tree
Showing 6 changed files with 606 additions and 298 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -158,3 +158,5 @@ cython_debug/
# and can be added to the global gitignore or merged into this file. For a more nuclear
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
.idea/

*.charm
15 changes: 12 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,21 +94,30 @@ Take the `self-signed-certificates-operator` as an example:
juju integrate glauth-k8s self-signed-certificates
```

## Observability

GLAuth 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](https://charmhub.io/topics/canonical-observability-stack/tutorials/install-microk8s#heading--deploy-the-cos-lite-bundle) it, you can run:

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

## Configurations

The `glauth-k8s` charmed operator offers the following charm configuration
options.

| Charm Config Option | Description | Example |
|:-------------------:|------------------------------------------------------------------|------------------------------------------------------|
| :-----------------: | ---------------------------------------------------------------- | ---------------------------------------------------- |
| `base_dn` | The portion of the DIT in which to search for matching entries | `juju config <charm-app> base-dn="dc=glauth,dc=com"` |
| `hostname` | The hostname of the LDAP server in `glauth-k8s` charmed operator | `juju config <charm-app> hostname="ldap.glauth.com"` |
| `starttls_enabled` | The switch to enable/disable StartTLS support | `juju config <charm-app> starttls_enabled=true` |

> ⚠️ **NOTE**
>
> - The `hostname` should **NOT** contain the ldap scheme (e.g. `ldap://`) and
port.
> - The `hostname` should **NOT** contain the ldap scheme (e.g. `ldap://`) and port.
> - Please refer to the `config.yaml` for more details about the configurations.
## Contributing
Expand Down
Loading

0 comments on commit 08d0b0c

Please sign in to comment.