Hi there,
this seems to me like the 101 of the Tyk Gateway but I can’t seem to get the gateway storing analytics data on Redis. A connection to Redis is established as the GW is storing the apikey-xxxxxx keys correctly but there’s no trace of analytics. Therefore, Tyk Pump is unable to pump data to the dashboard.
I’m using a dockerised version of the GW:
FROM tykio/tyk-gateway:latest
COPY tyk.conf /opt/tyk-gateway
And my tyk.conf:
{
"listen_port": 8080,
"secret": "352d20ee67be67f6340b4c0605b044b7",
"template_path": "/opt/tyk-gateway/templates",
"use_db_app_configs": false,
"app_path": "/opt/tyk-gateway/apps",
"middleware_path": "/opt/tyk-gateway/middleware",
"storage": {
"type": "redis",
"host": "redis",
"port": 6379,
"username": "",
"password": "",
"database": 0,
"optimisation_max_idle": 2000,
"optimisation_max_active": 4000
},
"enable_analytics": true,
"analytics_config": {
"enable_detailed_recording": true
"type": "redis",
"ignored_ips": [],
"enable_geo_ip": false,
"geo_ip_db_path": "",
"normalise_urls": {
"enabled": true,
"normalise_uuids": true,
"normalise_numbers": true,
"custom_patterns": []
}
},
"health_check": {
"enable_health_checks": false,
"health_check_value_timeouts": 60
},
"dns_cache": {
"enabled": false,
"ttl": 3600
},
"policies": {
"policy_source": "file",
"policy_record_name": "/opt/tyk-gateway/policies/policies.json"
},
"optimisations_use_async_session_write": true,
"allow_master_keys": false,
"hash_keys": true,
"suppress_redis_signal_reload": false,
"close_connections": false,
"enable_non_transactional_rate_limiter": true,
"enable_sentinel_rate_limiter": false,
"local_session_cache": {
"disable_cached_session_state": false
},
"uptime_tests": {
"disable": false,
"config": {
"enable_uptime_analytics": false,
"failure_trigger_sample_size": 2,
"time_wait": 10,
"checker_pool_size": 50
}
},
"http_server_options": {
"enable_http2": true,
"enable_websockets": true
},
"hostname": "",
"enable_custom_domains": true,
"proxy_enable_http2": true,
"enable_jsvm": true,
"oauth_redirect_uri_separator": ";",
"coprocess_options": {
"enable_coprocess": false,
"coprocess_grpc_server": "",
"python_path_prefix": "/opt/tyk-gateway"
},
"pid_file_location": "./tyk-gateway.pid",
"allow_insecure_configs": true,
"public_key_path": "",
"close_idle_connections": false,
"allow_remote_config": false,
"enable_bundle_downloader": true,
"bundle_base_url": "",
"global_session_lifetime": 100,
"force_global_session_lifetime": false,
"max_idle_connections_per_host": 500
}
I’ve got 4 working API definition, one keyless and the rest with JWT auth (couldn’t get the key signature validation working either but that’s another topic).
After a while hitting some API endpoints, this is how the redis database 0 looks like:
Appreciate any help to get the analytics stored on Redis so Pump can do its job.
Thanks!