Hello @markus.wiedmer
Welcome back to the community
On v1.6.0, Prometheus pump was missing the _META
postfix in its default environment variable prefix.
A fix for this is included in Pump 1.7.0 set to be released later this month/early Dec.
The custom metrics work fine when configured in the pump.conf though. See a sample configuration below:
"prometheus": {
"type": "prometheus",
"meta": {
"listen_address": ":8092",
"path": "/metrics",
"custom_metrics": [
{
"name": "tyk_http_requests_total",
"description": "Total of API requests",
"metric_type": "counter",
"labels": ["response_code", "api_name", "method", "api_key","alias", "path"]
},
{
"name": "tyk_http_latency",
"description": "Latency of API requests",
"metric_type": "histogram",
"labels": ["type", "response_code", "api_name", "method", "api_key", "alias", "path"]
}
]
}
}
Will this be a way forward for you until v1.7 is out?