1
0

Compare commits

...

3 Commits

Author SHA1 Message Date
Flake Update Bot
4c1c87c828 Update from updated-inputs-2024-07-21-01-03 2024-07-21 03:03:05 +02:00
Flake Update Bot
0f6610ef3c Update nixpkgs 2024-07-21-01-03 2024-07-21 03:03:03 +02:00
f157cab25c
hosts/monitoring-3: Add berlinerbaeder-exporter 2024-07-20 18:51:25 +02:00
6 changed files with 54 additions and 0 deletions

View File

@ -1,5 +1,25 @@
{ {
"nodes": { "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": { "bij": {
"inputs": { "inputs": {
"nixpkgs": [ "nixpkgs": [
@ -284,6 +304,7 @@
}, },
"root": { "root": {
"inputs": { "inputs": {
"berlinerbaeder-exporter": "berlinerbaeder-exporter",
"bij": "bij", "bij": "bij",
"chaosevents": "chaosevents", "chaosevents": "chaosevents",
"fernglas": "fernglas", "fernglas": "fernglas",

View File

@ -2,6 +2,10 @@
inputs = { inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
nixos-hardware.url = "github:NixOS/nixos-hardware/master"; 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 = { bij = {
url = "git+https://git.clerie.de/clerie/bij.git"; url = "git+https://git.clerie.de/clerie/bij.git";
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";

View File

@ -1,4 +1,5 @@
{ self { self
, berlinerbaeder-exporter
, bij , bij
, chaosevents , chaosevents
, harmonia , harmonia
@ -6,6 +7,8 @@
, ... , ...
}@inputs: }@inputs:
final: prev: { final: prev: {
inherit (berlinerbaeder-exporter.packages.${final.system})
berlinerbaeder-exporter;
inherit (bij.packages.${final.system}) inherit (bij.packages.${final.system})
bij; bij;
inherit (chaosevents.packages.${final.system}) inherit (chaosevents.packages.${final.system})

View 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 ];
};
}

View File

@ -6,6 +6,7 @@
./hardware-configuration.nix ./hardware-configuration.nix
../../configuration/proxmox-vm ../../configuration/proxmox-vm
./alertmanager.nix ./alertmanager.nix
./berlinerbaeder-exporter.nix
./blackbox.nix ./blackbox.nix
./grafana.nix ./grafana.nix
./nixos-validator.nix ./nixos-validator.nix

View File

@ -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 = [ alertmanagers = [
{ {