cluster/services/monitoring: switch grafana to postgres
This commit is contained in:
parent
09f40ffde5
commit
05bfdae17c
3 changed files with 13 additions and 2 deletions
BIN
cluster/services/monitoring/secrets/grafana-db-credentials.age
Normal file
BIN
cluster/services/monitoring/secrets/grafana-db-credentials.age
Normal file
Binary file not shown.
|
@ -11,8 +11,12 @@ let
|
||||||
login = x: "https://login.${domain}/auth/realms/master/protocol/openid-connect/${x}";
|
login = x: "https://login.${domain}/auth/realms/master/protocol/openid-connect/${x}";
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
age.secrets.grafana-secrets = {
|
age.secrets = {
|
||||||
file = ./secrets/grafana-secrets.age;
|
grafana-db-credentials = {
|
||||||
|
file = ./secrets/grafana-db-credentials.age;
|
||||||
|
owner = "grafana";
|
||||||
|
};
|
||||||
|
grafana-secrets.file = ./secrets/grafana-secrets.age;
|
||||||
};
|
};
|
||||||
|
|
||||||
links = {
|
links = {
|
||||||
|
@ -28,6 +32,12 @@ in
|
||||||
root_url = "https://monitoring.${domain}/";
|
root_url = "https://monitoring.${domain}/";
|
||||||
http_port = links.grafana.port;
|
http_port = links.grafana.port;
|
||||||
};
|
};
|
||||||
|
database = {
|
||||||
|
type = "postgres";
|
||||||
|
host = cluster.config.links.patroni-pg-access.tuple;
|
||||||
|
user = "grafana";
|
||||||
|
password = "$__file{${config.age.secrets.grafana-db-credentials.path}}";
|
||||||
|
};
|
||||||
analytics.reporting_enabled = false;
|
analytics.reporting_enabled = false;
|
||||||
"auth.generic_oauth" = {
|
"auth.generic_oauth" = {
|
||||||
enabled = true;
|
enabled = true;
|
||||||
|
|
|
@ -23,6 +23,7 @@ in with hosts;
|
||||||
"cluster/services/ipfs/cluster-secret.age".publicKeys = max ++ map systemKeys [ VEGAS prophet ];
|
"cluster/services/ipfs/cluster-secret.age".publicKeys = max ++ map systemKeys [ VEGAS prophet ];
|
||||||
"cluster/services/ipfs/cluster-pinsvc-credentials.age".publicKeys = max ++ map systemKeys [ VEGAS prophet ];
|
"cluster/services/ipfs/cluster-pinsvc-credentials.age".publicKeys = max ++ map systemKeys [ VEGAS prophet ];
|
||||||
"cluster/services/irc/irc-peer-key.age".publicKeys = max ++ map systemKeys [ VEGAS prophet ];
|
"cluster/services/irc/irc-peer-key.age".publicKeys = max ++ map systemKeys [ VEGAS prophet ];
|
||||||
|
"cluster/services/monitoring/secrets/grafana-db-credentials.age".publicKeys = max ++ map systemKeys [ VEGAS ];
|
||||||
"cluster/services/monitoring/secrets/grafana-secrets.age".publicKeys = max ++ map systemKeys [ VEGAS ];
|
"cluster/services/monitoring/secrets/grafana-secrets.age".publicKeys = max ++ map systemKeys [ VEGAS ];
|
||||||
"cluster/services/patroni/passwords/replication.age".publicKeys = max ++ map systemKeys [ thunderskin VEGAS prophet ];
|
"cluster/services/patroni/passwords/replication.age".publicKeys = max ++ map systemKeys [ thunderskin VEGAS prophet ];
|
||||||
"cluster/services/patroni/passwords/rewind.age".publicKeys = max ++ map systemKeys [ thunderskin VEGAS prophet ];
|
"cluster/services/patroni/passwords/rewind.age".publicKeys = max ++ map systemKeys [ thunderskin VEGAS prophet ];
|
||||||
|
|
Loading…
Reference in a new issue