summaryrefslogtreecommitdiff
path: root/systems
diff options
context:
space:
mode:
authorSeth Flynn <[email protected]>2025-04-03 07:46:08 -0400
committerSeth Flynn <[email protected]>2025-04-03 07:51:45 -0400
commit8ec093da85fdd820ca96238145abc7cb132d5423 (patch)
tree58756bacf95703e638add8177e4246ef9c16a7a0 /systems
parentdb76d5cde3efa16cf49a6a80a55ce4c37dcd96aa (diff)
atlas: stop hosting victorialogs/victoriametrics & grafana
Diffstat (limited to 'systems')
-rw-r--r--systems/atlas/default.nix3
-rw-r--r--systems/atlas/victoria-metrics.nix99
2 files changed, 0 insertions, 102 deletions
diff --git a/systems/atlas/default.nix b/systems/atlas/default.nix
index 0e85853..275b949 100644
--- a/systems/atlas/default.nix
+++ b/systems/atlas/default.nix
@@ -5,7 +5,6 @@
./hardware-configuration.nix
./moyai.nix
./nixpkgs-tracker-bot.nix
- ./victoria-metrics.nix
inputs.self.nixosModules.default
];
@@ -38,8 +37,6 @@
services = {
forgejo.enable = true;
- grafana.enable = true;
-
hedgedoc.enable = true;
kanidm = {
diff --git a/systems/atlas/victoria-metrics.nix b/systems/atlas/victoria-metrics.nix
deleted file mode 100644
index fba00ae..0000000
--- a/systems/atlas/victoria-metrics.nix
+++ /dev/null
@@ -1,99 +0,0 @@
-{
- config,
- lib,
- inputs,
- ...
-}:
-
-let
- usesNodeExporter = system: system.config.services.prometheus.exporters.node.enable;
-
- nodeExporterFrom =
- system:
- "http://${system.config.networking.hostName}:${toString system.config.services.prometheus.exporters.node.port}";
-
- toNodeStaticConfig = system: {
- targets = [ (nodeExporterFrom system) ];
- labels.type = "node";
- };
-
- remoteNodes = lib.mapAttrsToList (lib.const toNodeStaticConfig) (
- lib.filterAttrs (lib.const usesNodeExporter) inputs.self.nixosConfigurations
- );
-in
-
-{
- borealis = {
- victorialogs = {
- enable = true;
- };
- };
-
- services = {
- journald.upload.enable = true;
-
- prometheus.exporters.node.enable = true;
-
- victoriametrics = {
- enable = true;
-
- retentionPeriod = "7d";
-
- prometheusConfig = {
- scrape_configs = [
- {
- job_name = "forgejo";
- metrics_path = "/metrics";
- static_configs = [
- {
- targets = [
- "http://${config.services.forgejo.settings.server.HTTP_ADDR}:${toString config.services.forgejo.settings.server.HTTP_PORT}"
- ];
- labels.type = "forgejo";
- }
- ];
- }
-
- {
- job_name = "miniflux";
- metrics_path = "/metrics";
- static_configs = [
- {
- targets = [ "http://${config.services.miniflux.config.LISTEN_ADDR}" ];
- labels.type = "miniflux";
- }
- ];
- }
-
- {
- job_name = "node-exporter";
- metrics_path = "/metrics";
- static_configs = remoteNodes;
- }
-
- {
- job_name = "victoria-logs";
- metrics_path = "/metrics";
- static_configs = [
- {
- targets = [ "localhost:9428" ];
- labels.type = "victoria-logs";
- }
- ];
- }
-
- {
- job_name = "victoria-metrics";
- metrics_path = "/metrics";
- static_configs = [
- {
- targets = [ "localhost${config.services.victoriametrics.listenAddress}" ];
- labels.type = "victoria-logs";
- }
- ];
- }
- ];
- };
- };
- };
-}