Compare commits
No commits in common. "34cc34a567fcd58ae0d22c9612c1604bb3ebedb8" and "bdac59c471237ac00bf5909225b868ca3820173d" have entirely different histories.
34cc34a567
...
bdac59c471
6 changed files with 4 additions and 31 deletions
|
@ -3,8 +3,6 @@
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
./services
|
./services
|
||||||
../../modules
|
../../modules
|
||||||
../../modules/prometheus/exporters/redis.nix
|
|
||||||
../../modules/prometheus/exporters/postgres.nix
|
|
||||||
];
|
];
|
||||||
|
|
||||||
boot.loader = {
|
boot.loader = {
|
||||||
|
|
|
@ -4,7 +4,6 @@ this directory hosts some common modules / services / security tweaks used on (m
|
||||||
|
|
||||||
name | description
|
name | description
|
||||||
--------------- | -----------
|
--------------- | -----------
|
||||||
`prometheus` | has default prometheus config for all hosts, along with exporters for select hosts
|
|
||||||
`default` | used for commonly shared modules
|
`default` | used for commonly shared modules
|
||||||
`fonts` | font handling
|
`fonts` | font handling
|
||||||
`greetd` | login manager
|
`greetd` | login manager
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
{inputs, ...}: {
|
{inputs, ...}: {
|
||||||
imports = [
|
imports = [
|
||||||
inputs.nh.nixosModules.default
|
inputs.nh.nixosModules.default
|
||||||
./prometheus
|
|
||||||
./security.nix
|
./security.nix
|
||||||
./networking.nix
|
./networking.nix
|
||||||
./users.nix
|
./users.nix
|
||||||
|
@ -10,5 +9,6 @@
|
||||||
./openssh.nix
|
./openssh.nix
|
||||||
./virtualisation.nix
|
./virtualisation.nix
|
||||||
./sops.nix
|
./sops.nix
|
||||||
|
./prometheus.nix
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,29 +5,19 @@ _: {
|
||||||
scrapeConfigs = [
|
scrapeConfigs = [
|
||||||
{
|
{
|
||||||
job_name = "prometheus";
|
job_name = "prometheus";
|
||||||
scrape_interval = "15s";
|
scrape_interval = "30s";
|
||||||
static_configs = [{targets = ["localhost:9090"];}];
|
static_configs = [{targets = ["localhost:9090"];}];
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
job_name = "node";
|
job_name = "node";
|
||||||
scrape_interval = "15s";
|
scrape_interval = "30s";
|
||||||
static_configs = [{targets = ["localhost:9100"];}];
|
static_configs = [{targets = ["localhost:9100"];}];
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
job_name = "traefik";
|
job_name = "traefik";
|
||||||
scrape_interval = "15s";
|
scrape_interval = "30s";
|
||||||
static_configs = [{targets = ["100.87.54.48:8080"];}];
|
static_configs = [{targets = ["100.87.54.48:8080"];}];
|
||||||
}
|
}
|
||||||
{
|
|
||||||
job_name = "redis_exporter";
|
|
||||||
scrape_interval = "15s";
|
|
||||||
static_configs = [{targets = ["100.94.214.100:9002"];}];
|
|
||||||
}
|
|
||||||
{
|
|
||||||
job_name = "postgres";
|
|
||||||
scrape_interval = "15s";
|
|
||||||
static_configs = [{targets = ["100.94.214.100:9003"];}];
|
|
||||||
}
|
|
||||||
];
|
];
|
||||||
exporters = {
|
exporters = {
|
||||||
node = {
|
node = {
|
|
@ -1,7 +0,0 @@
|
||||||
_: {
|
|
||||||
services.prometheus.exporters.postgres = {
|
|
||||||
enable = true;
|
|
||||||
openFirewall = true;
|
|
||||||
port = 9003;
|
|
||||||
};
|
|
||||||
}
|
|
|
@ -1,7 +0,0 @@
|
||||||
_: {
|
|
||||||
services.prometheus.exporters.redis = {
|
|
||||||
enable = true;
|
|
||||||
openFirewall = true;
|
|
||||||
port = 9002;
|
|
||||||
};
|
|
||||||
}
|
|
Loading…
Reference in a new issue