Add basic prometheus/grafana setup
This commit is contained in:
parent
40bb9b51f6
commit
db88613987
4 changed files with 48 additions and 0 deletions
|
|
@ -4,6 +4,7 @@
|
|||
encode zstd gzip
|
||||
file_server
|
||||
root * /srv/home.chandlerswift.com
|
||||
reverse_proxy /grafana/* localhost:3000
|
||||
# hide .git # ???
|
||||
'';
|
||||
systemd.tmpfiles.settings."10-home-chandlerswift-com" = {
|
||||
|
|
|
|||
|
|
@ -8,5 +8,10 @@
|
|||
services.caddy = {
|
||||
enable = true;
|
||||
email = "chandler@chandlerswift.com";
|
||||
globalConfig = ''
|
||||
servers {
|
||||
metrics # Enable Prometheus monitoring
|
||||
}
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue