tyo0/prometheus: use https scraping

This commit is contained in:
Guanran Wang 2024-11-03 19:23:16 +08:00
parent 6bb4bfad43
commit 1d0f2f9ccb
Signed by: nyancat
GPG key ID: 91F97D9ED12639CF

View file

@ -31,6 +31,7 @@ in
scrapeConfigs = [ scrapeConfigs = [
{ {
job_name = "node_exporter"; job_name = "node_exporter";
scheme = "https";
metrics_path = "/metrics"; metrics_path = "/metrics";
basic_auth = { basic_auth = {
username = "prometheus"; username = "prometheus";
@ -40,6 +41,7 @@ in
} }
{ {
job_name = "caddy"; job_name = "caddy";
scheme = "https";
metrics_path = "/caddy"; metrics_path = "/caddy";
basic_auth = { basic_auth = {
username = "prometheus"; username = "prometheus";