jenningsloy318 / panos_exporter

paloalto os expoter for prometheus
Apache License 2.0
21 stars 16 forks source link

session buffer metrics #26

Open monkies opened 9 months ago

monkies commented 9 months ago

Can I please request having the results from the following query added.

<show><session><packet-buffer-protection></packet-buffer-protection></session></show>

It has the added complexity of having results for multiple dataplanes if the platform has more than one. So the response could be either

`

True False 933 17203 13762 0 200 100 500 0 True False True False 834 17203 13762 0 200 100 500 0 True False

`

or

`

True False 933 17203 13762 0 200 100 500 0 True False

`

Also once PBP is activated the output contains all the entries in the buffer table. For testing you can put the PBP in to monitor only mode and set the threshold low to force something to show in the table.

`

True
<is-monitor-only>True</is-monitor-only>
<congestion>3984</congestion>
<congestion-max>16998</congestion-max>
<max-tolerate>13598</max-tolerate>
<use-latency>0</use-latency>
<latency-activate-thresh>200</latency-activate-thresh>
<latency-deactivate-thresh>100</latency-deactivate-thresh>
<latency-max-tolerate-thresh>500</latency-max-tolerate-thresh>
<last-latency>0</last-latency>
<is-mitigation-enabled>True</is-mitigation-enabled>
<is-running>True</is-running>
<deactivate-time>-1</deactivate-time>
<is-seeing-traffic>True</is-seeing-traffic>
<is-learning>False</is-learning>
<drop-probability>27</drop-probability>
<drop-thresh>3</drop-thresh>
<entries>
  <entry>
    <value>48258</value>
    <zone>VPN</zone>
    <pcs>105</pcs>
    <perc>1</perc>
    <drop-state>No</drop-state>
    <num-total>13905</num-total>
    <num-dropped>0</num-dropped>
    <time-till-discard>N/A</time-till-discard>
  </entry>
  <entry>
    <value>10.69.229.193</value>
    <zone>VPN</zone>
    <pcs>50</pcs>
    <perc>0</perc>
    <drop-state>No</drop-state>
    <num-total>28012</num-total>
    <num-dropped>0</num-dropped>
    <time-till-discard>N/A</time-till-discard>
  </entry>
</entries>

</sw.comm.s1.dp0.packet-buffer-protection> `