-
Feature
-
Resolution: Won't Do
-
Major
-
None
-
0
-
0%
-
Todo
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) }
- is related to
-
ENTESB-14497 Camel K operator monitoring
- Closed
- links to