mirror of
https://github.com/andwati/zitadel.git
synced 2026-12-05 18:38:52 +00:00
docs: update docusaurus, add metrics endpoint, add zero downtime update (#4376)
* chore: update docusuarus to 2.1.0 * docs: metrics endpoint docs * docs: zero downtime updates * Update docs/docs/concepts/architecture/solution.md Co-authored-by: mffap <[email protected]> * Update docs/docs/concepts/architecture/solution.md Co-authored-by: mffap <[email protected]> * Update docs/docs/concepts/architecture/solution.md Co-authored-by: mffap <[email protected]> * docs: add health / ready * Update docs/docs/apis/observability/health.md Co-authored-by: mffap <[email protected]> Co-authored-by: mffap <[email protected]>
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
---
|
||||
title: Ready / Healthy
|
||||
---
|
||||
|
||||
ZITADEL exposes a `Ready`- and `Healthy` endpoint to allow external systems like load balancers, orchestration systems, uptime probes and others to check the status.
|
||||
|
||||
## Ready
|
||||
|
||||
The `Ready` endpoint is located on the path `/debug/ready` and allows systems to probe if a ZITADEL process is ready to serve and accept traffic.
|
||||
This endpoint is useful for operations like [zero downtime upgrade](../../concepts/architecture/solution#zero-downtime-updates) since it allows systems like Kubernetes to verify that ZITADEL is working on something (e.g. database schema migration) but is not yet ready to accept traffic.
|
||||
|
||||
:::info
|
||||
In Kubernetes this is called the `readinessProbe`.
|
||||
:::
|
||||
|
||||
## Healthy
|
||||
|
||||
The `Health` endpoint is located on the path `/debug/healthz` and allows systems to probe if a ZITADEL process is still alive.
|
||||
This helps system like kubernetes or a load balancer to observe if the process is still alive to accept traffic.
|
||||
|
||||
:::info
|
||||
In Kubernetes this is called the `livenessProbe`.
|
||||
:::
|
||||
@@ -0,0 +1,11 @@
|
||||
---
|
||||
title: Metrics
|
||||
---
|
||||
|
||||
ZITADEL provides a `metrics` endpoint with the help of the [opentelemetry-go](https://github.com/open-telemetry/opentelemetry-go) package.
|
||||
|
||||
Self-hosting customers can access this endpoint with on the path `/debug/metrics`. For example when running ZITADEL locally its is accessible on `http://localhost:8080/debug/metrics`. The metrics endpoint can be scrubbed by any tool of choice that supports the `otel` format, e.g an existing Prometheus.
|
||||
|
||||
For our [Kubernetes/Helm](../../guides/deploy/kubernetes) users, we provide an out of the box support for the [ServiceMonitor](https://github.com/zitadel/zitadel-charts/blob/main/charts/zitadel/templates/servicemonitor.yaml) custom resource.
|
||||
|
||||
By default, metrics are enabled but can be turned of through ZITADEL's [configuration](../../guides/manage/self-hosted/configure). The (default) configuration is located in the [defaults.yaml](https://github.com/zitadel/zitadel/blob/main/cmd/defaults.yaml).
|
||||
@@ -57,3 +57,25 @@ CockroachDB needs to be configured with locality flags to proper distribute data
|
||||
|
||||

|
||||
|
||||
## Zero Downtime Updates
|
||||
|
||||
Since an Identity system tends to be a critical piece of infrastructure, the "in place zero downtime update" is a well needed feature.
|
||||
ZITADEL is built in a way that upgrades can be executed without downtime by just updating to a more recent version.
|
||||
|
||||
The common update involves the following steps and do not need manual intervention of the operator:
|
||||
|
||||
- Keep the old version running
|
||||
- Deploy the version in parallel to the old version
|
||||
- The new version will start ...
|
||||
- by updating databases schemas if needed
|
||||
- participate in the leader election for background jobs
|
||||
- As soon as the new version is ready to accept traffic it will signal this on the readiness endpoint `/debug/ready`
|
||||
- At this point your network infrastructure can send traffic to the new version
|
||||
|
||||
Users who use [Kubernetes/Helm](../../guides/deploy/kubernetes) or serverless container services like Google Cloud Run can benefit from the fact the above process is automated.
|
||||
|
||||
:::info
|
||||
As a good practice we recommend creating Database Backups prior to an update.
|
||||
It is also recommend to read the release notes on GitHub before upgrading.
|
||||
Since ZITADEL utilizes Semantic Versioning Breaking Changes of any kind will always increase the major version (e.g Version 2 would become Version 3).
|
||||
:::
|
||||
|
||||
Reference in New Issue
Block a user