mirror of
https://github.com/nmasur/dotfiles
synced 2024-12-05 01:19:09 +00:00
Compare commits
5 Commits
d1721efc6c
...
642d3c183f
Author | SHA1 | Date | |
---|---|---|---|
|
642d3c183f | ||
|
5798406977 | ||
|
81cb603bb7 | ||
|
1e7c69b3ea | ||
|
45deba10af |
@ -105,6 +105,7 @@
|
|||||||
s = "sudo";
|
s = "sudo";
|
||||||
sc = "systemctl";
|
sc = "systemctl";
|
||||||
scs = "systemctl status";
|
scs = "systemctl status";
|
||||||
|
sca = "systemctl cat";
|
||||||
m = "make";
|
m = "make";
|
||||||
t = "trash";
|
t = "trash";
|
||||||
|
|
||||||
|
@ -46,7 +46,7 @@
|
|||||||
|
|
||||||
# Force Caddy to 403 if not coming from allowlisted source
|
# Force Caddy to 403 if not coming from allowlisted source
|
||||||
caddy.cidrAllowlist = [ "127.0.0.1/32" ];
|
caddy.cidrAllowlist = [ "127.0.0.1/32" ];
|
||||||
caddy.routes = [
|
caddy.routes = lib.mkBefore [
|
||||||
{
|
{
|
||||||
match = [ { not = [ { remote_ip.ranges = config.caddy.cidrAllowlist; } ]; } ];
|
match = [ { not = [ { remote_ip.ranges = config.caddy.cidrAllowlist; } ]; } ];
|
||||||
handle = [
|
handle = [
|
||||||
|
@ -669,7 +669,7 @@ in
|
|||||||
};
|
};
|
||||||
editorMode = "code";
|
editorMode = "code";
|
||||||
exemplar = false;
|
exemplar = false;
|
||||||
"expr" = ''increase(zfs_dataset_used_bytes{name="tank"}[1d])'';
|
"expr" = ''delta(zfs_dataset_used_bytes{name="tank"}[1d])'';
|
||||||
hide = false;
|
hide = false;
|
||||||
instant = false;
|
instant = false;
|
||||||
interval = "";
|
interval = "";
|
||||||
@ -683,7 +683,7 @@ in
|
|||||||
uid = promUid;
|
uid = promUid;
|
||||||
};
|
};
|
||||||
editorMode = "code";
|
editorMode = "code";
|
||||||
"expr" = ''increase(zfs_dataset_used_bytes{name="tank"}[7d])'';
|
"expr" = ''delta(zfs_dataset_used_bytes{name="tank"}[7d])'';
|
||||||
hide = false;
|
hide = false;
|
||||||
legendFormat = "Past Week";
|
legendFormat = "Past Week";
|
||||||
range = true;
|
range = true;
|
||||||
@ -695,7 +695,7 @@ in
|
|||||||
uid = promUid;
|
uid = promUid;
|
||||||
};
|
};
|
||||||
editorMode = "code";
|
editorMode = "code";
|
||||||
"expr" = ''increase(zfs_dataset_used_bytes{name="tank"}[30d])'';
|
"expr" = ''delta(zfs_dataset_used_bytes{name="tank"}[30d])'';
|
||||||
hide = false;
|
hide = false;
|
||||||
legendFormat = "Past Month";
|
legendFormat = "Past Month";
|
||||||
range = true;
|
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 = {
|
gridPos = {
|
||||||
|
@ -91,6 +91,8 @@ in
|
|||||||
services.vmagent = {
|
services.vmagent = {
|
||||||
package = pkgs-stable.vmagent;
|
package = pkgs-stable.vmagent;
|
||||||
prometheusConfig = prometheusConfig;
|
prometheusConfig = prometheusConfig;
|
||||||
|
# https://github.com/VictoriaMetrics/VictoriaMetrics/issues/5567
|
||||||
|
extraArgs = [ "-promscrape.maxScrapeSize 450000000" ];
|
||||||
remoteWrite = {
|
remoteWrite = {
|
||||||
url = "https://${config.hostnames.prometheus}/api/v1/write";
|
url = "https://${config.hostnames.prometheus}/api/v1/write";
|
||||||
basicAuthUsername = username;
|
basicAuthUsername = username;
|
||||||
|
Loading…
Reference in New Issue
Block a user