Compare commits
3 Commits
b68dae5301
...
4c1c87c828
Author | SHA1 | Date | |
---|---|---|---|
|
4c1c87c828 | ||
|
0f6610ef3c | ||
f157cab25c |
21
flake.lock
21
flake.lock
@ -1,5 +1,25 @@
|
||||
{
|
||||
"nodes": {
|
||||
"berlinerbaeder-exporter": {
|
||||
"inputs": {
|
||||
"nixpkgs": [
|
||||
"nixpkgs"
|
||||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1720989581,
|
||||
"narHash": "sha256-Mm4FU9Kh5C/vfTDGLpxcR24fXgSdcZXlmZfIoM1wjcg=",
|
||||
"ref": "refs/heads/main",
|
||||
"rev": "49e8db169c74ae7238b9eeba2a51b277dad9a1bf",
|
||||
"revCount": 4,
|
||||
"type": "git",
|
||||
"url": "https://git.clerie.de/clerie/berlinerbaeder-exporter.git"
|
||||
},
|
||||
"original": {
|
||||
"type": "git",
|
||||
"url": "https://git.clerie.de/clerie/berlinerbaeder-exporter.git"
|
||||
}
|
||||
},
|
||||
"bij": {
|
||||
"inputs": {
|
||||
"nixpkgs": [
|
||||
@ -284,6 +304,7 @@
|
||||
},
|
||||
"root": {
|
||||
"inputs": {
|
||||
"berlinerbaeder-exporter": "berlinerbaeder-exporter",
|
||||
"bij": "bij",
|
||||
"chaosevents": "chaosevents",
|
||||
"fernglas": "fernglas",
|
||||
|
@ -2,6 +2,10 @@
|
||||
inputs = {
|
||||
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
||||
nixos-hardware.url = "github:NixOS/nixos-hardware/master";
|
||||
berlinerbaeder-exporter = {
|
||||
url = "git+https://git.clerie.de/clerie/berlinerbaeder-exporter.git";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
bij = {
|
||||
url = "git+https://git.clerie.de/clerie/bij.git";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
|
@ -1,4 +1,5 @@
|
||||
{ self
|
||||
, berlinerbaeder-exporter
|
||||
, bij
|
||||
, chaosevents
|
||||
, harmonia
|
||||
@ -6,6 +7,8 @@
|
||||
, ...
|
||||
}@inputs:
|
||||
final: prev: {
|
||||
inherit (berlinerbaeder-exporter.packages.${final.system})
|
||||
berlinerbaeder-exporter;
|
||||
inherit (bij.packages.${final.system})
|
||||
bij;
|
||||
inherit (chaosevents.packages.${final.system})
|
||||
|
11
hosts/monitoring-3/berlinerbaeder-exporter.nix
Normal file
11
hosts/monitoring-3/berlinerbaeder-exporter.nix
Normal file
@ -0,0 +1,11 @@
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
systemd.services.berlinerbaeder-exporter = {
|
||||
wantedBy = [ "multi-user.target" ];
|
||||
serviceConfig = {
|
||||
DynamicUser = true;
|
||||
};
|
||||
script = "berlinerbaeder-exporter --listen [::1]:57382";
|
||||
path = with pkgs; [ berlinerbaeder-exporter ];
|
||||
};
|
||||
}
|
@ -6,6 +6,7 @@
|
||||
./hardware-configuration.nix
|
||||
../../configuration/proxmox-vm
|
||||
./alertmanager.nix
|
||||
./berlinerbaeder-exporter.nix
|
||||
./blackbox.nix
|
||||
./grafana.nix
|
||||
./nixos-validator.nix
|
||||
|
@ -407,6 +407,20 @@ in {
|
||||
}
|
||||
];
|
||||
}
|
||||
{
|
||||
job_name = "berlinerbaeder-exporter";
|
||||
scrape_interval = "5m";
|
||||
static_configs = [
|
||||
{
|
||||
targets = [
|
||||
"monitoring-3.mon.clerie.de:57382"
|
||||
];
|
||||
}
|
||||
];
|
||||
relabel_configs = [
|
||||
relabelAddressToInstance
|
||||
];
|
||||
}
|
||||
];
|
||||
alertmanagers = [
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user