feat(influxdb): Add a token for grafana

This commit is contained in:
Tom Hubrecht 2024-02-20 16:58:23 +01:00
parent cc613ba7b9
commit 05a6b66784
3 changed files with 11 additions and 3 deletions

View file

@ -18,10 +18,17 @@ in
dgnum = { dgnum = {
description = "DGNum org"; description = "DGNum org";
buckets.telegraf.description = "Telegraf bucket"; buckets.telegraf.description = "Telegraf bucket";
auths.telegraf = { auths = {
telegraf = {
writeBuckets = [ "telegraf" ]; writeBuckets = [ "telegraf" ];
tokenFile = token "telegraf"; tokenFile = token "telegraf";
}; };
grafana = {
readPermissions = [ "buckets" ];
tokenFile = token "grafana";
};
};
}; };
}; };

View file

@ -7,6 +7,7 @@ lib.setDefault { inherit publicKeys; } [
"forgejo-mailer_password_file" "forgejo-mailer_password_file"
"forgejo_runners-token_file" "forgejo_runners-token_file"
"garage-environment_file" "garage-environment_file"
"influxdb2-grafana_token_file"
"influxdb2-initial_password_file" "influxdb2-initial_password_file"
"influxdb2-initial_token_file" "influxdb2-initial_token_file"
"influxdb2-telegraf_token_file" "influxdb2-telegraf_token_file"