Update Grafana badges (and reformat)
This commit is contained in:
parent
323e8483e6
commit
2d1c06d43b
1 changed files with 41 additions and 22 deletions
|
@ -10,22 +10,37 @@ let
|
||||||
(job "kassandra")
|
(job "kassandra")
|
||||||
(job "test-config")
|
(job "test-config")
|
||||||
(job "logfeed")
|
(job "logfeed")
|
||||||
(heading "haskell-taskwarrior"
|
(
|
||||||
"https://hackage.haskell.org/package/taskwarrior")
|
heading "haskell-taskwarrior"
|
||||||
(badge "https://img.shields.io/hackage/v/taskwarrior.svg"
|
"https://hackage.haskell.org/package/taskwarrior"
|
||||||
"https://hackage.haskell.org/package/taskwarrior")
|
)
|
||||||
(badge
|
(badge "https://github.com/maralorn/haskell-taskwarrior/actions/workflows/haskell.yml/badge.svg" "https://github.com/maralorn/taskwarrior/actions")
|
||||||
"https://img.shields.io/endpoint.svg?url=https%3A%2F%2Factions-badge.atrox.dev%2Fmaralorn%2Fhaskell-taskwarrior%2Fbadge%3Fref%3Dmaster"
|
(
|
||||||
"https://actions-badge.atrox.dev/maralorn/haskell-taskwarrior/goto?ref=master")
|
badge
|
||||||
(badge "https://img.shields.io/hackage-deps/v/taskwarrior.svg"
|
"https://repology.org/badge/vertical-allrepos/haskell:taskwarrior.svg?columns=3&header="
|
||||||
"http://packdeps.haskellers.com/reverse/taskwarrior")
|
"https://repology.org/project/haskell:taskwarrior/versions"
|
||||||
|
)
|
||||||
|
(
|
||||||
|
badge "https://img.shields.io/hackage-deps/v/taskwarrior.svg"
|
||||||
|
"http://packdeps.haskellers.com/reverse/taskwarrior"
|
||||||
|
)
|
||||||
|
(
|
||||||
|
heading "nix-output-monitor"
|
||||||
|
"https://github.com/maralorn/nix-output-monitor"
|
||||||
|
)
|
||||||
|
(
|
||||||
|
badge
|
||||||
|
"https://repology.org/badge/vertical-allrepos/nix-output-monitor.svg?columns=3&header="
|
||||||
|
"https://repology.org/project/nix-output-monitor/versions"
|
||||||
|
)
|
||||||
];
|
];
|
||||||
dashboards = pkgs.runCommand "dashboards" { } ''
|
dashboards = pkgs.runCommand "dashboards" {} ''
|
||||||
mkdir -p $out
|
mkdir -p $out
|
||||||
cp ${./grafana-dashboards}/* $out
|
cp ${./grafana-dashboards}/* $out
|
||||||
substituteInPlace $out/health-status.json --replace '@BADGES@' '${badges}' \
|
substituteInPlace $out/health-status.json --replace '@BADGES@' '${badges}' \
|
||||||
'';
|
'';
|
||||||
in {
|
in
|
||||||
|
{
|
||||||
|
|
||||||
services = {
|
services = {
|
||||||
grafana = {
|
grafana = {
|
||||||
|
@ -38,16 +53,20 @@ in {
|
||||||
};
|
};
|
||||||
provision = {
|
provision = {
|
||||||
enable = true;
|
enable = true;
|
||||||
datasources = [{
|
datasources = [
|
||||||
|
{
|
||||||
access = "proxy";
|
access = "proxy";
|
||||||
name = "prometheus";
|
name = "prometheus";
|
||||||
type = "prometheus";
|
type = "prometheus";
|
||||||
url = "http://localhost:9090";
|
url = "http://localhost:9090";
|
||||||
}];
|
}
|
||||||
dashboards = [{
|
];
|
||||||
|
dashboards = [
|
||||||
|
{
|
||||||
name = "Static dashboards";
|
name = "Static dashboards";
|
||||||
options.path = dashboards;
|
options.path = dashboards;
|
||||||
}];
|
}
|
||||||
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue