Hello,
I am deploying Tyk CE using Headless helm chart but it seems it is looking all the time by default onto MongoDB for Pump
the below is my Pump configMap and also the error that i have :
Also as described here in this issue the pump doesn't pump to Prometheus · Issue #164 · TykTechnologies/tyk-helm-chart · GitHub i have added all related environment variables under “Pump” section but same issue
{
"log_level": "debug",
"analytics_storage_type": "redis",
"analytics_storage_config": {
"type": "redis",
"hosts": null,
"username": "",
"optimisation_max_idle": 2000,
"optimisation_max_active": 4000
},
"pumps": {
"prometheus": {
"type": "prometheus",
"meta": {
"listen_address": "prometheus-server.default.svc.cluster.local:80",
"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"]
}
]
}
}
},
"dont_purge_uptime_data": false,
"purge_delay": 2,
"uptime_pump_config": {
"collection_name": "tyk_uptime_analytics_headless"
}
}
and i am getting this log:
time="Mar 9 18:23:33" level=info msg="## Tyk Analytics Pump, 1.5.1 ##"
time="Mar 9 18:23:33" level=debug msg="Connecting to redis cluster"
time="Mar 9 18:23:33" level=debug msg="Creating new Redis connection pool"
time="Mar 9 18:23:33" level=info msg="--> [REDIS] Creating single-node client"
time="Mar 9 18:23:33" level=debug msg="[STORE] SET Raw key is: pump"
time="Mar 9 18:23:33" level=debug msg="Input key was: version-check-pump"
time="Mar 9 18:23:33" level=debug msg="[STORE] Setting key: version-check-pump"
time="Mar 9 18:23:33" level=debug msg="Input key was: version-check-pump"
time="Mar 9 18:23:33" level=info msg="Serving health check endpoint at http://localhost:8083/health ..."
time="Mar 9 18:23:33" level=debug msg="Checking MongoDB Aggregate Pump env variables with prefix TYK_PMP_PUMPS_MONGOAGGREGATE_META"````