Use Prometheus to monitor Vyos

This commit is contained in:
Mathieu Strypsteen 2024-12-26 15:20:18 +01:00
parent 658cd7e0f0
commit 3ae4da9ef6
Signed by: mathieu
GPG key ID: 782A42E461BC6824
5 changed files with 6 additions and 12 deletions

View file

@ -0,0 +1,4 @@
scrape_configs:
- job_name: prometheus
static_configs:
- targets: ["192.168.253.1:9100"]

View file

@ -1,7 +1,7 @@
FROM quay.io/fedora/fedora-toolbox:41
RUN dnf up -y
RUN dnf install -y bash-color-prompt cargo-deny clang clang-tools-extra gcc hyperfine java-devel llvm mtools nodejs-npm openssl-devel parted poetry postgresql-server python3-pip qemu-system-x86-core rustup systemd-container vim-enhanced
RUN dnf install -y https://github.com/coder/code-server/releases/download/v4.96.1/code-server-4.96.1-amd64.rpm
RUN dnf install -y https://github.com/coder/code-server/releases/download/v4.96.2/code-server-4.96.2-amd64.rpm
RUN mkdir /etc/systemd/system/user@.service.d
RUN mkdir /var/lib/systemd/linger
RUN touch /var/lib/systemd/linger/coder

View file

@ -1,8 +0,0 @@
[Container]
Image=docker.io/influxdb
Volume=influxdb.volume:/var/lib/influxdb2:U,Z
Tmpfs=/etc/influxdb2
PublishPort=8086:8086
AutoUpdate=registry
[Install]
WantedBy=multi-user.target

View file

@ -73,9 +73,7 @@ set service dns forwarding allow-from 192.168.0.0/16
set service dns forwarding allow-from fc00::/7
set service tftp-server directory /config/tftp
set service tftp-server listen-address 192.168.253.1
set service monitoring telegraf influxdb url http://home.server.home.arpa
set service monitoring telegraf influxdb bucket vyos
set service monitoring telegraf influxdb authentication organization metrics
set service monitoring node-exporter listen-address 192.168.253.1
set service lldp interface all
set nat source rule 1 outbound-interface name eth0