This repository contains a Grafana datasource plugin for PRTG, allowing users to visualize and analyze PRTG metrics within Grafana.
This Grafana datasource plugin integrates with PRTG, enabling users to fetch and display data from PRTG sensors directly in Grafana dashboards. It provides a seamless way to monitor and analyze PRTG data using Grafana's powerful visualization tools.
First you need to download docker and go(golang) to your computer
Install Docker
Install Go
-
Clone the repository:
git clone https://github.com/1DeliDolu/PRTG.git
-
Navigate to the plugin directory:
cd PRTG/maxmarkusprogram-prtg-datasource
-
Install dependencies:
npm install
-
Build the plugin:
npm run build
-
Build backend plugin
mage
-
Rename the
dist
directory tocp -r dist /var/lib/grafana/plugins/PRTG
-
Restart Grafana:
with wsl
sudo systemctl restart grafana-server
** or with Powershell**
net stop grafana
net start grafana
After clone, copy Prtg Folder to C:\Program Files\GrafanaLabs\grafana\data\plugins
Restart Grafana:
sudo systemctl restart grafana-server
- Open Grafana and navigate to the Data Sources page.
- Click on "Add data source" and select "PRTG".
- Configure the PRTG datasource by providing the necessary connection details such as PRTG server URL, API key, and other relevant settings.
- Save and test the datasource to ensure it is working correctly.
- Create a new dashboard or open an existing one in Grafana.
- Add a new panel and select the PRTG datasource.
- Configure the query to fetch data from the desired PRTG sensors.
- Customize the visualization settings to display the data as needed.
If you encounter any issues, please refer to the following troubleshooting steps:
- Ensure the PRTG server URL and API key are correctly configured.
- Check the Grafana server logs for any error messages.
- Verify that the plugin is correctly installed in Grafana's plugin directory.
- Restart Grafana and try again.
Feel free to contribute to this project by submitting issues or pull requests.
You can now save this content in the README.md file in your repository.
- Open
http://localhost:3000/
in browser orhttp://grafana.prtg:3000/connections/datasources
- Press PRTG
- Enter your prtg server
- Enter your api-token and Press save & test
5.Press Build an Dashboard
7.Press PRTG
Select Query Type
9.Select Group
10.Select Device
11.Select Sensor
12.Select Channel
13.Look at Panel
17.Select Query, Group, Device, Sensor and Channel
1.Select Query Raw, Group, Device, Sensor, Property and Filter Property
- Examples
- copy repository https://github.com/1DeliDolu/PRTG.git
- open vs code and terminal with bash. Clone Repository
- Open new terminal with wsl (i use debian) and land "maxmarkusprogram-prtg-datasource" cd maxmarkusprogram-prtg-datasource
- npm install
- npm run build
- mage
- mv dist/ Prtg
- close vs code
- copy
- paste Prtg in C:\Program Files\GrafanaLabs\grafana\data\plugins
- Stop and start Grafana with powershell
-
Sign in
at firts time
user admin pasword admin
- Datasource panel
14.Create query
``- dashboard