You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -96,11 +99,11 @@ In the future it will be possible to add metrics by adding them in a predefined
96
99
97
100
The behavior of the app_metrics feature can be controlled with the following list of settings (under `netbox_metrics_ext > app_metrics`):
98
101
-`reports` boolean (default True), publish stats about the reports (success, warning, info, failure)
99
-
-`queues` boolean (default True), publish stats about RQ Worker (nbr of worker, nbr andtype of job in the different queues)
100
-
-`models` nested dict, publish the count for a given object (Nbr Device, Nbr IP etc.. ). The first level must be the name of the module in lowercase (dcim, ipam etc..), the second level must be the name of the object (usually starting with a uppercase)
102
+
-`queues` boolean (default True), publish stats about RQ Worker (nbr of worker, nbr and type of job in the different queues)
103
+
-`models` nested dict, publish the count for a given object (Nbr Device, Nbr IP etc.. ). The first level must be the name of the module in lowercase (dcim, ipam etc..), the second level must be the name of the object (usually starting with a uppercase)
This plugin add a new django management command `rqworker_metrics` that is behaving identically to the default `rqworker` command except that this command also exposes a prometheus endpoint (default port 8001).
126
+
This plugin add a new django management command `rqworker_metrics` that is behaving identically to the default `rqworker` command except that this command also exposes a prometheus endpoint (default port 8001).
124
127
125
-
With this endpoint it become possible to instrument the tasks running asyncronously in the worker.
128
+
With this endpoint it become possible to instrument the tasks running asyncronously in the worker.
126
129
127
130
## Usage
128
131
129
132
The new command needs to be executed on the worker as a replacement for the default `rqworker`
130
133
```
131
-
python manage.py rqworker_metrics
134
+
python manage.py rqworker_metrics
132
135
```
133
136
134
137
The port used to expose the prometheus endpoint can be configured for each worker in CLI.
> The plugin is compatible with NetBox 2.8.1 and higher
150
-
153
+
151
154
To ensure Application Metrics Plugin is automatically re-installed during future upgrades, create a file named `local_requirements.txt` (if not already existing) in the NetBox root directory (alongside `requirements.txt`) and list the `ntc-netbox-plugin-metrics-ext` package:
Included within this plugin is a Grafana dashboard which will work with the example configuration above. To install this dashboard import the JSON from [Grafana Dashboard](netbox_grafana_dashboard.json) into Grafana.
Pull requests are welcomed and automatically built and tested against multiple version of Python and multiple version of NetBox through TravisCI.
@@ -186,7 +195,7 @@ The project is following Network to Code software development guideline and is l
186
195
187
196
### CLI Helper Commands
188
197
189
-
The project is coming with a CLI helper based on [invoke](http://www.pyinvoke.org/) to help setup the development environment. The commands are listed below in3 categories `dev environment`, `utility`and`testing`.
198
+
The project is coming with a CLI helper based on [invoke](http://www.pyinvoke.org/) to help setup the development environment. The commands are listed below in 3 categories `dev environment`, `utility` and `testing`.
190
199
191
200
Each command can be executed with `invoke <command>`. All commands support the arguments `--netbox-ver` and `--python-ver` if you want to manually define the version of Python and NetBox to use. Each command also has its own help `invoke <command> --help`
192
201
@@ -199,14 +208,14 @@ Each command can be executed with `invoke <command>`. All commands support the a
199
208
stop Stop NetBox and its dependencies.
200
209
```
201
210
202
-
#### Utility
211
+
#### Utility
203
212
```
204
213
cli Launch a bash shell inside the running NetBox container.
205
214
create-user Create a new user in django (default: admin), will prompt for password.
0 commit comments