---
apiVersion: v1
kind: ConfigMap
metadata:
  name: app-wavefront
  namespace: spring-petclinic-dib
data:
  MANAGEMENT_METRICS_EXPORT_WAVEFRONT_ENABLED: "true"
#  MANAGEMENT_METRICS_EXPORT_WAVEFRONT_URI: "proxy://wavefront-proxy.wavefront.svc.cluster.local:2878"
# service name: wavefront-proxy-tanzu, ns: tanzu-observability-saas
  MANAGEMENT_METRICS_EXPORT_WAVEFRONT_URI: "proxy://wavefront-proxy-tanzu.tanzu-observability-saas.svc.cluster.local:2878"
  WAVEFRONT_FREEMIUM_ACCOUNT: "false"
  SPRING_ZIPKIN_ENABLED: "true"
# dib 
#  SPRING_ZIPKIN_BASEURL: "https://wavefront-proxy.wavefront.svc.cluster.local:9411"
  SPRING_SLEUTH_SAMPLER_PROBABILITY: "1.0"

  # Don't forget to reuse the same K8s cluster name used by the Wavefront proxy
  # 10.decembre.
  WAVEFRONT_APPLICATION_CLUSTER: dev-cluster
# dib add this field for all app's
  WAVEFRONT_APPLICATION_NAME: dib-petclinic