Tyk Pump Configuration on Kubernetes

Hello,
I have tyk-ce on Kubernetes and would like to monitor it via Prometheus.

Reagrding to the documentation here;
https://tyk.io/docs/tyk-pump/tyk-pump-configuration/tyk-pump-dashboard-config/

  1. Set “use_sharded_analytics” to true in “tyk_analytics.conf” //// How/where should I set it in helm file?
  2. Use the following pump.conf: … /// How/where can I use pump.conf in Kubernetes environment?
  3. Mongo is mentioned in all documentation but I don’t have Mongo; do I have to have a Mongo for monitoring?

Reagrds

1 Like
  1. Set “use_sharded_analytics” to true in “tyk_analytics.conf” //// How/where should I set it in helm file?

I have not installed tried the dashboard out yet on k8. My guess is that there is an editable config data somewhere in ConfigMaps. Or you could use environment variables (in this case = TYK_DB_USESHARDEDANALYTICS). Just to confirm, what license do you have, OSS or Self Managed? The self managed comes with a dashboard.

  1. Use the following pump.conf: … /// How/where can I use pump.conf in Kubernetes environment?

If you can add environment variables, then you could also use that for pump as well. the prefix is TYK_PMP_. You can read more here Tyk Pump Environment Variables

  1. Mongo is mentioned in all documentation but I don’t have Mongo; do I have to have a Mongo for monitoring?

No, you do not need Mongo for monitoring.

Thank you @Olu Things are clearer in my mind now.

In docs and in repo. There’s a typo. TYK_DB_USESHARDEDANLAYTICS should be TYK_DB_USESHARDEDANALYTICS (ANLAYTICS should be ANALYTICS)

Not sure which one works in tyk dashboard

Reference:
https://tyk.io/docs/tyk-dashboard/configuration/#use_sharded_analytics

cc: @Olu

Update: I have created this PR to fix this fix(tyk_analytics.env): typo in TYK_DB_USESHARDEDANLAYTICS by armujahid · Pull Request #46 · TykTechnologies/tyk-pro-docker-demo · GitHub

1 Like