mirror of
https://github.com/nmasur/dotfiles
synced 2024-12-05 02:29:08 +00:00
Compare commits
5 Commits
d1721efc6c
...
642d3c183f
Author | SHA1 | Date | |
---|---|---|---|
|
642d3c183f | ||
|
5798406977 | ||
|
81cb603bb7 | ||
|
1e7c69b3ea | ||
|
45deba10af |
@ -105,6 +105,7 @@
|
||||
s = "sudo";
|
||||
sc = "systemctl";
|
||||
scs = "systemctl status";
|
||||
sca = "systemctl cat";
|
||||
m = "make";
|
||||
t = "trash";
|
||||
|
||||
|
@ -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 = [
|
||||
|
@ -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 = {
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user