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,9 +18,16 @@ in
dgnum = {
description = "DGNum org";
buckets.telegraf.description = "Telegraf bucket";
auths.telegraf = {
writeBuckets = [ "telegraf" ];
tokenFile = token "telegraf";
auths = {
telegraf = {
writeBuckets = [ "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_runners-token_file"
"garage-environment_file"
"influxdb2-grafana_token_file"
"influxdb2-initial_password_file"
"influxdb2-initial_token_file"
"influxdb2-telegraf_token_file"