Use Prometheus to monitor Vyos
This commit is contained in:
parent
658cd7e0f0
commit
3ae4da9ef6
5 changed files with 6 additions and 12 deletions
|
@ -0,0 +1,4 @@
|
|||
scrape_configs:
|
||||
- job_name: prometheus
|
||||
static_configs:
|
||||
- targets: ["192.168.253.1:9100"]
|
|
@ -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
|
||||
|
|
|
@ -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
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue