This repository has no description
0

Configure Feed

Select the types of activity you want to include in your feed.

configs.monitoring.agent: monitoring.extraMetrics for machine specific metrics

+13 -3
+13 -3
configs/monitoring/agent.nix
··· 27 27 "host_metrics" 28 28 "revision_metric" 29 29 "memory_pressure_metric" 30 - ]; 30 + ] 31 + ++ config.monitoring.extraMetrics; 31 32 endpoint = "http://${server}.r:${toString ports.victoriametrics}/api/v1/write"; 32 33 healthcheck.enabled = false; 33 34 inherit buffer; ··· 49 50 }; 50 51 in 51 52 { 52 - services.prometheus.exporters.smartctl = lib.mkIf smart { 53 + # Vector components of machine specific metrics, defined by other modules 54 + # (e.g. configs/gg23/internet.nix). They have to set the host tag 55 + # themselves, like transforms.host_metrics does. 56 + options.monitoring.extraMetrics = lib.mkOption { 57 + type = lib.types.listOf lib.types.str; 58 + default = [ ]; 59 + description = "Vector component ids added to the inputs of the metric sinks."; 60 + }; 61 + 62 + config.services.prometheus.exporters.smartctl = lib.mkIf smart { 53 63 enable = true; 54 64 listenAddress = "127.0.0.1"; 55 65 }; 56 66 57 - services.vector = { 67 + config.services.vector = { 58 68 enable = true; 59 69 journaldAccess = true; 60 70 settings = {