summaryrefslogtreecommitdiff
path: root/hosts/p-body/prometheus.nix
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/p-body/prometheus.nix
parent1b8d2d2ba704aedcdc6cad0faca7c8b689d314a8 (diff)
hosts!: prometheus -> victoria metrics
Diffstat (limited to 'hosts/p-body/prometheus.nix')
-rw-r--r--hosts/p-body/prometheus.nix32
1 files changed, 0 insertions, 32 deletions
diff --git a/hosts/p-body/prometheus.nix b/hosts/p-body/prometheus.nix
deleted file mode 100644
index 26e9d0e..0000000
--- a/hosts/p-body/prometheus.nix
+++ /dev/null
@@ -1,32 +0,0 @@
-{config, ...}: let
- scrapeExporter = name: host: port: {
- job_name = "${name}";
- static_configs = [
- {
- targets = [
- "${host}:${port}"
- ];
- }
- ];
- };
-in {
- services.prometheus = {
- enable = true;
- exporters = {
- node = {
- enable = true;
- enabledCollectors = ["systemd"];
- };
- };
- scrapeConfigs = [
- (scrapeExporter "p-body" "localhost" "${toString config.services.prometheus.exporters.node.port}")
- (scrapeExporter "atlas" "atlas" "${toString config.services.prometheus.exporters.node.port}")
- ];
- };
-
- getchoo.server.services.promtail.clients = [
- {
- url = "http://localhost:${toString config.services.loki.configuration.server.http_listen_port}/loki/api/v1/push";
- }
- ];
-}