mirror of
https://github.com/jupyterhub/jupyterhub.git
synced 2025-10-08 10:34:10 +00:00
Merge pull request #4525 from danilopeixoto/metrics-prefix
Add `JUPYTERHUB_METRICS_PREFIX` environment variable to customize metrics prefix
This commit is contained in:
@@ -18,3 +18,17 @@ tool like [Grafana](https://grafana.com).
|
||||
|
||||
/reference/metrics
|
||||
```
|
||||
|
||||
## Customizing the metrics prefix
|
||||
|
||||
JupyterHub metrics all have a `jupyterhub_` prefix.
|
||||
As of JupyterHub 5.0, this can be overridden with `$JUPYTERHUB_METRICS_PREFIX` environment variable
|
||||
in the Hub's environment.
|
||||
|
||||
For example,
|
||||
|
||||
```bash
|
||||
export JUPYTERHUB_METRICS_PREFIX=jupyterhub_prod
|
||||
```
|
||||
|
||||
would result in the metric `jupyterhub_prod_active_users`, etc.
|
||||
|
Reference in New Issue
Block a user