Prometheus Monitoring#
Warning
This feature is experimental and as such is unstable. Using it in production is discouraged. Expect errors and API/functionality changes in future releases.
Lithops can send execution metrics to Prometheus for real-time monitoring purposes. Currently, this feature works by using a Prometheus push gateway.
Installation#
For testing purposes, the easiest way to get everything up is to use an Ubuntu VM and install the pre-compiled packages from the apt repository.
Install the Prometheus server:
apt-get update
apt-get install prometheus -y
Install Prometheus Pushgateway module:
apt-get install prometheus-pushgateway -y
Configuration#
Edit your config and enable the monitoring system by including the telemetry key in the lithops section:
lithops:
telemetry: true
Add in your config a new section called prometheus with the following keys:
prometheus:
apigateway: <http://apigateway_ip:port>
Group |
Key |
Default |
Optional |
Additional Info |
|---|---|---|---|---|
prometheus |
apigateway |
|
No |
Prometheus apigateway endpoint. Make sure to use the |