aboutsummaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorRomain <romdum@users.noreply.github.com>2021-10-05 20:39:37 +0200
committerGitHub <noreply@github.com>2021-10-05 20:39:37 +0200
commit987152ba408b03fe0b15dd9c72dfd1614b4159fd (patch)
tree02572cb5512f146797c3a3d715f0bee22eb138f7 /docs
parent760d61b411460db3f3c688c214a6199b5b18eb27 (diff)
downloadgitea-987152ba408b03fe0b15dd9c72dfd1614b4159fd.tar.gz
gitea-987152ba408b03fe0b15dd9c72dfd1614b4159fd.zip
Add metrics to get issues by repository (#17225)
Diffstat (limited to 'docs')
-rw-r--r--docs/content/doc/advanced/config-cheat-sheet.en-us.md3
1 files changed, 2 insertions, 1 deletions
diff --git a/docs/content/doc/advanced/config-cheat-sheet.en-us.md b/docs/content/doc/advanced/config-cheat-sheet.en-us.md
index 5726473d24..d224533e96 100644
--- a/docs/content/doc/advanced/config-cheat-sheet.en-us.md
+++ b/docs/content/doc/advanced/config-cheat-sheet.en-us.md
@@ -853,7 +853,8 @@ NB: You must have `DISABLE_ROUTER_LOG` set to `false` for this option to take ef
## Metrics (`metrics`)
- `ENABLED`: **false**: Enables /metrics endpoint for prometheus.
-- `ENABLED_ISSUE_BY_LABEL`: **false**: Enable issue by label metrics
+- `ENABLED_ISSUE_BY_LABEL`: **false**: Enable issue by label metrics with format `gitea_issues_by_label{label="bug"} 2`.
+- `ENABLED_ISSUE_BY_REPOSITORY`: **false**: Enable issue by repository metrics with format `gitea_issues_by_repository{repository="org/repo"} 5`.
- `TOKEN`: **\<empty\>**: You need to specify the token, if you want to include in the authorization the metrics . The same token need to be used in prometheus parameters `bearer_token` or `bearer_token_file`.
## API (`api`)