mirror of
https://github.com/Death916/nixconfig.git
synced 2026-04-10 02:54:39 -07:00
grafana
This commit is contained in:
parent
f912801db6
commit
aa2c388d29
2 changed files with 41 additions and 5 deletions
35
modules/nixos/orac/monitoring.nix
Normal file
35
modules/nixos/orac/monitoring.nix
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
{ config, pkgs, ... }:
|
||||
{
|
||||
# grafana configuration
|
||||
services.grafana = {
|
||||
enable = true;
|
||||
settings = {
|
||||
server = {
|
||||
http_addr = "127.0.0.1";
|
||||
http_port = 3050;
|
||||
enforce_domain = true;
|
||||
enable_gzip = true;
|
||||
# domain = "orac";
|
||||
};
|
||||
};
|
||||
};
|
||||
# services.prometheus.exporters.node = {
|
||||
# enable = true;
|
||||
# port = 9000;
|
||||
# # For the list of available collectors, run, depending on your install:
|
||||
# # - Flake-based: nix run nixpkgs#prometheus-node-exporter -- --help
|
||||
# # - Classic: nix-shell -p prometheus-node-exporter --run "node_exporter --help"
|
||||
# enabledCollectors = [
|
||||
# "ethtool"
|
||||
# "softirqs"
|
||||
# "systemd"
|
||||
# "tcpstat"
|
||||
# "wifi"
|
||||
# ];
|
||||
# # You can pass extra options to the exporter using `extraFlags`, e.g.
|
||||
# # to configure collectors or disable those enabled by default.
|
||||
# # Enabling a collector is also possible using "--collector.[name]",
|
||||
# # but is otherwise equivalent to using `enabledCollectors` above.
|
||||
# extraFlags = [ "--collector.ntp.protocol-version=4" "--no-collector.mdadm" ];
|
||||
# };
|
||||
}
|
||||
|
|
@ -49,11 +49,12 @@
|
|||
# SMTP_FROM_NAME = "example.com Bitwarden server";
|
||||
};
|
||||
};
|
||||
services.beszel = {
|
||||
hub.enable = true;
|
||||
hub.host = "0.0.0.0";
|
||||
agent.enable = true;
|
||||
};
|
||||
# # services.beszel = {
|
||||
# hub.enable = true;
|
||||
# hub.host = "0.0.0.0";
|
||||
# agent.enable = true;
|
||||
# agent.environmentFile = /etc/nixos/secrets/beszel.env
|
||||
# };
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
git
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue