Add prometheus_address to pict-rs.toml

This commit is contained in:
asonix 2023-07-22 16:52:21 -05:00
parent ce0df080f4
commit e7141c0533

View file

@ -126,6 +126,15 @@ service_name = 'pict-rs'
# Follows the same format as RUST_LOG
targets = 'info'
[metrics]
## Optional: enable a prometheus scrape endpoint for pict-rs
# environment variable: PICTRS__METRICS__PROMETHEUS_ADDRESS
# default: empty
#
# Setting this value enables pointing prometheus at pict-rs to receive metrics. It can also be
# queried with curl.
prometheus_address = "0.0.0.0:9000"
## Configuration for migrating from pict-rs 0.2
[old_db]