hosts/monitoring-3: Add berlinerbaeder-exporter
This commit is contained in:
parent
6c05f9de4e
commit
f157cab25c
21
flake.lock
21
flake.lock
@ -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",
|
||||||
|
@ -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";
|
||||||
|
@ -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})
|
||||||
|
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
|
./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
|
||||||
|
@ -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 = [
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user