ServiceWeaver / weaver-kube

Run Service Weaver applications on vanilla Kubernetes.
Apache License 2.0
61 stars 19 forks source link

Gate Prometheus and Jaegar behind flags. #25

Closed mwhittaker closed 1 year ago

mwhittaker commented 1 year ago

18

rgrandl commented 1 year ago

I think we should think a little bit more on how to do this.

It makes sense to disable both prometheus and jaeger for testing (if part of a continuous integration thing). In that case, we should have a single flag that disable observability.

Otherwise, we need ways for the user to easily plug their custom prometheus and jaeger service, which should probably be done through configuration. Otherwise, if they disable jaeger/prometheus through flags, there is no easy way (or no option at all) for them to provide an alternative.

Prometheus:

Jaeger:

mwhittaker commented 1 year ago

Changed the PR to a draft for now.

rgrandl commented 1 year ago

We might want to close this PR. In https://github.com/ServiceWeaver/weaver-kube/pull/44 we added support to enable integration with external monitoring services. Prometheus for metrics, Jaeger for traces, Loki for logs and Grafana for dashboard and other things.