Provide customized metrics on data stored in NetBox.
Project description
netbox-more-metrics
Create custom metrics and export information from NetBox into your timeseries database.
Compatibility
NetBox Version | Plugin Version |
---|---|
3.4 | 0.1.X, 0.2.X |
Installing
For adding to a NetBox Docker setup see the general instructions for using netbox-docker with plugins.
Install
pip install netbox-more-metrics
or by adding to your local_requirements.txt
or plugin_requirements.txt
(netbox-docker):
netbox-more-metrics
Development Install
If you would like to install a version not yet published to pypi.
pip install git+https://github.com/TheDJVG/netbox-more-metrics
or by adding to your local_requirements.txt
or plugin_requirements.txt
(netbox-docker):
git+https://github.com/TheDJVG/netbox-more-metrics
NetBox Configuration
Enable the plugin in /opt/netbox/netbox/netbox/configuration.py
,
or if you use netbox-docker, your /configuration/plugins.py
file :
PLUGINS = [
'netbox_more_metrics'
]
Features
Custom metrics
For example, you could track the amount of active devices over time by rack and site
Any model can be exported, data is grouped by the labels.
Filter validation
Every filter is tested on save and also when the metric is initiated for exporting.
Heavy lifting is done by the database
As much as possible is done in the database directly to take advantage of any Model specific optimizations.
null
database values are converted to a string "null"
.
Functions
- Metrics can be included in the global metric endpoint (
/metrics
). - Metrics and MetricCollections can be individually exported (as long as the Metric(Collection) is enabled)
Future ideas
- Adding a way to export utilization (e.g. how many IPs of a prefix are used, or how much power is still available on a feed).
More ideas welcome!
Missing
- Tests
- Documentation
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for netbox_more_metrics-0.2.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 63e2306840f2abfa6fedd6eb1432e66f665f262b8f8ae3f0144e9f4c245d1cde |
|
MD5 | a02bca206b695399e5f0c310ea84efa6 |
|
BLAKE2b-256 | b3d913232e28a5df229622b4dd8a30d23fc225667b896b97e2cbbe300c37401f |
Hashes for netbox_more_metrics-0.2.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0f018ad32588e79a351030601a90abfcec23e6c30b007036f31c8431c5c68dfe |
|
MD5 | 19fb4ebfffce95efd631b6f862e3d89f |
|
BLAKE2b-256 | e9fe216a7106a74703a3035054f92fcb6d61f2ccd38ee344bd2beb4953593298 |