From e7141c0533aa316180957101b46d466f8e8c45e3 Mon Sep 17 00:00:00 2001 From: asonix Date: Sat, 22 Jul 2023 16:52:21 -0500 Subject: [PATCH] Add prometheus_address to pict-rs.toml --- pict-rs.toml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/pict-rs.toml b/pict-rs.toml index b636438..a066b1f 100644 --- a/pict-rs.toml +++ b/pict-rs.toml @@ -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]