modules/prometheus: fix basic auth scrape

This commit is contained in:
xinyangli 2024-12-02 10:43:43 +08:00
parent 74b67e1854
commit 92db38383e
Signed by: xin
SSH key fingerprint: SHA256:UU5pRTl7NiLFJbWJZa+snLylZSXIz5rgHmwjzv8v4oE
5 changed files with 51 additions and 24 deletions

View file

@ -18,7 +18,7 @@ in
static_configs = [ { targets = [ "${address}${mkPort port}" ]; } ];
}
// (
if isNull null then
if isNull passwordFile then
{ }
else
{