Add synapse dashboard
This commit is contained in:
parent
eb43726226
commit
4403887945
10474
nixos/roles/monitoring/grafana-dashboards/synapse.json
Normal file
10474
nixos/roles/monitoring/grafana-dashboards/synapse.json
Normal file
File diff suppressed because it is too large
Load diff
|
@ -1,4 +1,4 @@
|
|||
{ pkgs, lib, ... }:
|
||||
{ pkgs, lib, utils, ... }:
|
||||
let
|
||||
heading = name: link: ''<h2><a href=\"${link}\">${name}</a></h2>'';
|
||||
badge = src: link: ''<a href=\"${link}\">\n <img src=\"${src}\">\n</a>'';
|
||||
|
@ -23,8 +23,7 @@ let
|
|||
dashboards = pkgs.runCommand "dashboards" { } ''
|
||||
mkdir -p $out
|
||||
cp ${./grafana-dashboards}/* $out
|
||||
cp ${lib.utils.copyFile "${pkgs.matrix-synapse.src}/contrib/grafana/synapse.json"} $out/
|
||||
substituteInPlace $out/health-status.json --replace '@BADGES@' '${badges}' \
|
||||
substituteInPlace $out/health-status.json --replace '@BADGES@' '${badges}'
|
||||
'';
|
||||
in
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue