Application team required to limit the amount of requests sent to the backend database. Implemented the Apply Throughput Quota Assertion but need to find a way to monitor the processing of the load
Gateway 11.X
Monitor by using the List of Context Variables Created by Apply Throughput Quota Assertion
Added context variables around counters to audit detals record, SSG log, OR Traffic Logger
${counter.id} Returns the name of the counter used in the assertion.
${counter.value} Returns the current value of the counter.
${counter.period} Returns the period used for the counter (second, hour, day, month).
${counter.max} Returns the maximum quota value.
Example Traffic Logger:
ClusterWideProperty(CWP) trafficlogger.detail: GATEWAY_NAME=${ssgnode.name}| SERVICE_NAME=${service.name} | REQUEST_URL=${request.url} | Quotas Counter ID: ${counter.id} Counter Value: ${counter.value} Counter Max ${counter.max} Counter Period: ${counter.period}
Example log message:
2025-03-30T10:13:16.960-0700 INFO 3784 com.l7tech.traffic: GATEWAY_NAME=Gateway1| SERVICE_NAME=counters Test3 | REQUEST_URL=http://<gateway_host>:8080/counters3 | Quotas Counter ID: PRESET(2e470da574acafb1) Counter Value: 1 Counter Max 2 Counter Period: minute