Integration O11y Service

    If you already have external prometheus service and you want to connect it to Grafana (established by vela addon), you can create a GrafanaDatasource to register it through KubeVela application.

    For example, if you are using the Prometheus service on Alibaba Cloud (ARMS), you can go to the Prometheus setting page and find the access url & access token.

    1. apiVersion: core.oam.dev/v1beta1
    2. kind: Application
    3. name: register-grafana
    4. spec:
    5. - type: grafana-access
    6. name: my-grafana
    7. properties:
    8. endpoint: <my-grafana url>

    To get your grafana access, you can go into your Grafana instance and configure API keys.

    grafana-apikeys

    Then copy the token into your grafana registration configuration.

    1. NAME ENDPOINT CREDENTIAL_TYPE
    2. default http://grafana.o11y-system:3000 BasicAuth
    3. my-grafana https://grafana-rngwzwnsuvl4s9p66m.grafana.aliyuncs.com:80/ BearerToken

    Now you can manage your dashboard and datasource on your grafana instance through the native Kubernetes API as well.

    1. # show all the datasource you have

    For more details, you can refer to vela-prism.

    It is also possible to make integrations through KubeVela’s configuration management system, no matter you are using CLI or VelaUX.

    There are a wide range of community tools or eco-systems that users can leverage for building their observability system, such as prometheus-operator or DataDog. By far, KubeVela does not have existing best practices for those integration. We may integrate with those popular projects through KubeVela addons in the future. We are also welcome to community contributions for broader explorations and more connections.