ildkule/prometheus: reenable mysqld exporter

This commit is contained in:
h7x4 2025-03-16 20:56:26 +01:00
parent 493ab057f4
commit 32a529e60f
No known key found for this signature in database
GPG Key ID: 9F2F7D8250F35146
3 changed files with 8 additions and 10 deletions

View File

@ -56,13 +56,12 @@ in {
url = "https://raw.githubusercontent.com/matrix-org/synapse/develop/contrib/grafana/synapse.json";
options.path = dashboards/synapse.json;
}
# TODO: enable once https://github.com/NixOS/nixpkgs/pull/242365 gets merged
# {
# name = "MySQL";
# type = "file";
# url = "https://raw.githubusercontent.com/prometheus/mysqld_exporter/main/mysqld-mixin/dashboards/mysql-overview.json";
# options.path = dashboards/mysql.json;
# }
{
name = "MySQL";
type = "file";
url = "https://raw.githubusercontent.com/prometheus/mysqld_exporter/main/mysqld-mixin/dashboards/mysql-overview.json";
options.path = dashboards/mysql.json;
}
{
name = "Postgresql";
type = "file";

View File

@ -4,8 +4,7 @@ in {
imports = [
./gitea.nix
./matrix-synapse.nix
# TODO: enable once https://github.com/NixOS/nixpkgs/pull/242365 gets merged
# ./mysqld.nix
./mysqld.nix
./postgres.nix
./machines.nix
];

View File

@ -19,7 +19,7 @@ in {
exporters.mysqld = {
enable = true;
configFilePath = config.sops.secrets."config/mysqld_exporter".path;
configFile = config.sops.secrets."config/mysqld_exporter".path;
};
};
}