add unbound dashboard
This commit is contained in:
parent
6864cb27cd
commit
e4c76db648
3 changed files with 28 additions and 2 deletions
|
|
@ -168,13 +168,21 @@ in
|
||||||
|
|
||||||
dashboards.settings.providers = [
|
dashboards.settings.providers = [
|
||||||
{
|
{
|
||||||
name = "Node exporter";
|
name = "Node Exporter";
|
||||||
options.path = pkgs.fetchurl {
|
options.path = pkgs.fetchurl {
|
||||||
name = "dashboard-node-exporter-full.json";
|
name = "dashboard-node-exporter-full.json";
|
||||||
url = "https://grafana.com/api/dashboards/1860/revisions/42/download";
|
url = "https://grafana.com/api/dashboards/1860/revisions/42/download";
|
||||||
hash = "sha256-pNgn6xgZBEu6LW0lc0cXX2gRkQ8lg/rer34SPE3yEl4=";
|
hash = "sha256-pNgn6xgZBEu6LW0lc0cXX2gRkQ8lg/rer34SPE3yEl4=";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
{
|
||||||
|
name = "Unbound Info";
|
||||||
|
options.path = pkgs.fetchurl {
|
||||||
|
name = "unbound-info.json";
|
||||||
|
url = "https://github.com/rfmoz/grafana-dashboards/raw/refs/heads/master/prometheus/unbound-full.json";
|
||||||
|
hash = "sha256-It6MNTaJyVXf5LvE55Bl20ij+Fxh1NWbsosXoLkpamM=";
|
||||||
|
};
|
||||||
|
}
|
||||||
{
|
{
|
||||||
name = "Caddy Hosts";
|
name = "Caddy Hosts";
|
||||||
options.path = pkgs.stdenv.mkDerivation {
|
options.path = pkgs.stdenv.mkDerivation {
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@
|
||||||
enable = true;
|
enable = true;
|
||||||
listenAddress = "127.0.0.7";
|
listenAddress = "127.0.0.7";
|
||||||
|
|
||||||
globalConfig.scrape_interval = "3s";
|
globalConfig.scrape_interval = "10s";
|
||||||
scrapeConfigs = [
|
scrapeConfigs = [
|
||||||
{
|
{
|
||||||
job_name = "node";
|
job_name = "node";
|
||||||
|
|
@ -16,6 +16,16 @@
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
{
|
||||||
|
job_name = "unbound";
|
||||||
|
static_configs = [
|
||||||
|
{
|
||||||
|
targets = with config.services.prometheus.exporters.unbound; [
|
||||||
|
"${listenAddress}:${toString port}"
|
||||||
|
];
|
||||||
|
}
|
||||||
|
];
|
||||||
|
}
|
||||||
{
|
{
|
||||||
job_name = "caddy";
|
job_name = "caddy";
|
||||||
static_configs = [
|
static_configs = [
|
||||||
|
|
@ -33,6 +43,12 @@
|
||||||
"processes"
|
"processes"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
unbound = {
|
||||||
|
enable = true;
|
||||||
|
listenAddress = "127.0.0.5";
|
||||||
|
unbound.host = "unix://${config.services.unbound.localControlSocketPath}";
|
||||||
|
group = config.services.unbound.group;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,10 @@
|
||||||
{
|
{
|
||||||
services.unbound = {
|
services.unbound = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
localControlSocketPath = "/run/unbound/control.sock";
|
||||||
settings = {
|
settings = {
|
||||||
server = {
|
server = {
|
||||||
|
extended-statistics = true;
|
||||||
rrset-cache-size = "64M";
|
rrset-cache-size = "64M";
|
||||||
msg-cache-size = "64M";
|
msg-cache-size = "64M";
|
||||||
discard-timeout = 4800;
|
discard-timeout = 4800;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue