add Linux Softnet Stat app (#15094)

* add linux_softnet_stat poller

* add graphs and app page for linux_softnet_stat

* fix polling

* rename a few items, clean up the app specific page, and add to the apps page

* convert from derive to counter

* save the budget and budget_usecs to app data

* display current value of the budgets

* now track budget values

* add tests data

* rename it

* add docs for Linux Softnet Stat

* re-order and add budget for app page graph order

* style fix

* correct data location

* fix metrics for the json
This commit is contained in:
Zane C. Bowers-Hadley
2023-06-11 09:37:55 -05:00
committed by GitHub
parent 3190bdb8b2
commit 0ed68e33de
14 changed files with 322 additions and 0 deletions

View File

@@ -0,0 +1,86 @@
{
"applications": {
"discovery": {
"applications": [
{
"app_type": "linux_softnet_stat",
"app_state": "UNKNOWN",
"discovered": "1",
"app_state_prev": null,
"app_status": "",
"app_instance": "",
"data": null
}
]
},
"poller": {
"applications": {
"0": {
"app_type": "linux_softnet_stat",
"app_state": "OK",
"discovered": "1",
"app_state_prev": "UNKNOWN",
"app_status": "",
"app_instance": "",
"data": "{\"budget\":\"300\",\"budget_usecs\":\"8000\"}"
}
},
"application_metrics": [
{
"metric": "backlog_length",
"value": "0",
"value_prev": null,
"app_type": "linux_softnet_stat"
},
{
"metric": "budget",
"value": "300",
"value_prev": null,
"app_type": "linux_softnet_stat"
},
{
"metric": "budget_usecs",
"value": "8000",
"value_prev": null,
"app_type": "linux_softnet_stat"
},
{
"metric": "cpu_collision",
"value": 0,
"value_prev": null,
"app_type": "linux_softnet_stat"
},
{
"metric": "flow_limit",
"value": 0,
"value_prev": null,
"app_type": "linux_softnet_stat"
},
{
"metric": "packet_dropped",
"value": 0,
"value_prev": null,
"app_type": "linux_softnet_stat"
},
{
"metric": "packets",
"value": 395382025,
"value_prev": null,
"app_type": "linux_softnet_stat"
},
{
"metric": "received_rps",
"value": 0,
"value_prev": null,
"app_type": "linux_softnet_stat"
},
{
"metric": "time_squeeze",
"value": 0,
"value_prev": null,
"app_type": "linux_softnet_stat"
}
]
}
}
}

File diff suppressed because one or more lines are too long