netbox-more-metrics
Create custom metrics and export information from NetBox into your timeseries database.
Compatibility
| NetBox Version | Plugin Version |
|---|---|
| 3.4 <= 3.7 | 0.1.X, 0.2.X |
| 4.0 <= 4.5 | 0.3.X, 0.4.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'
]
If you want to export the configured metrics without authentication set the plugin config export_metrics_without_auth to True.
By default, normal NetBox view permissions apply.
PLUGINS_CONFIG = {
'netbox_more_metrics' : {
'export_metrics_without_auth': True
}
}
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
Release files for netbox-more-metrics 0.4.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| netbox_more_metrics-0.4.0.tar.gz | 14.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| netbox_more_metrics-0.4.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 38.7 kB
Release files / netbox_more_metrics-0.4.0.tar.gz
| Download URL | netbox_more_metrics-0.4.0.tar.gz |
|---|---|
| Size | 14.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6c1671aadcfe5f7d60b154daa9da477b14faa30137b1dbc97df28453bd50b509
|
|
BLAKE2b-256 checksum How to use checksums |
bae634c1254919a68d486339331cb8b350efd179f8c1e6abb55adbe035f8ff04
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.1.2 CPython/3.13.11 Linux/6.17.9-zen1-1-zen
|
Release files / netbox_more_metrics-0.4.0-py3-none-any.whl
| Download URL | netbox_more_metrics-0.4.0-py3-none-any.whl |
|---|---|
| Size | 23.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c25618f51f5bdb7b2f2a7a81289b18243d2cc412ecc3cbb2451b99407e747ab6
|
|
BLAKE2b-256 checksum How to use checksums |
2ff7f87d345bb5d86ad758bd7515c545401fd589a9d5d1f93396397ad45740ac
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.1.2 CPython/3.13.11 Linux/6.17.9-zen1-1-zen
|