Add libvirt, fix grafana uids

This commit is contained in:
Felix Albrigtsen 2023-04-16 20:30:31 +02:00
parent afc4b9f4bb
commit c2fd2ef75b
7 changed files with 568 additions and 556 deletions

View File

@ -25,7 +25,7 @@
}; };
clients = [ clients = [
{ {
url = "http://chapel.home.feal.no:3100/loki/api/v1/push"; url = "http://voyager.home.feal.no:3100/loki/api/v1/push";
} }
]; ];
scrape_configs = [ scrape_configs = [

View File

@ -3,33 +3,34 @@
{ {
imports = imports =
[ [
../../base.nix ../../base.nix
../../common/metrics-exporters.nix ../../common/metrics-exporters.nix
./hardware-configuration.nix ./hardware-configuration.nix
./containers.nix ./containers.nix
./vms.nix
./services/nginx ./services/nginx
./services/metrics ./services/metrics
# TODO:
# TODO: # x Boot
# x Boot # x Mount ZFS
# x Mount ZFS # x Monitoring server
# x Monitoring server # x Podman
# x Podman # x Flame
# x Flame # - Transmission
# - Transmission # - Jellyfin
# - Jellyfin # - NFS exports
# - NFS exports # - FreeBSD VM
# - FreeBSD VM # - Kali VM
# - Kali VM # - Kerberos / IPA
# - Kerberos / IPA ];
];
boot = { boot = {
zfs.extraPools = [ "tank" ]; zfs.extraPools = [ "tank" ];
supportedFilesystems = [ "zfs" ]; supportedFilesystems = [ "zfs" ];
kernelPackages = config.boot.zfs.package.latestCompatibleLinuxPackages; kernelPackages = config.boot.zfs.package.latestCompatibleLinuxPackages;
}; };
services.zfs.autoScrub.enable = true;
networking = { networking = {
hostName = "voyager"; hostName = "voyager";
@ -37,7 +38,7 @@
nameservers = [ "192.168.10.1" "1.1.1.1" ]; nameservers = [ "192.168.10.1" "1.1.1.1" ];
interfaces.eno1.ipv4 = { interfaces.eno1.ipv4 = {
addresses = [ addresses = [
{ address = "192.168.10.165"; prefixLength = 24; } { address = "192.168.10.165"; prefixLength = 24; }
]; ];
}; };
hostId = "8e84b235"; hostId = "8e84b235";
@ -46,10 +47,10 @@
environment.variables = { EDITOR = "vim"; }; environment.variables = { EDITOR = "vim"; };
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
((vim_configurable.override { }).customize{ ((vim_configurable.override { }).customize{
name = "vim"; name = "vim";
vimrcConfig.packages.myplugins = with pkgs.vimPlugins; { vimrcConfig.packages.myplugins = with pkgs.vimPlugins; {
start = [ vim-nix vim-lastplace ]; start = [ vim-nix vim-lastplace ];
opt = []; opt = [];
}; };
vimrcConfig.customRC = '' vimrcConfig.customRC = ''
" your custom vimrc " your custom vimrc
@ -82,7 +83,7 @@
} }
) )
zfs zfs
]; ];
networking.firewall.allowedTCPPorts = [ 22 ]; networking.firewall.allowedTCPPorts = [ 22 ];

View File

@ -34,7 +34,7 @@
"collapsed": false, "collapsed": false,
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "ZvP2BbO4z" "uid": "prom1"
}, },
"gridPos": { "gridPos": {
"h": 1, "h": 1,
@ -51,7 +51,7 @@
"columns": [], "columns": [],
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "ZvP2BbO4z" "uid": "prom1"
}, },
"fontSize": "100%", "fontSize": "100%",
"gridPos": { "gridPos": {
@ -106,7 +106,7 @@
"columns": [], "columns": [],
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "ZvP2BbO4z" "uid": "prom1"
}, },
"fontSize": "100%", "fontSize": "100%",
"gridPos": { "gridPos": {
@ -160,7 +160,7 @@
{ {
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "ZvP2BbO4z" "uid": "prom1"
}, },
"description": "Busy state of all CPU cores together", "description": "Busy state of all CPU cores together",
"fieldConfig": { "fieldConfig": {
@ -240,7 +240,7 @@
{ {
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "ZvP2BbO4z" "uid": "prom1"
}, },
"description": "Non available RAM memory", "description": "Non available RAM memory",
"fieldConfig": { "fieldConfig": {
@ -320,7 +320,7 @@
{ {
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "ZvP2BbO4z" "uid": "prom1"
}, },
"description": "average Wifi quality", "description": "average Wifi quality",
"fieldConfig": { "fieldConfig": {
@ -402,7 +402,7 @@
{ {
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "ZvP2BbO4z" "uid": "prom1"
}, },
"description": "Busy state of all CPU cores together (1 min average)", "description": "Busy state of all CPU cores together (1 min average)",
"fieldConfig": { "fieldConfig": {
@ -481,7 +481,7 @@
{ {
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "ZvP2BbO4z" "uid": "prom1"
}, },
"description": "Busy state of all CPU cores together (5 min average)", "description": "Busy state of all CPU cores together (5 min average)",
"fieldConfig": { "fieldConfig": {
@ -561,7 +561,7 @@
{ {
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "ZvP2BbO4z" "uid": "prom1"
}, },
"description": "Used Swap", "description": "Used Swap",
"fieldConfig": { "fieldConfig": {
@ -639,7 +639,7 @@
{ {
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "ZvP2BbO4z" "uid": "prom1"
}, },
"description": "Used Root FS", "description": "Used Root FS",
"fieldConfig": { "fieldConfig": {
@ -718,7 +718,7 @@
{ {
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "ZvP2BbO4z" "uid": "prom1"
}, },
"description": "Total number of CPU cores", "description": "Total number of CPU cores",
"fieldConfig": { "fieldConfig": {
@ -792,7 +792,7 @@
{ {
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "ZvP2BbO4z" "uid": "prom1"
}, },
"description": "all connected Wifi clients", "description": "all connected Wifi clients",
"fieldConfig": { "fieldConfig": {
@ -865,7 +865,7 @@
{ {
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "ZvP2BbO4z" "uid": "prom1"
}, },
"description": "System uptime", "description": "System uptime",
"fieldConfig": { "fieldConfig": {
@ -941,7 +941,7 @@
{ {
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "ZvP2BbO4z" "uid": "prom1"
}, },
"description": "Total RAM", "description": "Total RAM",
"fieldConfig": { "fieldConfig": {
@ -1016,7 +1016,7 @@
{ {
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "ZvP2BbO4z" "uid": "prom1"
}, },
"description": "Total network traffic", "description": "Total network traffic",
"fieldConfig": { "fieldConfig": {
@ -1091,7 +1091,7 @@
{ {
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "ZvP2BbO4z" "uid": "prom1"
}, },
"description": "Total NAT traffic (WAN)", "description": "Total NAT traffic (WAN)",
"fieldConfig": { "fieldConfig": {
@ -1166,7 +1166,7 @@
{ {
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "ZvP2BbO4z" "uid": "prom1"
}, },
"description": "Total SWAP", "description": "Total SWAP",
"fieldConfig": { "fieldConfig": {
@ -1241,7 +1241,7 @@
{ {
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "ZvP2BbO4z" "uid": "prom1"
}, },
"description": "Total RootFS", "description": "Total RootFS",
"fieldConfig": { "fieldConfig": {
@ -1322,7 +1322,7 @@
"collapsed": true, "collapsed": true,
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "ZvP2BbO4z" "uid": "prom1"
}, },
"gridPos": { "gridPos": {
"h": 1, "h": 1,
@ -1354,7 +1354,7 @@
"dashes": false, "dashes": false,
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "ZvP2BbO4z" "uid": "prom1"
}, },
"decimals": 2, "decimals": 2,
"description": "Basic CPU info", "description": "Basic CPU info",
@ -1536,7 +1536,7 @@
"dashes": false, "dashes": false,
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "ZvP2BbO4z" "uid": "prom1"
}, },
"decimals": 2, "decimals": 2,
"description": "Basic memory usage", "description": "Basic memory usage",
@ -1700,7 +1700,7 @@
"dashes": false, "dashes": false,
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "ZvP2BbO4z" "uid": "prom1"
}, },
"decimals": 2, "decimals": 2,
"description": "", "description": "",
@ -1884,7 +1884,7 @@
"dashes": false, "dashes": false,
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "ZvP2BbO4z" "uid": "prom1"
}, },
"decimals": 2, "decimals": 2,
"description": "", "description": "",
@ -2060,7 +2060,7 @@
"collapsed": true, "collapsed": true,
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "ZvP2BbO4z" "uid": "prom1"
}, },
"gridPos": { "gridPos": {
"h": 1, "h": 1,
@ -2095,7 +2095,7 @@
"dashes": false, "dashes": false,
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "ZvP2BbO4z" "uid": "prom1"
}, },
"decimals": 2, "decimals": 2,
"fill": 2, "fill": 2,
@ -2210,7 +2210,7 @@
"dashes": false, "dashes": false,
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "ZvP2BbO4z" "uid": "prom1"
}, },
"decimals": 2, "decimals": 2,
"fill": 2, "fill": 2,
@ -2334,7 +2334,7 @@
"dashes": false, "dashes": false,
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "ZvP2BbO4z" "uid": "prom1"
}, },
"decimals": 2, "decimals": 2,
"fill": 2, "fill": 2,
@ -2471,7 +2471,7 @@
"dashes": false, "dashes": false,
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "ZvP2BbO4z" "uid": "prom1"
}, },
"decimals": 2, "decimals": 2,
"fill": 2, "fill": 2,
@ -2593,7 +2593,7 @@
"dashes": false, "dashes": false,
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "ZvP2BbO4z" "uid": "prom1"
}, },
"decimals": 2, "decimals": 2,
"fill": 2, "fill": 2,
@ -2710,7 +2710,7 @@
"dashes": false, "dashes": false,
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "ZvP2BbO4z" "uid": "prom1"
}, },
"decimals": 2, "decimals": 2,
"fill": 2, "fill": 2,
@ -2825,7 +2825,7 @@
"dashes": false, "dashes": false,
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "ZvP2BbO4z" "uid": "prom1"
}, },
"decimals": 2, "decimals": 2,
"fill": 2, "fill": 2,
@ -2950,7 +2950,7 @@
"dashes": false, "dashes": false,
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "ZvP2BbO4z" "uid": "prom1"
}, },
"decimals": 2, "decimals": 2,
"fill": 2, "fill": 2,
@ -3058,7 +3058,7 @@
"dashes": false, "dashes": false,
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "ZvP2BbO4z" "uid": "prom1"
}, },
"decimals": 2, "decimals": 2,
"fill": 2, "fill": 2,
@ -3177,7 +3177,7 @@
"dashes": false, "dashes": false,
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "ZvP2BbO4z" "uid": "prom1"
}, },
"decimals": 2, "decimals": 2,
"fill": 2, "fill": 2,
@ -3286,7 +3286,7 @@
"dashes": false, "dashes": false,
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "ZvP2BbO4z" "uid": "prom1"
}, },
"decimals": 2, "decimals": 2,
"fill": 2, "fill": 2,
@ -3392,7 +3392,7 @@
"dashes": false, "dashes": false,
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "ZvP2BbO4z" "uid": "prom1"
}, },
"decimals": 2, "decimals": 2,
"fill": 2, "fill": 2,
@ -3490,7 +3490,7 @@
"collapsed": true, "collapsed": true,
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "ZvP2BbO4z" "uid": "prom1"
}, },
"gridPos": { "gridPos": {
"h": 1, "h": 1,
@ -3507,7 +3507,7 @@
"dashes": false, "dashes": false,
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "ZvP2BbO4z" "uid": "prom1"
}, },
"fill": 2, "fill": 2,
"fillGradient": 0, "fillGradient": 0,
@ -3601,7 +3601,7 @@
"dashes": false, "dashes": false,
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "ZvP2BbO4z" "uid": "prom1"
}, },
"fill": 2, "fill": 2,
"fillGradient": 0, "fillGradient": 0,
@ -3703,7 +3703,7 @@
"dashes": false, "dashes": false,
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "ZvP2BbO4z" "uid": "prom1"
}, },
"fill": 2, "fill": 2,
"fillGradient": 0, "fillGradient": 0,
@ -3790,7 +3790,7 @@
"dashes": false, "dashes": false,
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "ZvP2BbO4z" "uid": "prom1"
}, },
"description": "", "description": "",
"fill": 2, "fill": 2,
@ -3886,7 +3886,7 @@
"collapsed": true, "collapsed": true,
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "ZvP2BbO4z" "uid": "prom1"
}, },
"gridPos": { "gridPos": {
"h": 1, "h": 1,
@ -3899,7 +3899,7 @@
{ {
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "ZvP2BbO4z" "uid": "prom1"
}, },
"fieldConfig": { "fieldConfig": {
"defaults": { "defaults": {
@ -3970,7 +3970,7 @@
{ {
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "ZvP2BbO4z" "uid": "prom1"
}, },
"description": "Non available RAM memory", "description": "Non available RAM memory",
"fieldConfig": { "fieldConfig": {
@ -4051,7 +4051,7 @@
{ {
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "ZvP2BbO4z" "uid": "prom1"
}, },
"description": "Non available RAM memory", "description": "Non available RAM memory",
"fieldConfig": { "fieldConfig": {
@ -4132,7 +4132,7 @@
{ {
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "ZvP2BbO4z" "uid": "prom1"
}, },
"description": "Non available RAM memory", "description": "Non available RAM memory",
"fieldConfig": { "fieldConfig": {
@ -4217,7 +4217,7 @@
"dashes": false, "dashes": false,
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "ZvP2BbO4z" "uid": "prom1"
}, },
"fill": 1, "fill": 1,
"fillGradient": 0, "fillGradient": 0,
@ -4298,7 +4298,7 @@
"dashes": false, "dashes": false,
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "ZvP2BbO4z" "uid": "prom1"
}, },
"fill": 1, "fill": 1,
"fillGradient": 0, "fillGradient": 0,
@ -4377,7 +4377,7 @@
"dashes": false, "dashes": false,
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "ZvP2BbO4z" "uid": "prom1"
}, },
"description": "", "description": "",
"fill": 1, "fill": 1,
@ -4459,7 +4459,7 @@
"dashes": false, "dashes": false,
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "ZvP2BbO4z" "uid": "prom1"
}, },
"fill": 1, "fill": 1,
"fillGradient": 0, "fillGradient": 0,
@ -4540,7 +4540,7 @@
"dashes": false, "dashes": false,
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "ZvP2BbO4z" "uid": "prom1"
}, },
"description": "", "description": "",
"fill": 1, "fill": 1,
@ -4622,7 +4622,7 @@
"dashes": false, "dashes": false,
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "ZvP2BbO4z" "uid": "prom1"
}, },
"description": "", "description": "",
"fill": 1, "fill": 1,
@ -4704,7 +4704,7 @@
"dashes": false, "dashes": false,
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "ZvP2BbO4z" "uid": "prom1"
}, },
"fill": 1, "fill": 1,
"fillGradient": 0, "fillGradient": 0,
@ -4786,7 +4786,7 @@
"collapsed": false, "collapsed": false,
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "ZvP2BbO4z" "uid": "prom1"
}, },
"gridPos": { "gridPos": {
"h": 1, "h": 1,
@ -4806,7 +4806,7 @@
"dashes": false, "dashes": false,
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "ZvP2BbO4z" "uid": "prom1"
}, },
"fieldConfig": { "fieldConfig": {
"defaults": { "defaults": {
@ -4895,7 +4895,7 @@
"dashes": false, "dashes": false,
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "ZvP2BbO4z" "uid": "prom1"
}, },
"fieldConfig": { "fieldConfig": {
"defaults": { "defaults": {
@ -4989,7 +4989,7 @@
"dashes": false, "dashes": false,
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "ZvP2BbO4z" "uid": "prom1"
}, },
"fieldConfig": { "fieldConfig": {
"defaults": { "defaults": {
@ -5131,7 +5131,7 @@
"dashes": false, "dashes": false,
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "ZvP2BbO4z" "uid": "prom1"
}, },
"fieldConfig": { "fieldConfig": {
"defaults": { "defaults": {
@ -5268,7 +5268,7 @@
"dashes": false, "dashes": false,
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "ZvP2BbO4z" "uid": "prom1"
}, },
"fieldConfig": { "fieldConfig": {
"defaults": { "defaults": {
@ -5357,7 +5357,7 @@
"dashes": false, "dashes": false,
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "ZvP2BbO4z" "uid": "prom1"
}, },
"fieldConfig": { "fieldConfig": {
"defaults": { "defaults": {
@ -5446,7 +5446,7 @@
"dashes": false, "dashes": false,
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "ZvP2BbO4z" "uid": "prom1"
}, },
"fieldConfig": { "fieldConfig": {
"defaults": { "defaults": {
@ -5540,7 +5540,7 @@
"collapsed": true, "collapsed": true,
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "ZvP2BbO4z" "uid": "prom1"
}, },
"gridPos": { "gridPos": {
"h": 1, "h": 1,
@ -5557,7 +5557,7 @@
"dashes": false, "dashes": false,
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "ZvP2BbO4z" "uid": "prom1"
}, },
"fill": 2, "fill": 2,
"fillGradient": 0, "fillGradient": 0,
@ -5688,7 +5688,7 @@
"dashes": false, "dashes": false,
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "ZvP2BbO4z" "uid": "prom1"
}, },
"fill": 2, "fill": 2,
"fillGradient": 0, "fillGradient": 0,
@ -5819,7 +5819,7 @@
"dashes": false, "dashes": false,
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "ZvP2BbO4z" "uid": "prom1"
}, },
"fill": 2, "fill": 2,
"fillGradient": 0, "fillGradient": 0,
@ -5942,7 +5942,7 @@
"dashes": false, "dashes": false,
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "ZvP2BbO4z" "uid": "prom1"
}, },
"fill": 2, "fill": 2,
"fillGradient": 0, "fillGradient": 0,
@ -6073,7 +6073,7 @@
"dashes": false, "dashes": false,
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "ZvP2BbO4z" "uid": "prom1"
}, },
"fill": 2, "fill": 2,
"fillGradient": 0, "fillGradient": 0,
@ -6197,7 +6197,7 @@
"dashes": false, "dashes": false,
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "ZvP2BbO4z" "uid": "prom1"
}, },
"fill": 2, "fill": 2,
"fillGradient": 0, "fillGradient": 0,
@ -6328,7 +6328,7 @@
"dashes": false, "dashes": false,
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "ZvP2BbO4z" "uid": "prom1"
}, },
"fill": 2, "fill": 2,
"fillGradient": 0, "fillGradient": 0,
@ -6439,7 +6439,7 @@
"dashes": false, "dashes": false,
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "ZvP2BbO4z" "uid": "prom1"
}, },
"fill": 2, "fill": 2,
"fillGradient": 0, "fillGradient": 0,
@ -6550,7 +6550,7 @@
"dashes": false, "dashes": false,
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "ZvP2BbO4z" "uid": "prom1"
}, },
"fill": 2, "fill": 2,
"fillGradient": 0, "fillGradient": 0,
@ -6651,7 +6651,7 @@
"collapsed": true, "collapsed": true,
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "ZvP2BbO4z" "uid": "prom1"
}, },
"gridPos": { "gridPos": {
"h": 1, "h": 1,
@ -6668,7 +6668,7 @@
"dashes": false, "dashes": false,
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "ZvP2BbO4z" "uid": "prom1"
}, },
"description": "", "description": "",
"fieldConfig": { "fieldConfig": {
@ -6762,7 +6762,7 @@
"dashes": false, "dashes": false,
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "ZvP2BbO4z" "uid": "prom1"
}, },
"description": "", "description": "",
"fieldConfig": { "fieldConfig": {
@ -6868,7 +6868,7 @@
}, },
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "ZvP2BbO4z" "uid": "prom1"
}, },
"definition": "", "definition": "",
"hide": 0, "hide": 0,
@ -6898,7 +6898,7 @@
}, },
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "ZvP2BbO4z" "uid": "prom1"
}, },
"definition": "", "definition": "",
"hide": 0, "hide": 0,
@ -6928,7 +6928,7 @@
}, },
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "ZvP2BbO4z" "uid": "prom1"
}, },
"definition": "", "definition": "",
"hide": 2, "hide": 2,
@ -6958,7 +6958,7 @@
}, },
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "ZvP2BbO4z" "uid": "prom1"
}, },
"definition": "", "definition": "",
"hide": 0, "hide": 0,

