A very simple example of how to make PRTG Network Monitor metrics available to Prometheus.
prtg-exporter-core uses PrtgAPI to receive the metrics and prometheus-net to export metrics to Prometheus.
You can build the project with dotnet. Clone the repo and execute:
dotnet build
Create a configuration file (prtgexporter.json) or use environment variables containing your server credentials:
{
"PRTG": {
"Server": "http://localhost",
"Username": "yourapiuser",
"Password": "yourpassword"
},
"Exporter": {
"Port": "1234",
"RefreshInterval": 120
}
}