The Substitution Decision: How Agentic NetOps Changes What You Need From Your Network Team
The best teams at the 2026 World Cup won’t be the ones with the most stars. They’ll be the ones with the best depth and support strategy. Great teams win...
by NetBrain Mar 27, 2025
In today’s complex network environments, ensuring compliance and tracking configuration consistency are critical for maintaining reliability and security. NetBrain’s Golden Engineering Studio (GES) provides a robust framework for automating network design compliance checks, leveraging Golden Config, Golden Feature, and Golden Intent to monitor network configurations dynamically.
This blog post walks through a practical project NetBrain Engineer, Terry Fera: Building a Grafana dashboard by integrating NetBrain’s compliance data with Grafana for a real-time visualization of Golden Config Check results. By following the steps outlined below, you’ll be able to transform raw compliance data from NetBrain into an intuitive, data-driven dashboard for proactive monitoring.
Network compliance is essential for:
NetBrain’s Golden Config Checks automate the detection of non-compliant configurations by reverse-engineering existing network settings and applying predefined rules. However, while NetBrain provides robust compliance reporting, integrating this data into Grafana allows for custom dashboards that provide a broader operational view.
The proposed solution extracts compliance data from NetBrain using a Python script, stores it in an SQL database, and then visualizes it in Grafana. This workflow provides continuous compliance tracking with real-time dashboards.

Before exporting data to Grafana, ensure NetBrain is configured to run Golden Config Checks:






Next we can move onto our Python & SQL setup.
A Python script is used to retrieve NetBrain’s compliance data and store it in a database. The script follows these steps:
Ensure Python and the necessary libraries are installed:
pip install requests pymysql
NetBrain’s Triggered Automation Framework (TAF-Lite) provides API-based access to compliance data.
Sample Python script to retrieve data:
import requests
import pymysql
import json
# NetBrain API Credentials
NB_URL = "https://your-netbrain-instance/api"
API_KEY = "your_api_key"
# SQL Database Configuration
DB_HOST = "localhost"
DB_USER = "compliance_user"
DB_PASS = "P@ssw0rd"
DB_NAME = "compliance_results"
# Fetch Compliance Data
def fetch_compliance_results():
headers = {"Authorization": f"Bearer {API_KEY}"}
response = requests.get(f"{NB_URL}/taf-lite/compliance-results", headers=headers)
if response.status_code == 200:
return response.json()
else:
print("Error fetching data")
return None
# Store Data in SQL
def store_results(data):
connection = pymysql.connect(host=DB_HOST, user=DB_USER, password=DB_PASS, database=DB_NAME)
cursor = connection.cursor()
for record in data:
sql = """INSERT INTO compliance_results.results
(timestamp, device, rulename, result, status)
VALUES (%s, %s, %s, %s, %s)
ON DUPLICATE KEY UPDATE result=%s, timestamp=%s"""
cursor.execute(sql, (record["timestamp"], record["device"], record["rulename"], record["result"], record["status"], record["result"], record["timestamp"]))
connection.commit()
cursor.close()
connection.close()
# Main Execution
data = fetch_compliance_results()
if data:
store_results(data)
To store compliance results, create an SQL database and table for compliance results:
CREATE TABLE compliance_results.results (
timestamp DATETIME NULL,
device VARCHAR(100) NULL,
rulename VARCHAR(100) NULL,
result VARCHAR(100) NULL,
status VARCHAR(100) NULL,
PRIMARY KEY (device, rulename)
);
Next, validate that user is created and able to read the database
CREATE USER compliance_user IDENTIFIED BY 'P@ssw0rd';
GRANT ALL ON compliance_results.* TO compliance_user;
Grafana is a powerful, open-source visualization tool used for monitoring and analyzing time-series data. It supports multiple data sources, including SQL databases, Prometheus, InfluxDB, and Elasticsearch, making it ideal for real-time network compliance monitoring.
Yes! Grafana offers a free open-source version that is fully capable of handling this project. Here are your options:
For this project, Grafana OSS (self-hosted) or Grafana Cloud’s free tier are both excellent choices.
sudo apt update && sudo apt install grafana
sudo systemctl start grafana-server
http://localhost:3000/Once Grafana is set up, you can connect it to your SQL database and start building your compliance dashboard.
After your preferred install method has been fully setup, we need to move to setting up our data sources. (Access Grafana at http://localhost:3000/)to log in).
localhostcompliance_resultscompliance_userP@ssw0rdSELECT timestamp, device, rulename, status FROM results
To successfully complete this NetBrain-to-Grafana integration, here are all the tools, references, and example scripts you’ll need:
sudo apt update && sudo apt install mariadb-serverTerry has shared example Python scripts that can simplify:
✅ Fetching compliance data from NetBrain’s TAF-Lite API
✅ Parsing results into a structured SQL database
✅ Formatting data for easy visualization in Grafana
Find Terry’s scripts here:
GitHub Repository: Compliance Dashboard
This blog showcases a solution developed by Terry Fera, a veteran network engineer with more than 15 years of experience across mining, healthcare, and education sectors. Terry brings a rare combination of deep technical knowledge and a practical, customer-first mindset. His focus on real-world automation and data visualization enables NetBrain customers to solve complex challenges with accessible, scalable solutions.
As the mind behind this NetBrain-to-Grafana integration, Terry continues to drive innovation by making network compliance and observability more actionable for everyone—from frontline engineers to enterprise architects. His work exemplifies how NetBrain’s no-code platform can unlock value in ways that are both powerful and approachable.
Stay tuned for more of Terry’s insights, as he continues to simplify and extend the reach of network automation across the industry!
By following this guide, you’ve taken a major step toward automating network compliance tracking with NetBrain’s Golden Config Checks, MariaDB, and Grafana. You now have a fully functional compliance dashboard that transforms raw network configuration checks into a real-time visual monitoring system.
This project isn’t just about visualizing data—it’s about proactive network management. With these tools in place, you can:
✅ Identify non-compliant network configurations faster
✅ Reduce manual troubleshooting efforts
✅ Prevent network drift with continuous compliance tracking
This integration can scale with your organization’s needs, and you can expand it further by:
📌 Adding historical compliance trend tracking
📌 Triggering automated remediation in NetBrain
📌 Integrating ITSM tools like ServiceNow for alerts
Keep Exploring & Innovating!
We encourage you to modify the scripts, experiment with additional NetBrain automation features, and share your insights with the community! If you have questions, challenges, or cool enhancements, let us know—we’d love to hear how you’re using NetBrain with Grafana to drive automation success!
The best teams at the 2026 World Cup won’t be the ones with the most stars. They’ll be the ones with the best depth and support strategy. Great teams win...
The most important NOC at the 2026 FIFA World Cup won’t make the broadcast. No feature story. If everything goes right, no one will know it existed at all. That’s...
NetBrain’s big announcement was so big, it took over the Sphere. But this was Cisco Live, so let’s talk about what Cisco had to say too. In his keynote, Jeetu...
We use cookies to personalize content and understand your use of the website in order to improve user experience. By using our website you consent to all cookies in accordance with our privacy policy.