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 = [
{
url = "http://chapel.home.feal.no:3100/loki/api/v1/push";
url = "http://voyager.home.feal.no:3100/loki/api/v1/push";
}
];
scrape_configs = [

View File

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

View File

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

View File

@ -49,7 +49,7 @@
"collapsed": false,
"datasource": {
"type": "prometheus",
"uid": "ZvP2BbO4z"
"uid": "prom1"
},
"gridPos": {
"h": 1,
@ -65,7 +65,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "ZvP2BbO4z"
"uid": "prom1"
},
"description": "",
"fieldConfig": {
@ -564,7 +564,7 @@
{
"datasource": {
"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.",
"fieldConfig": {
@ -733,7 +733,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "ZvP2BbO4z"
"uid": "prom1"
},
"fieldConfig": {
"defaults": {
@ -889,7 +889,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "ZvP2BbO4z"
"uid": "prom1"
},
"fieldConfig": {
"defaults": {
@ -1026,7 +1026,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "ZvP2BbO4z"
"uid": "prom1"
},
"fieldConfig": {
"defaults": {
@ -1160,7 +1160,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "ZvP2BbO4z"
"uid": "prom1"
},
"fieldConfig": {
"defaults": {
@ -1295,7 +1295,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "ZvP2BbO4z"
"uid": "prom1"
},
"description": "",
"fieldConfig": {
@ -1398,7 +1398,7 @@
"collapsed": false,
"datasource": {
"type": "prometheus",
"uid": "ZvP2BbO4z"
"uid": "prom1"
},
"gridPos": {
"h": 1,
@ -1418,7 +1418,7 @@
"dashes": false,
"datasource": {
"type": "prometheus",
"uid": "ZvP2BbO4z"
"uid": "prom1"
},
"fieldConfig": {
"defaults": {
@ -1557,7 +1557,7 @@
"dashes": false,
"datasource": {
"type": "prometheus",
"uid": "ZvP2BbO4z"
"uid": "prom1"
},
"fieldConfig": {
"defaults": {
@ -1697,7 +1697,7 @@
"dashes": false,
"datasource": {
"type": "prometheus",
"uid": "ZvP2BbO4z"
"uid": "prom1"
},
"fieldConfig": {
"defaults": {
@ -1858,7 +1858,7 @@
"dashes": false,
"datasource": {
"type": "prometheus",
"uid": "ZvP2BbO4z"
"uid": "prom1"
},
"fieldConfig": {
"defaults": {
@ -2021,7 +2021,7 @@
"dashes": false,
"datasource": {
"type": "prometheus",
"uid": "ZvP2BbO4z"
"uid": "prom1"
},
"decimals": 2,
"description": "",
@ -2175,7 +2175,7 @@
"dashes": false,
"datasource": {
"type": "prometheus",
"uid": "ZvP2BbO4z"
"uid": "prom1"
},
"fill": 10,
"fillGradient": 0,
@ -2307,7 +2307,7 @@
"dashes": false,
"datasource": {
"type": "prometheus",
"uid": "ZvP2BbO4z"
"uid": "prom1"
},
"description": "",
"fill": 1,
@ -2399,7 +2399,7 @@
"dashes": false,
"datasource": {
"type": "prometheus",
"uid": "ZvP2BbO4z"
"uid": "prom1"
},
"description": "",
"fill": 0,
@ -2490,7 +2490,7 @@
"collapsed": false,
"datasource": {
"type": "prometheus",
"uid": "ZvP2BbO4z"
"uid": "prom1"
},
"gridPos": {
"h": 1,
@ -2506,7 +2506,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "ZvP2BbO4z"
"uid": "prom1"
},
"fieldConfig": {
"defaults": {
@ -2862,7 +2862,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "ZvP2BbO4z"
"uid": "prom1"
},
"fieldConfig": {
"defaults": {
@ -3140,7 +3140,7 @@
"collapsed": false,
"datasource": {
"type": "prometheus",
"uid": "ZvP2BbO4z"
"uid": "prom1"
},
"gridPos": {
"h": 1,
@ -3157,7 +3157,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "ZvP2BbO4z"
"uid": "prom1"
},
"description": "",
"fieldConfig": {
@ -3313,7 +3313,7 @@
"dashes": false,
"datasource": {
"type": "prometheus",
"uid": "ZvP2BbO4z"
"uid": "prom1"
},
"description": "",
"fieldConfig": {
@ -3450,7 +3450,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "ZvP2BbO4z"
"uid": "prom1"
},
"description": "",
"fieldConfig": {
@ -3515,7 +3515,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "ZvP2BbO4z"
"uid": "prom1"
},
"description": "",
"fieldConfig": {
@ -3594,7 +3594,7 @@
"collapsed": true,
"datasource": {
"type": "prometheus",
"uid": "ZvP2BbO4z"
"uid": "prom1"
},
"gridPos": {
"h": 1,
@ -3607,7 +3607,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "ZvP2BbO4z"
"uid": "prom1"
},
"description": "",
"fieldConfig": {
@ -3681,7 +3681,7 @@
"dashes": false,
"datasource": {
"type": "prometheus",
"uid": "ZvP2BbO4z"
"uid": "prom1"
},
"description": "",
"fieldConfig": {
@ -3817,7 +3817,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "ZvP2BbO4z"
"uid": "prom1"
},
"description": "",
"fieldConfig": {
@ -3899,7 +3899,7 @@
"collapsed": true,
"datasource": {
"type": "prometheus",
"uid": "ZvP2BbO4z"
"uid": "prom1"
},
"gridPos": {
"h": 1,
@ -3916,7 +3916,7 @@
"dashes": false,
"datasource": {
"type": "prometheus",
"uid": "ZvP2BbO4z"
"uid": "prom1"
},
"description": "",
"fieldConfig": {
@ -4022,7 +4022,7 @@
"dashes": false,
"datasource": {
"type": "prometheus",
"uid": "ZvP2BbO4z"
"uid": "prom1"
},
"description": "",
"fieldConfig": {
@ -4156,7 +4156,7 @@
"dashes": false,
"datasource": {
"type": "prometheus",
"uid": "ZvP2BbO4z"
"uid": "prom1"
},
"description": "",
"fieldConfig": {
@ -4265,7 +4265,7 @@
"collapsed": true,
"datasource": {
"type": "prometheus",
"uid": "ZvP2BbO4z"
"uid": "prom1"
},
"gridPos": {
"h": 1,
@ -4282,7 +4282,7 @@
"dashes": false,
"datasource": {
"type": "prometheus",
"uid": "ZvP2BbO4z"
"uid": "prom1"
},
"description": "",
"fieldConfig": {
@ -4387,7 +4387,7 @@
"dashes": false,
"datasource": {
"type": "prometheus",
"uid": "ZvP2BbO4z"
"uid": "prom1"
},
"description": "",
"fieldConfig": {
@ -4492,7 +4492,7 @@
"dashes": false,
"datasource": {
"type": "prometheus",
"uid": "ZvP2BbO4z"
"uid": "prom1"
},
"description": "",
"fieldConfig": {
@ -4597,7 +4597,7 @@
"dashes": false,
"datasource": {
"type": "prometheus",
"uid": "ZvP2BbO4z"
"uid": "prom1"
},
"description": "",
"fieldConfig": {
@ -4702,7 +4702,7 @@
"dashes": false,
"datasource": {
"type": "prometheus",
"uid": "ZvP2BbO4z"
"uid": "prom1"
},
"description": "",
"fieldConfig": {
@ -4807,7 +4807,7 @@
"dashes": false,
"datasource": {
"type": "prometheus",
"uid": "ZvP2BbO4z"
"uid": "prom1"
},
"description": "The number of\ndata writes to SSD\nfor the first time",
"fieldConfig": {
@ -4901,7 +4901,7 @@
"collapsed": true,
"datasource": {
"type": "prometheus",
"uid": "ZvP2BbO4z"
"uid": "prom1"
},
"gridPos": {
"h": 1,
@ -4914,7 +4914,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "ZvP2BbO4z"
"uid": "prom1"
},
"description": "",
"fieldConfig": {
@ -4988,7 +4988,7 @@
"dashes": false,
"datasource": {
"type": "prometheus",
"uid": "ZvP2BbO4z"
"uid": "prom1"
},
"description": "",
"fieldConfig": {
@ -5124,7 +5124,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "ZvP2BbO4z"
"uid": "prom1"
},
"description": "",
"fieldConfig": {
@ -5206,7 +5206,7 @@
"collapsed": true,
"datasource": {
"type": "prometheus",
"uid": "ZvP2BbO4z"
"uid": "prom1"
},
"gridPos": {
"h": 1,
@ -5219,7 +5219,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "ZvP2BbO4z"
"uid": "prom1"
},
"fieldConfig": {
"defaults": {
@ -5526,7 +5526,7 @@
"dashes": false,
"datasource": {
"type": "prometheus",
"uid": "ZvP2BbO4z"
"uid": "prom1"
},
"description": "",
"editable": true,
@ -5647,7 +5647,7 @@
"dashes": false,
"datasource": {
"type": "prometheus",
"uid": "ZvP2BbO4z"
"uid": "prom1"
},
"description": "",
"editable": true,
@ -5790,7 +5790,7 @@
"dashes": false,
"datasource": {
"type": "prometheus",
"uid": "ZvP2BbO4z"
"uid": "prom1"
},
"description": "",
"editable": true,
@ -5925,7 +5925,7 @@
"collapsed": true,
"datasource": {
"type": "prometheus",
"uid": "ZvP2BbO4z"
"uid": "prom1"
},
"gridPos": {
"h": 1,
@ -5942,7 +5942,7 @@
"dashes": false,
"datasource": {
"type": "prometheus",
"uid": "ZvP2BbO4z"
"uid": "prom1"
},
"description": "",
"fieldConfig": {
@ -6047,7 +6047,7 @@
"dashes": false,
"datasource": {
"type": "prometheus",
"uid": "ZvP2BbO4z"
"uid": "prom1"
},
"fieldConfig": {
"defaults": {},
@ -6153,7 +6153,7 @@
"collapsed": true,
"datasource": {
"type": "prometheus",
"uid": "ZvP2BbO4z"
"uid": "prom1"
},
"gridPos": {
"h": 1,
@ -6166,7 +6166,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "ZvP2BbO4z"
"uid": "prom1"
},
"fieldConfig": {
"defaults": {
@ -6228,7 +6228,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "ZvP2BbO4z"
"uid": "prom1"
},
"description": "",
"fieldConfig": {
@ -6451,7 +6451,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "ZvP2BbO4z"
"uid": "prom1"
},
"fieldConfig": {
"defaults": {
@ -6649,7 +6649,7 @@
},
"datasource": {
"type": "prometheus",
"uid": "ZvP2BbO4z"
"uid": "prom1"
},
"definition": "label_values(ssCpuUser, job)",
"hide": 0,
@ -6679,7 +6679,7 @@
},
"datasource": {
"type": "prometheus",
"uid": "ZvP2BbO4z"
"uid": "prom1"
},
"definition": "query_result(ssCpuUser{job=~'$JobName'})",
"hide": 0,
@ -6706,7 +6706,7 @@
},
"datasource": {
"type": "prometheus",
"uid": "ZvP2BbO4z"
"uid": "prom1"
},
"definition": "label_values(ifName{job=~'$JobName',instance=~'$Device'},ifName)",
"description": "Regex controls interfaces to show. Default: ^eth.*|^bond.*|^docker[0-9]",
@ -6734,7 +6734,7 @@
},
"datasource": {
"type": "prometheus",
"uid": "ZvP2BbO4z"
"uid": "prom1"
},
"definition": "label_values(ifName{job=~'$JobName',instance=~'$Device'},ifName)",
"description": "Physical Network Interfaces",
@ -6765,7 +6765,7 @@
},
"datasource": {
"type": "prometheus",
"uid": "ZvP2BbO4z"
"uid": "prom1"
},
"definition": "label_values(ifType_info{job=~'$JobName',instance=~'$Device'},ifName)",
"description": "Bonds an VLans",
@ -6796,7 +6796,7 @@
},
"datasource": {
"type": "prometheus",
"uid": "ZvP2BbO4z"
"uid": "prom1"
},
"definition": "label_values(diskID{job=~'$JobName',instance=~'$Device'},diskID)",
"hide": 2,
@ -6826,7 +6826,7 @@
},
"datasource": {
"type": "prometheus",
"uid": "ZvP2BbO4z"
"uid": "prom1"
},
"definition": "label_values(diskID{job=~'$JobName',instance=~'$Device'},diskID)",
"hide": 2,
@ -6856,7 +6856,7 @@
},
"datasource": {
"type": "prometheus",
"uid": "ZvP2BbO4z"
"uid": "prom1"
},
"definition": "label_values(raidName{job=~'$JobName',instance=~'$Device'},raidName)",
"hide": 0,
@ -6884,7 +6884,7 @@
},
"datasource": {
"type": "prometheus",
"uid": "ZvP2BbO4z"
"uid": "prom1"
},
"definition": "label_values(storageIODevice{job=~'$JobName',instance=~'$Device'},storageIODevice)",
"hide": 0,
@ -6912,7 +6912,7 @@
},
"datasource": {
"type": "prometheus",
"uid": "ZvP2BbO4z"
"uid": "prom1"
},
"definition": "label_values(spaceIODevice{job=~'$JobName',instance=~'$Device'},spaceIODevice)",
"hide": 0,
@ -6940,7 +6940,7 @@
},
"datasource": {
"type": "prometheus",
"uid": "ZvP2BbO4z"
"uid": "prom1"
},
"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)/",
@ -6969,7 +6969,7 @@
},
"datasource": {
"type": "prometheus",
"uid": "ZvP2BbO4z"
"uid": "prom1"
},
"definition": "label_values(flashCacheSSDDev{job=~'$JobName',instance=~'$Device'},flashCacheSSDDev)",
"hide": 0,
@ -6997,7 +6997,7 @@
},
"datasource": {
"type": "prometheus",
"uid": "ZvP2BbO4z"
"uid": "prom1"
},
"definition": "label_values(hrStorageDescr{job=~'$JobName',instance=~'$Device'},hrStorageDescr)",
"description": "Regex controls file hrStorageDescr devices to show here. Default: /.*[M|m]emory.*/",
@ -7026,7 +7026,7 @@
},
"datasource": {
"type": "prometheus",
"uid": "ZvP2BbO4z"
"uid": "prom1"
},
"definition": "label_values(diskSMARTInfoDevName{job=~'$JobName',instance=~'$Device'},diskSMARTInfoDevName)",
"hide": 0,
@ -7054,7 +7054,7 @@
},
"datasource": {
"type": "prometheus",
"uid": "ZvP2BbO4z"
"uid": "prom1"
},
"definition": "label_values(serviceName{job=~'$JobName',instance=~'$Device'},serviceName)",
"description": "Regex controls which services to hide. Default: /^(?!TELNET|FTP|AFP|OTHER)/",

View File

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