aboutsummaryrefslogtreecommitdiff
path: root/hosts
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2023-04-23 13:37:03 -0700
committerFranck Cuny <franck@fcuny.net>2023-04-23 14:29:06 -0700
commit251379d6084849f26866226b4bd0391216a8ccec (patch)
tree448c3517fe994c0dca98f4e9c958ef503bfd7eff /hosts
parentmodules/grafana: add loki as a source to grafana (diff)
downloadinfra-251379d6084849f26866226b4bd0391216a8ccec.tar.gz
modules/monitoring: consolidate all monitoring services together
This will help to organize and structure monitoring modules a bit better.
Diffstat (limited to 'hosts')
-rw-r--r--hosts/carmel/services.nix2
-rw-r--r--hosts/tahoe/services.nix22
2 files changed, 13 insertions, 11 deletions
diff --git a/hosts/carmel/services.nix b/hosts/carmel/services.nix
index e7f09dd..048a631 100644
--- a/hosts/carmel/services.nix
+++ b/hosts/carmel/services.nix
@@ -1,6 +1,6 @@
{ config, pkgs, ... }: {
my.services = {
- metrics-exporter = { enable = true; };
+ monitoring.node-exporter.enable = true;
avahi = {
enable = true;
withReflector = true;
diff --git a/hosts/tahoe/services.nix b/hosts/tahoe/services.nix
index 8783e8c..4f3ffdb 100644
--- a/hosts/tahoe/services.nix
+++ b/hosts/tahoe/services.nix
@@ -21,18 +21,21 @@ in
enable = true;
vhostName = "unifi.fcuny.xyz";
};
- prometheus = { enable = true; };
- grafana = {
- enable = true;
- vhostName = "dash.fcuny.xyz";
- };
- loki = {
- enable = true;
- address = "192.168.6.40";
+ monitoring = {
+ prometheus.enable = true;
+ grafana = {
+ enable = true;
+ vhostName = "dash.fcuny.xyz";
+ };
+ loki = {
+ enable = true;
+ address = "192.168.6.40";
+ };
+ promtail.enable = true;
+ node-exporter.enable = true;
};
- metrics-exporter.promtail.enable = true;
cgit = {
enable = true;
};
@@ -46,7 +49,6 @@ in
enable = true;
vhostName = "bt.fcuny.xyz";
};
- metrics-exporter = { enable = true; };
syncthing.enable = true;
backup = {
enable = true;