Skip to content

Instantly share code, notes, and snippets.

View ffenix113's full-sized avatar
🇺🇦

Yevhen Sylenko ffenix113

🇺🇦
View GitHub Profile
@Balth-D
Balth-D / Dockerfile
Last active March 10, 2025 11:24
nRF Connect SDK devcontainer for Visual Studio Code
# Derive from Nordic's image, SDK version 2.5
FROM nordicplayground/nrfconnect-sdk:v2.5-branch
# Update the distro
RUN apt-get -y update
# Install git and GDB
RUN apt-get -y install git gdb-multiarch
# Create the workspace folder
RUN mkdir /workdir/workspace
@brandon1024
brandon1024 / README.md
Last active April 8, 2026 16:02
Wireguard Exporter [Node Exporter Textfile Collector]

A Simple Solution for Wireguard Interface and Peer Metrics Exposition to Prometheus

Here's a simple set of scripts that allow you to export wireguard tunnel statistics to a file in Prometheus text format. This file can be read by the node_exporter textfile collector, for example.

You might be asking, why does this exist? Why not MindFlavor/prometheus_wireguard_exporter? The reality is that a full-fledged webserver written in Rust to expose wireguard metrics is a bit overkill. I've accomplished the same thing in ~100 lines of (well documented) Awk. It's dead simple, and a no brainer if you're already using node-exporter.

For those conscious about security, you'll be happy to know the script itself does't run any wireguard commands; it doesn't even need to be run as root. It accepts a wg dump from stdin, and that's it. The metrics exposition is completely isolated from the wiregu