add section
This commit is contained in:
parent
3185180f10
commit
bc8f728059
1 changed files with 30 additions and 3 deletions
|
|
@ -1,8 +1,35 @@
|
||||||
{ pkgs, lib, ... }:
|
{ pkgs, lib, ... }:
|
||||||
services:
|
services:
|
||||||
|
|
||||||
|
# {
|
||||||
|
# "collapsed": false,
|
||||||
|
# "gridPos": {
|
||||||
|
# "h": 1,
|
||||||
|
# "w": 24,
|
||||||
|
# "x": 0,
|
||||||
|
# "y": 0
|
||||||
|
# },
|
||||||
|
# "id": 261,
|
||||||
|
# "panels": [],
|
||||||
|
# "title": "Quick CPU / Mem / Disk",
|
||||||
|
# "type": "row"
|
||||||
|
# },
|
||||||
pkgs.writers.writeJSON "status.json" {
|
pkgs.writers.writeJSON "status.json" {
|
||||||
title = "Service Status";
|
title = "Service Status";
|
||||||
panels = lib.imap0 (
|
panels = [
|
||||||
|
{
|
||||||
|
collapsed = false;
|
||||||
|
title = "Federated Nexus Service Statuses";
|
||||||
|
type = "row";
|
||||||
|
gridPos = {
|
||||||
|
h = 1;
|
||||||
|
w = 24;
|
||||||
|
x = 0;
|
||||||
|
y = 0;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
]
|
||||||
|
++ (lib.imap0 (
|
||||||
index:
|
index:
|
||||||
{ name, service }:
|
{ name, service }:
|
||||||
{
|
{
|
||||||
|
|
@ -12,7 +39,7 @@ pkgs.writers.writeJSON "status.json" {
|
||||||
h = 3;
|
h = 3;
|
||||||
w = 4;
|
w = 4;
|
||||||
x = index * w;
|
x = index * w;
|
||||||
y = index * h;
|
y = (index * h) + 8;
|
||||||
};
|
};
|
||||||
datasource = {
|
datasource = {
|
||||||
type = "prometheus";
|
type = "prometheus";
|
||||||
|
|
@ -52,5 +79,5 @@ pkgs.writers.writeJSON "status.json" {
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
) services;
|
) services);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue