Compare commits

...

2 commits

Author SHA1 Message Date
Ingolf Wagner
fa62983e2c
⬆️ use new nixos-telemetry architecture 2025-02-26 14:57:23 +07:00
Ingolf Wagner
e99c573791
🐛 fix bugwarrior pull because of i3 rust bar 2025-02-26 14:56:53 +07:00
8 changed files with 41 additions and 50 deletions

View file

@ -14,7 +14,7 @@ with types;
config = { config = {
telemetry.enable = mkDefault true; telemetry.enable = mkDefault true;
telemetry.metrics.enable = mkDefault false; telemetry.metrics.enable = mkDefault false;
telemetry.opentelemetry.enable = false; telemetry.apps.opentelemetry.enable = false;
services.journald.extraConfig = "SystemMaxUse=1G"; services.journald.extraConfig = "SystemMaxUse=1G";
}; };

6
flake.lock generated
View file

@ -1405,11 +1405,11 @@
"treefmt-nix": "treefmt-nix_8" "treefmt-nix": "treefmt-nix_8"
}, },
"locked": { "locked": {
"lastModified": 1740492270, "lastModified": 1740556259,
"narHash": "sha256-4JGmOis851TM0OL88S7+u8HbNk25xvBNh4dVsNDRAC8=", "narHash": "sha256-k8f7+Ir+DiK7rVH1RoHt8Do/Y8JKagTlNoSwgOPVsU0=",
"owner": "mrvandalo", "owner": "mrvandalo",
"repo": "nixos-telemetry", "repo": "nixos-telemetry",
"rev": "94c12227bd7e98f7ec8f8759d41941c5afcce352", "rev": "3481a8b1c94fc5adc4ae7c1ba9695e6fe59389de",
"type": "github" "type": "github"
}, },
"original": { "original": {

View file

@ -289,12 +289,6 @@
./features ./features
./modules # todo : spread this across features and components ./modules # todo : spread this across features and components
#./system/all # todo : spread this across features and components #./system/all # todo : spread this across features and components
(
{ lib, pkgs, ... }:
{
telemetry.netdata.enable = false;
}
)
# some modules I always use # some modules I always use
telemetry.nixosModules.telemetry telemetry.nixosModules.telemetry

View file

@ -87,36 +87,37 @@ in
format = "$icon $percentage $time"; format = "$icon $percentage $time";
} }
{ block = "uptime"; } { block = "uptime"; }
{ # interferes with `bugwarrior pull`
block = "taskwarrior"; # {
interval = 60; # block = "taskwarrior";
format = " $icon $count.eng(w:3) todo "; # interval = 60;
format_singular = " $icon 1 task "; # format = " $icon $count.eng(w:3) todo ";
format_everything_done = ""; # format_singular = " $icon 1 task ";
warning_threshold = 10; # format_everything_done = "";
critical_threshold = 20; # warning_threshold = 10;
filters = [ # critical_threshold = 20;
{ # filters = [
name = "active"; # {
filter = "+PENDING and ( +ACTIVE or +DUETODAY or +TODAY or +OVERDUE )"; # name = "active";
} # filter = "+PENDING and ( +ACTIVE or +DUETODAY or +TODAY or +OVERDUE )";
]; # }
} # ];
{ # }
block = "taskwarrior"; # {
interval = 60; # block = "taskwarrior";
format = " $icon $count.eng(w:2) "; # interval = 60;
format_singular = " $icon 1 task "; # format = " $icon $count.eng(w:2) ";
format_everything_done = ""; # format_singular = " $icon 1 task ";
warning_threshold = 3; # format_everything_done = "";
critical_threshold = 5; # warning_threshold = 3;
filters = [ # critical_threshold = 5;
{ # filters = [
name = "started"; # {
filter = "+PENDING and +ACTIVE"; # name = "started";
} # filter = "+PENDING and +ACTIVE";
]; # }
} # ];
# }
{ {
block = "time"; block = "time";
interval = 60; interval = 60;

View file

@ -63,7 +63,7 @@
components.terminal.enable = true; components.terminal.enable = true;
telemetry.enable = true; telemetry.enable = true;
telemetry.opentelemetry.exporter.endpoint = "10.100.0.1:4317"; # orbi telemetry.apps.opentelemetry.exporter.endpoint = "10.100.0.1:4317"; # orbi
home-manager.users.mainUser.home.sessionPath = [ "$HOME/.timewarrior/scripts" ]; home-manager.users.mainUser.home.sessionPath = [ "$HOME/.timewarrior/scripts" ];
# todo: move to homemanager # todo: move to homemanager

View file

@ -71,7 +71,7 @@
features.boot.tor.enable = true; features.boot.tor.enable = true;
telemetry.enable = true; telemetry.enable = true;
telemetry.opentelemetry.receiver.endpoint = "0.0.0.0:4317"; telemetry.apps.opentelemetry.receiver.endpoint = "0.0.0.0:4317";
networking.firewall.interfaces.wg0.allowedTCPPorts = [ 4317 ]; networking.firewall.interfaces.wg0.allowedTCPPorts = [ 4317 ];
networking.firewall.interfaces.wg0.allowedUDPPorts = [ 4317 ]; networking.firewall.interfaces.wg0.allowedUDPPorts = [ 4317 ];

View file

@ -22,12 +22,8 @@
}; };
}; };
services.prometheus = { telemetry.apps.prometheus.enable = true;
checkConfig = "syntax-only"; telemetry.apps.prometheus.retentionTime = "90d";
enable = true;
# keep data for 30 days
extraFlags = [ "--storage.tsdb.retention.time=90d" ];
};
services.grafana.provision.datasources.settings = { services.grafana.provision.datasources.settings = {
apiVersion = 1; apiVersion = 1;

View file

@ -67,8 +67,8 @@
features.boot.ssh.enable = true; features.boot.ssh.enable = true;
telemetry.enable = true; telemetry.enable = true;
telemetry.opentelemetry.receiver.endpoint = "0.0.0.0:4317"; telemetry.apps.opentelemetry.receiver.endpoint = "0.0.0.0:4317";
telemetry.opentelemetry.exporter.endpoint = "10.100.0.2:4317"; # chnungus telemetry.apps.opentelemetry.exporter.endpoint = "10.100.0.2:4317"; # chnungus
networking.firewall.interfaces.wg0.allowedTCPPorts = [ 4317 ]; networking.firewall.interfaces.wg0.allowedTCPPorts = [ 4317 ];
networking.firewall.interfaces.wg0.allowedUDPPorts = [ 4317 ]; networking.firewall.interfaces.wg0.allowedUDPPorts = [ 4317 ];
healthchecks.closed.public.ports.opentelemetry = [ 4317 ]; healthchecks.closed.public.ports.opentelemetry = [ 4317 ];