Hi
after deploying tyk-gateway CE in a so easy way, I’m facing difficulties about tyk-pump config (and analytics)
I get several test apps working fine on tyk-gateway and I updated gateway config to activate analytics
...
"enable_analytics": true,
"analytics_config": {
"type": "",
"storage_expiration_time":120,
"ignored_ips": [],
"normalise_urls": {
"enabled": true,
"normalise_uuids": true,
"normalise_numbers": true,
"custom_patterns": []
}
},
And I install Tyk Pump and setup with same Redis DB
{
"analytics_storage_type": "redis",
"analytics_storage_config": {
"type": "redis",
"host": "localhost",
"hosts": null,
"port": 6379,
"username": "",
"password": "XXXXXX",
"database": 0,
"optimisation_max_idle": 2000,
"optimisation_max_active": 4000,
"enable_cluster": false,
"redis_use_ssl": false,
"redis_ssl_insecure_skip_verify": false
},
"log_level":"info",
"log_format":"text",
"purge_delay": 5,
"health_check_endpoint_name": "hello",
"health_check_endpoint_port": 8083,
"pumps": {
"syslog": {
"name": "syslog",
"meta": {
"transport": "udp",
"network_addr": "localhost:5140",
"log_level": 6,
"tag":"syslog-pump"
}
},
"elasticsearch": {
"type": "elasticsearch",
"meta": {
"index_name": "tyk_analytics",
"elasticsearch_url": "http://xxxxxxxxxx:9200",
"enable_sniffing": false,
"document_type": "tyk_analytics",
"rolling_index": false,
"extended_stats": false,
"version": "6"
}
}
},
"dont_purge_uptime_data": false,
"omit_detailed_recording": false
}
I launch both service a cli with --DEBUG flag to check what’s happing… and nothing, in log, syslog… except in / out trace for proxy on tyk-gateway
I checked Redis DB and keys show that both are well connected to
127.0.0.1:6379> KEYS * | |
---|---|
1) tyk-liveness-probe | |
2) apikey-73bba5f1 | |
3) host-checker:PollerActiveInstanceID | |
4) redis-test-xxxxxxxxxxxxxxxxx | |
5) quota-73bba5f1 | |
6) apikey-995f85f8 | |
7) version-check-pump | |
8) analytics-tyk-system-analytics | |
9) foo |
Key 7 is from pump
Key 8 looks like linked to analytics and disappears (from Gateway)
But pump seems not finding in DB something to do nor display attempt to pump something in DB
is it gateway not writing analytics or pump not finding the right key?
thanks for help
S.