Getting Started
This guide will help you get the NetBird API Exporter up and running in your environment.
Table of contents
- Prerequisites
- System Requirements
- Supported Platforms
- Next Steps
- Quick Verification
- Troubleshooting
- Getting Help
Prerequisites
Before installing the NetBird API Exporter, ensure you have:
- NetBird Account: An active NetBird account with access to the dashboard
- API Token: A valid NetBird API token with appropriate permissions
- Prometheus Server: A Prometheus server or compatible metrics collection system
- Deployment Environment: One of the following:
- Docker and Docker Compose
- Kubernetes cluster (for Helm deployment)
- Linux server (for systemd deployment)
- Go development environment (for binary deployment)
System Requirements
Minimum Requirements
- CPU: 100m (0.1 CPU core)
- Memory: 64MB RAM
- Disk: 10MB storage
- Network: Outbound HTTPS access to NetBird API
Recommended Requirements
- CPU: 200m (0.2 CPU core)
- Memory: 128MB RAM
- Disk: 50MB storage
- Network: Stable internet connection
Supported Platforms
The NetBird API Exporter supports the following platforms:
Container Platforms
- Docker 20.10+
- Docker Compose 2.0+
- Kubernetes 1.19+
- Podman 3.0+
Operating Systems
- Linux (amd64, arm64)
- macOS (amd64, arm64)
- Windows (amd64)
Helm Versions
- Helm 3.0+
Next Steps
- Get your API token - Learn how to create and configure your NetBird API token
- Choose your installation method:
- Docker Compose - Easiest for development and testing
- Docker - Best for container environments
- Helm - Ideal for Kubernetes clusters
- systemd - Perfect for Linux servers
- Binary - For custom setups
- Configure Prometheus - Set up Prometheus to scrape metrics
- Create dashboards - Build monitoring dashboards in Grafana
Quick Verification
Once you have the exporter running, you can quickly verify itβs working:
Health Check
curl http://localhost:8080/health
Expected response:
{
"status": "healthy",
"timestamp": "2024-01-15T10:30:00Z",
"version": "0.1.0"
}
Metrics Endpoint
curl http://localhost:8080/metrics
You should see Prometheus metrics output starting with:
# HELP netbird_peers_total Total number of NetBird peers
# TYPE netbird_peers_total gauge
netbird_peers_total 42
Troubleshooting
If you encounter issues during setup:
- Check the logs for error messages
- Verify your API token is correct and has proper permissions
- Ensure network connectivity to NetBird API
- Review the troubleshooting guide
Getting Help
- π Documentation: Browse the complete guide in the sidebar
- π Issues: Report problems on GitHub Issues
- π‘ Discussions: Ask questions in GitHub Discussions