View File

@ -49,7 +49,7 @@
"collapsed": false, "collapsed": false,
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "ZvP2BbO4z" "uid": "prom1"
}, },
"gridPos": { "gridPos": {
"h": 1, "h": 1,
@ -65,7 +65,7 @@
{ {
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "ZvP2BbO4z" "uid": "prom1"
}, },
"description": "", "description": "",
"fieldConfig": { "fieldConfig": {
@ -564,7 +564,7 @@
{ {
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "ZvP2BbO4z" "uid": "prom1"
}, },
"description": "Enter the number of Synology's you are monitoring in the NASDevices variable. A positive Number here means there is a NAS down or not being scraped for data. A negative Number means you are collecting data from more Synology's than the system expects in the NASDevices variable.", "description": "Enter the number of Synology's you are monitoring in the NASDevices variable. A positive Number here means there is a NAS down or not being scraped for data. A negative Number means you are collecting data from more Synology's than the system expects in the NASDevices variable.",
"fieldConfig": { "fieldConfig": {
@ -733,7 +733,7 @@
{ {
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "ZvP2BbO4z" "uid": "prom1"
}, },
"fieldConfig": { "fieldConfig": {
"defaults": { "defaults": {
@ -889,7 +889,7 @@
{ {
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "ZvP2BbO4z" "uid": "prom1"
}, },
"fieldConfig": { "fieldConfig": {
"defaults": { "defaults": {
@ -1026,7 +1026,7 @@
{ {
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "ZvP2BbO4z" "uid": "prom1"
}, },
"fieldConfig": { "fieldConfig": {
"defaults": { "defaults": {
@ -1160,7 +1160,7 @@
{ {
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "ZvP2BbO4z" "uid": "prom1"
}, },
"fieldConfig": { "fieldConfig": {
"defaults": { "defaults": {
@ -1295,7 +1295,7 @@
{ {
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "ZvP2BbO4z" "uid": "prom1"
}, },
"description": "", "description": "",
"fieldConfig": { "fieldConfig": {
@ -1398,7 +1398,7 @@
"collapsed": false, "collapsed": false,
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "ZvP2BbO4z" "uid": "prom1"
}, },
"gridPos": { "gridPos": {
"h": 1, "h": 1,
@ -1418,7 +1418,7 @@
"dashes": false, "dashes": false,
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "ZvP2BbO4z" "uid": "prom1"
}, },
"fieldConfig": { "fieldConfig": {
"defaults": { "defaults": {
@ -1557,7 +1557,7 @@
"dashes": false, "dashes": false,
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "ZvP2BbO4z" "uid": "prom1"
}, },
"fieldConfig": { "fieldConfig": {
"defaults": { "defaults": {
@ -1697,7 +1697,7 @@
"dashes": false, "dashes": false,
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "ZvP2BbO4z" "uid": "prom1"
}, },
"fieldConfig": { "fieldConfig": {
"defaults": { "defaults": {
@ -1858,7 +1858,7 @@
"dashes": false, "dashes": false,
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "ZvP2BbO4z" "uid": "prom1"
}, },
"fieldConfig": { "fieldConfig": {
"defaults": { "defaults": {
@ -2021,7 +2021,7 @@
"dashes": false, "dashes": false,
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "ZvP2BbO4z" "uid": "prom1"
}, },
"decimals": 2, "decimals": 2,
"description": "", "description": "",
@ -2175,7 +2175,7 @@
"dashes": false, "dashes": false,
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "ZvP2BbO4z" "uid": "prom1"
}, },
"fill": 10, "fill": 10,
"fillGradient": 0, "fillGradient": 0,
@ -2307,7 +2307,7 @@
"dashes": false, "dashes": false,
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "ZvP2BbO4z" "uid": "prom1"
}, },
"description": "", "description": "",
"fill": 1, "fill": 1,
@ -2399,7 +2399,7 @@
"dashes": false, "dashes": false,
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "ZvP2BbO4z" "uid": "prom1"
}, },
"description": "", "description": "",
"fill": 0, "fill": 0,
@ -2490,7 +2490,7 @@
"collapsed": false, "collapsed": false,
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "ZvP2BbO4z" "uid": "prom1"
}, },
"gridPos": { "gridPos": {
"h": 1, "h": 1,
@ -2506,7 +2506,7 @@
{ {
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "ZvP2BbO4z" "uid": "prom1"
}, },
"fieldConfig": { "fieldConfig": {
"defaults": { "defaults": {
@ -2862,7 +2862,7 @@
{ {
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "ZvP2BbO4z" "uid": "prom1"
}, },
"fieldConfig": { "fieldConfig": {
"defaults": { "defaults": {
@ -3140,7 +3140,7 @@
"collapsed": false, "collapsed": false,
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "ZvP2BbO4z" "uid": "prom1"
}, },
"gridPos": { "gridPos": {
"h": 1, "h": 1,
@ -3157,7 +3157,7 @@
{ {
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "ZvP2BbO4z" "uid": "prom1"
}, },
"description": "", "description": "",
"fieldConfig": { "fieldConfig": {
@ -3313,7 +3313,7 @@
"dashes": false, "dashes": false,
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "ZvP2BbO4z" "uid": "prom1"
}, },
"description": "", "description": "",
"fieldConfig": { "fieldConfig": {
@ -3450,7 +3450,7 @@
{ {
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "ZvP2BbO4z" "uid": "prom1"
}, },
"description": "", "description": "",
"fieldConfig": { "fieldConfig": {
@ -3515,7 +3515,7 @@
{ {
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "ZvP2BbO4z" "uid": "prom1"
}, },
"description": "", "description": "",
"fieldConfig": { "fieldConfig": {
@ -3594,7 +3594,7 @@
"collapsed": true, "collapsed": true,
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "ZvP2BbO4z" "uid": "prom1"
}, },
"gridPos": { "gridPos": {
"h": 1, "h": 1,
@ -3607,7 +3607,7 @@
{ {
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "ZvP2BbO4z" "uid": "prom1"
}, },
"description": "", "description": "",
"fieldConfig": { "fieldConfig": {
@ -3681,7 +3681,7 @@
"dashes": false, "dashes": false,
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "ZvP2BbO4z" "uid": "prom1"
}, },
"description": "", "description": "",
"fieldConfig": { "fieldConfig": {
@ -3817,7 +3817,7 @@
{ {
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "ZvP2BbO4z" "uid": "prom1"
}, },
"description": "", "description": "",
"fieldConfig": { "fieldConfig": {
@ -3899,7 +3899,7 @@
"collapsed": true, "collapsed": true,
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "ZvP2BbO4z" "uid": "prom1"
}, },
"gridPos": { "gridPos": {
"h": 1, "h": 1,
@ -3916,7 +3916,7 @@
"dashes": false, "dashes": false,
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "ZvP2BbO4z" "uid": "prom1"
}, },
"description": "", "description": "",
"fieldConfig": { "fieldConfig": {
@ -4022,7 +4022,7 @@
"dashes": false, "dashes": false,
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "ZvP2BbO4z" "uid": "prom1"
}, },
"description": "", "description": "",
"fieldConfig": { "fieldConfig": {
@ -4156,7 +4156,7 @@
"dashes": false, "dashes": false,
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "ZvP2BbO4z" "uid": "prom1"
}, },
"description": "", "description": "",
"fieldConfig": { "fieldConfig": {
@ -4265,7 +4265,7 @@
"collapsed": true, "collapsed": true,
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "ZvP2BbO4z" "uid": "prom1"
}, },
"gridPos": { "gridPos": {
"h": 1, "h": 1,
@ -4282,7 +4282,7 @@
"dashes": false, "dashes": false,
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "ZvP2BbO4z" "uid": "prom1"
}, },
"description": "", "description": "",
"fieldConfig": { "fieldConfig": {
@ -4387,7 +4387,7 @@
"dashes": false, "dashes": false,
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "ZvP2BbO4z" "uid": "prom1"
}, },
"description": "", "description": "",
"fieldConfig": { "fieldConfig": {
@ -4492,7 +4492,7 @@
"dashes": false, "dashes": false,
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "ZvP2BbO4z" "uid": "prom1"
}, },
"description": "", "description": "",
"fieldConfig": { "fieldConfig": {
@ -4597,7 +4597,7 @@
"dashes": false, "dashes": false,
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "ZvP2BbO4z" "uid": "prom1"
}, },
"description": "", "description": "",
"fieldConfig": { "fieldConfig": {
@ -4702,7 +4702,7 @@
"dashes": false, "dashes": false,
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "ZvP2BbO4z" "uid": "prom1"
}, },
"description": "", "description": "",
"fieldConfig": { "fieldConfig": {
@ -4807,7 +4807,7 @@
"dashes": false, "dashes": false,
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "ZvP2BbO4z" "uid": "prom1"
}, },
"description": "The number of\ndata writes to SSD\nfor the first time", "description": "The number of\ndata writes to SSD\nfor the first time",
"fieldConfig": { "fieldConfig": {
@ -4901,7 +4901,7 @@
"collapsed": true, "collapsed": true,
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "ZvP2BbO4z" "uid": "prom1"
}, },
"gridPos": { "gridPos": {
"h": 1, "h": 1,
@ -4914,7 +4914,7 @@
{ {
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "ZvP2BbO4z" "uid": "prom1"
}, },
"description": "", "description": "",
"fieldConfig": { "fieldConfig": {
@ -4988,7 +4988,7 @@
"dashes": false, "dashes": false,
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "ZvP2BbO4z" "uid": "prom1"
}, },
"description": "", "description": "",
"fieldConfig": { "fieldConfig": {
@ -5124,7 +5124,7 @@
{ {
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "ZvP2BbO4z" "uid": "prom1"
}, },
"description": "", "description": "",
"fieldConfig": { "fieldConfig": {
@ -5206,7 +5206,7 @@
"collapsed": true, "collapsed": true,
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "ZvP2BbO4z" "uid": "prom1"
}, },
"gridPos": { "gridPos": {
"h": 1, "h": 1,
@ -5219,7 +5219,7 @@
{ {
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "ZvP2BbO4z" "uid": "prom1"
}, },
"fieldConfig": { "fieldConfig": {
"defaults": { "defaults": {
@ -5526,7 +5526,7 @@
"dashes": false, "dashes": false,
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "ZvP2BbO4z" "uid": "prom1"
}, },
"description": "", "description": "",
"editable": true, "editable": true,
@ -5647,7 +5647,7 @@
"dashes": false, "dashes": false,
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "ZvP2BbO4z" "uid": "prom1"
}, },
"description": "", "description": "",
"editable": true, "editable": true,
@ -5790,7 +5790,7 @@
"dashes": false, "dashes": false,
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "ZvP2BbO4z" "uid": "prom1"
}, },
"description": "", "description": "",
"editable": true, "editable": true,
@ -5925,7 +5925,7 @@
"collapsed": true, "collapsed": true,
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "ZvP2BbO4z" "uid": "prom1"
}, },
"gridPos": { "gridPos": {
"h": 1, "h": 1,
@ -5942,7 +5942,7 @@
"dashes": false, "dashes": false,
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "ZvP2BbO4z" "uid": "prom1"
}, },
"description": "", "description": "",
"fieldConfig": { "fieldConfig": {
@ -6047,7 +6047,7 @@
"dashes": false, "dashes": false,
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "ZvP2BbO4z" "uid": "prom1"
}, },
"fieldConfig": { "fieldConfig": {
"defaults": {}, "defaults": {},
@ -6153,7 +6153,7 @@
"collapsed": true, "collapsed": true,
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "ZvP2BbO4z" "uid": "prom1"
}, },
"gridPos": { "gridPos": {
"h": 1, "h": 1,
@ -6166,7 +6166,7 @@
{ {
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "ZvP2BbO4z" "uid": "prom1"
}, },
"fieldConfig": { "fieldConfig": {
"defaults": { "defaults": {
@ -6228,7 +6228,7 @@
{ {
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "ZvP2BbO4z" "uid": "prom1"
}, },
"description": "", "description": "",
"fieldConfig": { "fieldConfig": {
@ -6451,7 +6451,7 @@
{ {
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "ZvP2BbO4z" "uid": "prom1"
}, },
"fieldConfig": { "fieldConfig": {
"defaults": { "defaults": {
@ -6649,7 +6649,7 @@
}, },
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "ZvP2BbO4z" "uid": "prom1"
}, },
"definition": "label_values(ssCpuUser, job)", "definition": "label_values(ssCpuUser, job)",
"hide": 0, "hide": 0,
@ -6679,7 +6679,7 @@
}, },
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "ZvP2BbO4z" "uid": "prom1"
}, },
"definition": "query_result(ssCpuUser{job=~'$JobName'})", "definition": "query_result(ssCpuUser{job=~'$JobName'})",
"hide": 0, "hide": 0,
@ -6706,7 +6706,7 @@
}, },
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "ZvP2BbO4z" "uid": "prom1"
}, },
"definition": "label_values(ifName{job=~'$JobName',instance=~'$Device'},ifName)", "definition": "label_values(ifName{job=~'$JobName',instance=~'$Device'},ifName)",
"description": "Regex controls interfaces to show. Default: ^eth.*|^bond.*|^docker[0-9]", "description": "Regex controls interfaces to show. Default: ^eth.*|^bond.*|^docker[0-9]",
@ -6734,7 +6734,7 @@
}, },
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "ZvP2BbO4z" "uid": "prom1"
}, },
"definition": "label_values(ifName{job=~'$JobName',instance=~'$Device'},ifName)", "definition": "label_values(ifName{job=~'$JobName',instance=~'$Device'},ifName)",
"description": "Physical Network Interfaces", "description": "Physical Network Interfaces",
@ -6765,7 +6765,7 @@
}, },
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "ZvP2BbO4z" "uid": "prom1"
}, },
"definition": "label_values(ifType_info{job=~'$JobName',instance=~'$Device'},ifName)", "definition": "label_values(ifType_info{job=~'$JobName',instance=~'$Device'},ifName)",
"description": "Bonds an VLans", "description": "Bonds an VLans",
@ -6796,7 +6796,7 @@
}, },
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "ZvP2BbO4z" "uid": "prom1"
}, },
"definition": "label_values(diskID{job=~'$JobName',instance=~'$Device'},diskID)", "definition": "label_values(diskID{job=~'$JobName',instance=~'$Device'},diskID)",
"hide": 2, "hide": 2,
@ -6826,7 +6826,7 @@
}, },
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "ZvP2BbO4z" "uid": "prom1"
}, },
"definition": "label_values(diskID{job=~'$JobName',instance=~'$Device'},diskID)", "definition": "label_values(diskID{job=~'$JobName',instance=~'$Device'},diskID)",
"hide": 2, "hide": 2,
@ -6856,7 +6856,7 @@
}, },
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "ZvP2BbO4z" "uid": "prom1"
}, },
"definition": "label_values(raidName{job=~'$JobName',instance=~'$Device'},raidName)", "definition": "label_values(raidName{job=~'$JobName',instance=~'$Device'},raidName)",
"hide": 0, "hide": 0,
@ -6884,7 +6884,7 @@
}, },
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "ZvP2BbO4z" "uid": "prom1"
}, },
"definition": "label_values(storageIODevice{job=~'$JobName',instance=~'$Device'},storageIODevice)", "definition": "label_values(storageIODevice{job=~'$JobName',instance=~'$Device'},storageIODevice)",
"hide": 0, "hide": 0,
@ -6912,7 +6912,7 @@
}, },
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "ZvP2BbO4z" "uid": "prom1"
}, },
"definition": "label_values(spaceIODevice{job=~'$JobName',instance=~'$Device'},spaceIODevice)", "definition": "label_values(spaceIODevice{job=~'$JobName',instance=~'$Device'},spaceIODevice)",
"hide": 0, "hide": 0,
@ -6940,7 +6940,7 @@
}, },
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "ZvP2BbO4z" "uid": "prom1"
}, },
"definition": "label_values(hrStorageDescr{job=~'$JobName',instance=~'$Device'},hrStorageDescr)", "definition": "label_values(hrStorageDescr{job=~'$JobName',instance=~'$Device'},hrStorageDescr)",
"description": "Regex controls the hrStorageDescr devices to hide. Memory is hidden here and used in the \"hrMemoryDescr\" variable instead. Default: /^(?!/run|/sys/.*|/dev|.*@docker.*|.*[M|m]emory)/", "description": "Regex controls the hrStorageDescr devices to hide. Memory is hidden here and used in the \"hrMemoryDescr\" variable instead. Default: /^(?!/run|/sys/.*|/dev|.*@docker.*|.*[M|m]emory)/",
@ -6969,7 +6969,7 @@
}, },
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "ZvP2BbO4z" "uid": "prom1"
}, },
"definition": "label_values(flashCacheSSDDev{job=~'$JobName',instance=~'$Device'},flashCacheSSDDev)", "definition": "label_values(flashCacheSSDDev{job=~'$JobName',instance=~'$Device'},flashCacheSSDDev)",
"hide": 0, "hide": 0,
@ -6997,7 +6997,7 @@
}, },
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "ZvP2BbO4z" "uid": "prom1"
}, },
"definition": "label_values(hrStorageDescr{job=~'$JobName',instance=~'$Device'},hrStorageDescr)", "definition": "label_values(hrStorageDescr{job=~'$JobName',instance=~'$Device'},hrStorageDescr)",
"description": "Regex controls file hrStorageDescr devices to show here. Default: /.*[M|m]emory.*/", "description": "Regex controls file hrStorageDescr devices to show here. Default: /.*[M|m]emory.*/",
@ -7026,7 +7026,7 @@
}, },
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "ZvP2BbO4z" "uid": "prom1"
}, },
"definition": "label_values(diskSMARTInfoDevName{job=~'$JobName',instance=~'$Device'},diskSMARTInfoDevName)", "definition": "label_values(diskSMARTInfoDevName{job=~'$JobName',instance=~'$Device'},diskSMARTInfoDevName)",
"hide": 0, "hide": 0,
@ -7054,7 +7054,7 @@
}, },
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "ZvP2BbO4z" "uid": "prom1"
}, },
"definition": "label_values(serviceName{job=~'$JobName',instance=~'$Device'},serviceName)", "definition": "label_values(serviceName{job=~'$JobName',instance=~'$Device'},serviceName)",
"description": "Regex controls which services to hide. Default: /^(?!TELNET|FTP|AFP|OTHER)/", "description": "Regex controls which services to hide. Default: /^(?!TELNET|FTP|AFP|OTHER)/",

View File

@ -6,7 +6,7 @@ in {
services.grafana = { services.grafana = {
enable = true; enable = true;
settings.server = { settings.server = {
domain = "grafana.feal.no"; domain = "grafana.home.feal.no";
http_port = 2342; http_port = 2342;
http_addr = "127.0.0.1"; http_addr = "127.0.0.1";
}; };
@ -17,6 +17,7 @@ in {
{ {
name = "Prometheus"; name = "Prometheus";
type = "prometheus"; type = "prometheus";
uid = "prom1";
url = ("http://${config.services.prometheus.listenAddress}:${toString config.services.prometheus.port}"); url = ("http://${config.services.prometheus.listenAddress}:${toString config.services.prometheus.port}");
isDefault = true; isDefault = true;
} }

10
hosts/voyager/vms.nix Normal file
View File

@ -0,0 +1,10 @@
{ config, pkgs, lib, ... }:
{
# WIP
security.polkit.enable = true; # Required for libvirt
virtualisation.libvirtd.enable = true;
programs.dconf.enable = true;
environment.systemPackages = with pkgs; [ virt-manager ];
users.users.felixalb.extraGroups = [ "libvirtd" ];
}