feat(prometheus): added caddy metrics
This commit is contained in:
@@ -1,3 +1,7 @@
|
|||||||
|
{
|
||||||
|
metrics
|
||||||
|
}
|
||||||
|
|
||||||
(basic-auth) {
|
(basic-auth) {
|
||||||
basic_auth {
|
basic_auth {
|
||||||
admin $2a$14$2zQilpLka2h8Sn1mmOLAAezwDN8Zy8Ta36WECk4qt5MTn3CWksR0m
|
admin $2a$14$2zQilpLka2h8Sn1mmOLAAezwDN8Zy8Ta36WECk4qt5MTn3CWksR0m
|
||||||
@@ -6,29 +10,29 @@
|
|||||||
|
|
||||||
adnova.itqdev.xyz {
|
adnova.itqdev.xyz {
|
||||||
@healthPath path /health /health/*
|
@healthPath path /health /health/*
|
||||||
handle @healthPath {
|
handle @healthPath {
|
||||||
import basic-auth
|
import basic-auth
|
||||||
reverse_proxy http://backend:8080
|
reverse_proxy http://backend:8080
|
||||||
}
|
}
|
||||||
|
|
||||||
handle_path /static/* {
|
handle_path /static/* {
|
||||||
reverse_proxy http://backend-staticfiles:80
|
reverse_proxy http://backend-staticfiles:80
|
||||||
}
|
}
|
||||||
|
|
||||||
reverse_proxy http://backend:8080
|
reverse_proxy http://backend:8080
|
||||||
}
|
}
|
||||||
|
|
||||||
admin.adnova.itqdev.xyz {
|
admin.adnova.itqdev.xyz {
|
||||||
import basic-auth
|
import basic-auth
|
||||||
|
|
||||||
root * /var/www/admin
|
root * /var/www/admin
|
||||||
file_server
|
file_server
|
||||||
}
|
}
|
||||||
|
|
||||||
loadtest.adnova.itqdev.xyz {
|
loadtest.adnova.itqdev.xyz {
|
||||||
import basic-auth
|
import basic-auth
|
||||||
|
|
||||||
reverse_proxy http://loadtest:5001
|
reverse_proxy http://loadtest:5001
|
||||||
}
|
}
|
||||||
|
|
||||||
grafana.adnova.itqdev.xyz {
|
grafana.adnova.itqdev.xyz {
|
||||||
|
|||||||
@@ -33,3 +33,8 @@ scrape_configs:
|
|||||||
- job_name: backend
|
- job_name: backend
|
||||||
static_configs:
|
static_configs:
|
||||||
- targets: ["backend:8080"]
|
- targets: ["backend:8080"]
|
||||||
|
|
||||||
|
# Caddy
|
||||||
|
- job_name: caddy
|
||||||
|
static_configs:
|
||||||
|
- targets: ["caddy:8080"]
|
||||||
|
|||||||
Reference in New Issue
Block a user