Compare commits

...

4 Commits

4 changed files with 24 additions and 6 deletions

View File

@ -14,6 +14,9 @@ if [ -f "$HOME/Library/Application Support/dnvm/env" ]; then
fi fi
function service_restart() { function service_restart() {
launchctl stop $1 launchctl kickstart -k -p $1
launchctl start $1 }
function root_shell() {
sudo -E zsh -i /etc/zshrc
} }

View File

@ -145,6 +145,16 @@
yaxis = "y1"; yaxis = "y1";
}; };
} }
{
source = "http://${config.services.prometheus.listen}";
query = ''
delta(ping_counter{result="dropped"}[5m])
'';
config = {
name_format = "`icmp \${labels.domain} drop count`";
yaxis = "y1";
};
}
]; ];
} }
{ {
@ -190,6 +200,7 @@
data_dir = "/var/lib/vector"; data_dir = "/var/lib/vector";
api = { api = {
enabled = true; enabled = true;
address = "127.0.0.1:8686";
}; };
sources = { sources = {
prometheus = { prometheus = {

View File

@ -278,8 +278,6 @@ EOF";
}; };
}; };
environment.systemPackages = (with pkgs; [ environment.systemPackages = (with pkgs; [
# TODO(jwall): This appears to be broken due to: https://github.com/NixOS/nixpkgs/issues/166205
# Should be fixed by: https://github.com/NixOS/nixpkgs/pull/282624
isabelle isabelle
lean4 lean4
terraform # TODO(jeremy): Replace with opentofu when that is an option. terraform # TODO(jeremy): Replace with opentofu when that is an option.
@ -287,7 +285,7 @@ EOF";
oha oha
nodejs nodejs
gnumake gnumake
# TODO find a version of the julia package that will install # TODO(zaphar): find a version of the julia package that will install
# on darwin and add it as an overlay # on darwin and add it as an overlay
python310 python310
python310Packages.pip python310Packages.pip

View File

@ -28,8 +28,14 @@ with lib;
launchd.daemons.vector = mkIf config.services.vector.enable { launchd.daemons.vector = mkIf config.services.vector.enable {
serviceConfig = { serviceConfig = {
Program = "${pkgs.vector}/bin/vector";
ProgramArguments = [ ProgramArguments = [
"${pkgs.clio}/bin/clio"
"--out-path=${config.services.vector.stdoutPath}"
"--err-path=${config.services.vector.stdoutPath}"
"--pid-file=${config.services.vector.pidPath}"
"--paranoid"
"--"
"${pkgs.vector}/bin/vector"
"--verbose" "--verbose"
"--watch-config" "--watch-config"
"--config=/etc/${config.environment.etc."vector.yaml".target}" "--config=/etc/${config.environment.etc."vector.yaml".target}"