mirror of
https://github.com/TheWanderingCrow/CrOS.git
synced 2026-02-05 20:28:54 -05:00
39 lines
758 B
Nix
39 lines
758 B
Nix
{ lib, ... }:
|
|
let
|
|
#grafanaPort = lib.custom.autoport "grafana";
|
|
grafanaPort = 3000;
|
|
in
|
|
{
|
|
services = {
|
|
prometheus = {
|
|
enable = true;
|
|
globalConfig = {
|
|
scrape_interval = "15s";
|
|
evaluation_interval = "15s";
|
|
};
|
|
scrapeConfigs = [
|
|
{
|
|
job_name = "prometheus";
|
|
static_configs = [
|
|
{
|
|
targets = [ "localhost:9090" ];
|
|
}
|
|
];
|
|
}
|
|
];
|
|
};
|
|
|
|
#grafana = {
|
|
# enable = true;
|
|
# settings = {
|
|
# server = {
|
|
# http_addr = "0.0.0.0";
|
|
# http_port = grafanaPort;
|
|
# enable_gzip = true;
|
|
# domain = "localhost";
|
|
# };
|
|
# analytics.reporting_enabled = false;
|
|
# };
|
|
#};
|
|
};
|
|
}
|