You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/build-clio.md
+17Lines changed: 17 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -181,3 +181,20 @@ Sometimes, during development, you need to build against a custom version of `li
181
181
4. Build Clio as you would have before.
182
182
183
183
See [Building Clio](#building-clio) for details.
184
+
185
+
## Using `clang-tidy` for static analysis
186
+
187
+
The minimum [clang-tidy](https://clang.llvm.org/extra/clang-tidy/) version required is 19.0.
188
+
189
+
Clang-tidy can be run by Cmake when building the project. To achieve this, you just need to provide the option `-o lint=True` for the `conan install` command:
Copy file name to clipboardExpand all lines: docs/run-clio.md
+12Lines changed: 12 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -80,3 +80,15 @@ Clio will fallback to hardcoded defaults when these values are not specified in
80
80
81
81
> [!TIP]
82
82
> See the [example-config.json](../docs/examples/config/example-config.json) for more details.
83
+
84
+
## Prometheus metrics collection
85
+
86
+
Clio natively supports [Prometheus](https://prometheus.io/) metrics collection. It accepts Prometheus requests on the port configured in the `server` section of the config.
87
+
88
+
Prometheus metrics are enabled by default, and replies to `/metrics` are compressed. To disable compression, and have human readable metrics, add `"prometheus": { "enabled": true, "compress_reply": false }` to Clio's config.
89
+
90
+
To completely disable Prometheus metrics add `"prometheus": { "enabled": false }` to Clio's config.
91
+
92
+
It is important to know that Clio responds to Prometheus request only if they are admin requests. If you are using the admin password feature, the same password should be provided in the Authorization header of Prometheus requests.
93
+
94
+
You can find an example docker-compose file, with Prometheus and Grafana configs, in [examples/infrastructure](../docs/examples/infrastructure/).
0 commit comments