Added prometheus config and fixed errors
This commit is contained in:
6
flake.lock
generated
6
flake.lock
generated
@@ -28,11 +28,11 @@
|
||||
"nixpkgs": "nixpkgs"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1754235895,
|
||||
"narHash": "sha256-wvbXdNJndHeNFLAkHE3kzEwLcuY5QtWamSFvtW6f5N8=",
|
||||
"lastModified": 1754236067,
|
||||
"narHash": "sha256-i3T9eFrMwQdl46zSdJivRpG2Myab8eaG2OCffSQy2bk=",
|
||||
"owner": "kyren223",
|
||||
"repo": "eko",
|
||||
"rev": "2c2dddfb192602dea6181956423023ee1d928a73",
|
||||
"rev": "d427beaebabb5f68c3817b96c9f528ed36169ceb",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
||||
6
nixosModules/eko-prometheus.yml
Normal file
6
nixosModules/eko-prometheus.yml
Normal file
@@ -0,0 +1,6 @@
|
||||
scrape_configs:
|
||||
- job_name: eko
|
||||
scrape_interval: 3s
|
||||
static_configs:
|
||||
- targets:
|
||||
- localhost:2112
|
||||
@@ -1,5 +1,9 @@
|
||||
{ lib, config, ... }: {
|
||||
|
||||
imports = [
|
||||
./grafana-alloy.nix
|
||||
];
|
||||
|
||||
options = {
|
||||
eko.enable = lib.mkEnableOption "enables eko";
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user