summaryrefslogtreecommitdiff
path: root/hosts/atlas
diff options
context:
space:
mode:
authorseth <[email protected]>2023-08-05 03:27:45 -0400
committerseth <[email protected]>2023-08-05 03:29:57 -0400
commit328cc0182336b8b394702b02c4e0f6255a7174a2 (patch)
tree7b1b5b9a7ae95bafd7a1606420d13f634be5ed09 /hosts/atlas
parent1b8d2d2ba704aedcdc6cad0faca7c8b689d314a8 (diff)
hosts!: prometheus -> victoria metrics
Diffstat (limited to 'hosts/atlas')
-rw-r--r--hosts/atlas/default.nix2
-rw-r--r--hosts/atlas/prometheus.nix14
2 files changed, 1 insertions, 15 deletions
diff --git a/hosts/atlas/default.nix b/hosts/atlas/default.nix
index a77d6ec..1a9691d 100644
--- a/hosts/atlas/default.nix
+++ b/hosts/atlas/default.nix
@@ -7,7 +7,6 @@
./hardware-configuration.nix
./miniflux.nix
./nginx.nix
- ./prometheus.nix
];
_module.args.nixinate = {
@@ -30,6 +29,7 @@
networking = {
domain = "mydadleft.me";
hostName = "atlas";
+ firewall.allowedTCPPorts = [config.services.prometheus.exporters.node.port];
};
nix.settings.allowed-users = ["bob"];
diff --git a/hosts/atlas/prometheus.nix b/hosts/atlas/prometheus.nix
deleted file mode 100644
index 041c407..0000000
--- a/hosts/atlas/prometheus.nix
+++ /dev/null
@@ -1,14 +0,0 @@
-{config, ...}: {
- networking.firewall.allowedTCPPorts = [config.services.prometheus.exporters.node.port];
-
- services.prometheus.exporters.node = {
- enable = true;
- enabledCollectors = ["systemd"];
- };
-
- getchoo.server.services.promtail.clients = [
- {
- url = "http://p-body:3030/loki/api/v1/push";
- }
- ];
-}