Skip to content

zephyr325/Grafana-for-PeaNUT

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Grafana-for-PeaNUT

This is a Grafana dashboard extending PeaNUT's native capability to push UPS statistics to an InfluxDB v 2.x database while providing functioning panels to create your own personal dashboard.

Features

  • Multiple types of pre-built Grafana panels with a variety of metrics including base UPS statistics, power costs, previous outage tracking, multiple style choices, and other miscellaneous information. All are arranged in rows for drag-and-drop convenience.

  • Week, month, and annual aggregations using hourly integral metrics to increase precision

  • Timezone-aware queries (automatically set to the browser's timezone) ensuring that the default Influx UTC-based time data reflects the local time when aggregating data

  • Flexible power output reporting - Automatically uses the ups load percent (more commonly available, but less precise) for output power readings, but a single-click change to realpower output (less commonly available, but more precise) changes all the panels

  • Queries have been optimized to reduce load/refresh times, and it uses template variables for static or rarely-changing values

  • Queries are also published separately - if you want to add the data to your existing dashboard, you don't have to dig through a Grafana JSON files to try to find them. Also, all metrics maintain the NUT naming standard for portability.

Pre-Built Panels

Usage

Importing the Dashboard

  1. Ensure that your PeaNUT instance is correctly communicating with your InfluxDB database. For more information on that, see here.
  2. Download the dashboard JSON file.
  3. In your Grafana instance, go to Dashboards and click on the "^" character in the "New" button. This will give you the ability to import a JSON file.
  4. Use the "Upload dashboard JSON file" box to select the dashboard file, and click "Load"
  5. Select your InfluxDB database, and click "Import"

Customizing Your Dashboard

Dashboards tend to be driven by your personal preferences of both functionality and style; this dashboard has pre-built panels for a range of information and styles to choose from. Implementing this is fairly straightfoward:

  • The top area already includes a few dashboard panels.
  • All the template panels are in the rows below that area. After clicking the "Edit" button (top right of the page), either just drag the panels you want to the top, or you can duplicate a panel (top right 3 dots --> More --> Duplicate) and move that to the top.
  • Arrange and resize the panels to your preference.
  • Minimize or delete the rows once you're done; this will prevent unecessary server-side load and your dashboard page's load/refresh time.
  • Note that several of the panels and variables have information in the information section; hover over the circled "i" to see that.

Acknowledgements & Other Info

This dashboard was conceptualized and based on the hours of work by gilbn and artstar. Many thanks for that time and effort!

About

This is a Grafana dashboard using PeaNUT's native capability to write UPS metrics to an InfluxDB database.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages