Uploaded image for project: 'Red Hat Fuse'
  1. Red Hat Fuse
  2. ENTESB-14358

Camel K Grafana dashboards

XMLWordPrintable

    • Icon: Feature Request Feature Request
    • Resolution: Won't Do
    • Icon: Major Major
    • camel-k-1.6.6
    • None
    • Camel-K
    • % %
    • ?
    • 0
    • 0% 0%

      What

      For SRE or a customer to manage Camel K, they need a visual representation of the metrics, specifically the SLIs.

      How

      The dashboard is a GrafanaDashboard resource. This will be the same as the creation and reconciliation of other child resources created as part of a IntegrationPlatform CR instantiation, for example, the deployment resource.

      Futher Information:

      Note:

      • This could be feature flagged in the CR spec and only created if turned on
      • The grafana operator needs to be installed on cluster for the GrafanaDashboard CR kind to exist. It is easy to check for the existence of a resource kind using the following code
        import (
        	"github.com/operator-framework/operator-sdk/pkg/k8sutil"
        	"k8s.io/client-go/discovery"
        	"k8s.io/client-go/rest"
        )
        
        ...
        
        // hasServiceMonitor checks if ServiceMonitor is registered in the cluster.
        func hasServiceMonitor(config *rest.Config) (bool, error) {
        	dc := discovery.NewDiscoveryClientForConfigOrDie(config)
        	apiVersion := "integreatly.org/v1alpha1"
        	kind := "GrafanaDashboard"
        
        	return k8sutil.ResourceExists(dc, apiVersion, kind)
        }
        

            Unassigned Unassigned
            dffrench@redhat.com David Ffrench
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: