Skip to content

1DeliDolu/PRTG

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PRTG Grafana Datasource Plugin

This repository contains a Grafana datasource plugin for PRTG, allowing users to visualize and analyze PRTG metrics within Grafana.

Introduction

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.

Installation

First you need to download docker and go(golang) to your computer

Install Docker

Install Go

  1. Clone the repository:

    git clone https://github.com/1DeliDolu/PRTG.git
  2. Navigate to the plugin directory:

    cd PRTG/maxmarkusprogram-prtg-datasource
  3. Install dependencies:

    npm install
  4. Build the plugin:

    npm run build
  5. Build backend plugin

   mage
  1. Rename the dist directory to

    cp -r dist /var/lib/grafana/plugins/PRTG
    
  2. Restart Grafana:

    with wsl

    sudo systemctl restart grafana-server
    

** or with Powershell**

net stop grafana

net start grafana

... or

After clone, copy Prtg Folder to C:\Program Files\GrafanaLabs\grafana\data\plugins

Restart Grafana:

sudo systemctl restart grafana-server

Configuration

  1. Open Grafana and navigate to the Data Sources page.
  2. Click on "Add data source" and select "PRTG".
  3. Configure the PRTG datasource by providing the necessary connection details such as PRTG server URL, API key, and other relevant settings.
  4. Save and test the datasource to ensure it is working correctly.

Usage

  1. Create a new dashboard or open an existing one in Grafana.
  2. Add a new panel and select the PRTG datasource.
  3. Configure the query to fetch data from the desired PRTG sensors.
  4. Customize the visualization settings to display the data as needed.

Troubleshooting

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.

Additional Resources

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.

Config Editor

  1. Open http://localhost:3000/ in browser or http://grafana.prtg:3000/connections/datasources

1739793462631

  1. Press PRTG

1739793798353

  1. Enter your prtg server

1739793866048

  1. Enter your api-token and Press save & test

1739793921893

5.Press Build an Dashboard

1739794001603

6.Press Add visualizaton 1739794068185

7.Press PRTG

1739794166798

Query Metrics

Select Query Type

1739795234405

9.Select Group

1739795274666

10.Select Device

1739795311709

11.Select Sensor

1739795351207

12.Select Channel

1739795402834

13.Look at Panel

1739795452206

Options

14.Add Group name in panel 1739795578616

15.Add Device and Sensor 1739795687023

16.Add new query 1739795739188

17.Select Query, Group, Device, Sensor and Channel 1739795941422

18.An another example 1739796156994

19.Fill Opacity 1739796291106

20.Select Stat 1739796324396

Query Raw

1.Select Query Raw, Group, Device, Sensor, Property and Filter Property

1739796514348

  1. Examples

1739796591456

Query Text

1.Query Text 1739796808632 1739796830021

Panel

1739797181230

1739797385328

1739797413883

Video

  1. copy repository https://github.com/1DeliDolu/PRTG.git
``
  1. open vs code and terminal with bash. Clone Repository
``
  1. Open new terminal with wsl (i use debian) and land "maxmarkusprogram-prtg-datasource" cd maxmarkusprogram-prtg-datasource
``
  1. npm install
``
  1. npm run build
``
  1. mage
``
  1. mv dist/ Prtg
``
  1. close vs code
``
  1. copy
``
  1. paste Prtg in C:\Program Files\GrafanaLabs\grafana\data\plugins
``
  1. Stop and start Grafana with powershell
``
  1. Sign in

    at firts time user admin pasword admin

``
  1. Datasource panel
``

14.Create query

``
  1. dashboard
``