kubeshop / kusk-gateway

Kusk-gateway is an OpenAPI-driven API Gateway for Kubernetes
https://kubeshop.github.io/kusk-gateway/
MIT License
260 stars 21 forks source link

API Analytics #756

Open olensmar opened 2 years ago

olensmar commented 2 years ago

I would like to be able to specify a GA property which would then be used by Kusk to send operation-level event data to GA - i.e. something in the line of

x-kusk:
  analytics:
     google:
        GA-property: UA-129389w84

The operationId would be used by default for tracked events - but I should be able to override this at the operation-level using a corresponding x-kusk extension.

Furthermore - I should be able to disable analytics at the path or operation level:

x-kusk:
  analytics:
     disabled: true
jasmingacic commented 1 year ago

Does this mean collecting and sending data to users Google Analytics or any other analytics engine?

olensmar commented 1 year ago

I was thinking we start with GA (since it's free) and add other engines if/when the need arises!?

jasmingacic commented 1 year ago

Yeah, probably we should stick to limited version of providers.

Just to clarify this feature would allow users to track traffic metrics coming to the API?

olensmar commented 1 year ago

precisely!