Compare commits

...

5 Commits

Author SHA1 Message Date
Noah Masur
642d3c183f
try changing grafana zfs from increase to delta 2024-08-19 00:04:43 +00:00
Noah Masur
5798406977
add denylist to top of caddy routes 2024-08-19 00:04:33 +00:00
Noah Masur
81cb603bb7
fix: vmagent scrape size exceeded 2024-08-18 19:36:29 -04:00
Noah Masur
1e7c69b3ea
add missing paperless service in grafana 2024-08-18 19:35:44 -04:00
Noah Masur
45deba10af
add shortcut for systemctl cat 2024-08-18 19:35:30 -04:00
4 changed files with 29 additions and 4 deletions

View File

@ -105,6 +105,7 @@
s = "sudo";
sc = "systemctl";
scs = "systemctl status";
sca = "systemctl cat";
m = "make";
t = "trash";

View File

@ -46,7 +46,7 @@
# Force Caddy to 403 if not coming from allowlisted source
caddy.cidrAllowlist = [ "127.0.0.1/32" ];
caddy.routes = [
caddy.routes = lib.mkBefore [
{
match = [ { not = [ { remote_ip.ranges = config.caddy.cidrAllowlist; } ]; } ];
handle = [

View File

@ -669,7 +669,7 @@ in
};
editorMode = "code";
exemplar = false;
"expr" = ''increase(zfs_dataset_used_bytes{name="tank"}[1d])'';
"expr" = ''delta(zfs_dataset_used_bytes{name="tank"}[1d])'';
hide = false;
instant = false;
interval = "";
@ -683,7 +683,7 @@ in
uid = promUid;
};
editorMode = "code";
"expr" = ''increase(zfs_dataset_used_bytes{name="tank"}[7d])'';
"expr" = ''delta(zfs_dataset_used_bytes{name="tank"}[7d])'';
hide = false;
legendFormat = "Past Week";
range = true;
@ -695,7 +695,7 @@ in
uid = promUid;
};
editorMode = "code";
"expr" = ''increase(zfs_dataset_used_bytes{name="tank"}[30d])'';
"expr" = ''delta(zfs_dataset_used_bytes{name="tank"}[30d])'';
hide = false;
legendFormat = "Past Month";
range = true;
@ -1083,6 +1083,28 @@ in
}
];
}
{
matcher = {
id = "byName";
options = "localhost:${builtins.toString config.services.paperless.port}";
};
properties = [
{
id = "displayName";
value = "Paperless";
}
{
id = "links";
value = [
{
targetBlank = true;
title = "";
url = "https://${config.hostnames.paperless}";
}
];
}
];
}
];
};
gridPos = {

View File

@ -91,6 +91,8 @@ in
services.vmagent = {
package = pkgs-stable.vmagent;
prometheusConfig = prometheusConfig;
# https://github.com/VictoriaMetrics/VictoriaMetrics/issues/5567
extraArgs = [ "-promscrape.maxScrapeSize 450000000" ];
remoteWrite = {
url = "https://${config.hostnames.prometheus}/api/v1/write";
basicAuthUsername = username;