Prometheus Components
This component currently only works on the Apiman Vert.x Gateway |
Apiman components for Prometheus.
Prometheus is a popular scrape metrics and monitoring platform.
If you choose Prometheus metrics, you can access your metrics data via: <Apiman gateway node IP address>:<port configured>
.
Metrics will be per gateway instance; it is not a distributed metrics store. Each gateway will need to be individually added to your Prometheus scrape mappings.
Global Required Parameters
Name | Type | Description |
---|---|---|
|
Integer |
Port for Prometheus scrape server to listen on
|
Components
Metrics
Set the metrics implementation as shown.
apiman-gateway.metrics=io.apiman.gateway.engine.prometheus.PrometheusScrapeMetrics
"metrics": {
"class": "io.apiman.gateway.engine.prometheus.PrometheusScrapeMetrics",
"config": {
"client": {
"type": "es",
"protocol": "${apiman.es.protocol}",
"host": "${apiman.es.host}",
"port": "${apiman.es.port}"
// <metrics configuration>
}
}
}
Currently, the fields captured include:
- requests_total
-
Total number of requests
- errors_total
-
Total number of errors
- policy_failures_total
-
Total number of Apiman policy failures (i.e. a policy refused traffic)
- request_duration_milliseconds
-
Request duration in milliseconds.