Feat(Server): Add optional Grafana monitoring dashboard to server installer#124
Open
Isusami wants to merge 2 commits intomasterking32:mainfrom
Open
Feat(Server): Add optional Grafana monitoring dashboard to server installer#124Isusami wants to merge 2 commits intomasterking32:mainfrom
Isusami wants to merge 2 commits intomasterking32:mainfrom
Conversation
Adds an optional monitoring stack (Prometheus + Grafana) under monitoring/ that can run standalone or be sourced by the main installer. Includes: - Python Prometheus exporter for service status, sessions, and traffic metrics via systemctl, iptables, and journalctl - Docker Compose setup for Prometheus and Grafana containers - Pre-built Grafana dashboard with server status, active sessions, throughput, and traffic panels - Standalone install script with auto-detection of package manager, firewall, Docker, and TTY availability - README with setup, metrics reference, and troubleshooting
Adds a monitoring opt-in prompt early in the installation flow. When accepted, the installer downloads the monitoring module via git clone and sources monitoring/install.sh to set up the full Prometheus + Grafana stack automatically. - Prompt uses TTY detection to skip gracefully in non-interactive environments - Downloads monitoring module from the repo branch, bypassing CDN caching - Combined final summary shows MasterDnsVPN service commands, Grafana access details, and monitoring management commands - Fix backup_file_once() to be safe under set -euo pipefail
eb8a369 to
bd431b7
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds an optional Prometheus + Grafana monitoring stack that can be installed alongside MasterDnsVPN during server setup. When the user opts in at the start of installation, the system automatically provisions:
The monitoring module is fully self-contained under
monitoring/and can also be installed standalone, ensuring it does not interfere with future project updates.Changes
monitoring/— New self-contained module: exporter script, Docker Compose setup, Prometheus config, Grafana provisioning (datasource + dashboard), install script, and READMEserver_linux_install.sh— Added early opt-in prompt for monitoring, auto-download of the monitoring module via git clone, sourcing ofmonitoring/install.sh, combined final summary with Grafana access details, andset -esafety fixesTest plan
/metricsreturns all expected gauges and countersupwith zero scrape errors