mirror of
				https://github.com/XRPLF/clio.git
				synced 2025-11-04 11:55:51 +00:00 
			
		
		
		
	@@ -251,8 +251,16 @@ For a better security `admin_password` could be provided in the `server` section
 | 
			
		||||
}
 | 
			
		||||
```
 | 
			
		||||
If the password is presented in the config, clio will check the Authorization header (if any) in each request for the password.
 | 
			
		||||
The Authorization header should contain type `Password` and the password from the config, e.g. `Password secret`.
 | 
			
		||||
Exactly equal password gains admin rights for the request or a websocket connection.
 | 
			
		||||
 | 
			
		||||
## Prometheus metrics collection
 | 
			
		||||
 | 
			
		||||
Clio natively supports Prometheus metrics collection. It accepts Prometheus requests on the port configured in `server` section of config.
 | 
			
		||||
Prometheus metrics are enabled by default. To disable it add `"prometheus_enabled": false` to the config.
 | 
			
		||||
It is important to know that clio responds to Prometheus request only if they are admin requests, so Prometheus should be configured to send admin password in header.
 | 
			
		||||
There is an example of docker-compose file, Prometheus and Grafana configs in [examples/infrastructure](examples/infrastructure).
 | 
			
		||||
 | 
			
		||||
## Using clang-tidy for static analysis
 | 
			
		||||
 | 
			
		||||
Minimum clang-tidy version required is 16.0.
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user