Skip to main content
Below are example PromQL queries you can use to analyze Apinizer Gateway metrics. These queries can be used in Grafana dashboards or Prometheus Query UI.

API Traffic Analyses

Total Request Count

Calculates total API request count for a specific time range

Requests Per API

Shows request count separately for each API

Success Rate

Calculates the ratio of successful requests to total requests

Error Analysis

Detects APIs with highest error rates

1. Total API Request Count (for 1 hour)

2. Request Count Per API (for 5 minutes)

3. API Success Rate (%) (for 10 minutes)

4. APIs with Highest Error Rate (for 5 minutes)

5. Average Response Time Per API (for 5 minutes)

External Connection Analyses

These queries are used to analyze the performance of external service calls made through Apinizer Gateway.

1. Error Rate Per Target URL

2. Slowest Services (Average Response Time)

Cache Analyses

These queries are used to analyze cache performance and cache hit rates.

1. Cache Hit Rate (%)

2. Cache Hit Rate Per API (%)

JVM Analyses

These queries are used to monitor JVM performance and resource usage in the worker (gateway) pod.

1. Memory Usage Percentage

2. Garbage Collection Duration

3. Thread Count