You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, KubePlus tracks the following metrics by default: CPU, memory, ingress network, egress network, and storage. We should support the ability to track application-specific metrics through ResourceMonitor CRD. The assumption here will be that the application exposes such metrics at some endpoint that KubePlus is able to scrape and surface out for ingesting into Prometheus.
The text was updated successfully, but these errors were encountered:
devdattakulkarni
changed the title
Support for application-specific metrics tracking.
Support for application-specific metrics tracking
Apr 16, 2024
devdattakulkarni
changed the title
Support for application-specific metrics tracking
Add support for application-specific metrics tracking
Apr 16, 2024
devdattakulkarni
changed the title
Add support for application-specific metrics tracking
Support for application-specific metrics tracking
May 14, 2024
The ResourceMonitor spec looks like this: resmonitor: apiVersion: workflows.kubeplus/v1alpha1 kind: ResourceMonitor metadata: name: hello-world-service-monitor spec: resource: kind: HelloWorldService group: platformapi.kubeplus version: v1alpha1 # This attribute indicates that Pods that are reachable through all the relationships should be used # as part of calculating the monitoring statistics. monitorRelationships: all
We can add an endpoints array to it, as follows:
resmonitor: apiVersion: workflows.kubeplus/v1alpha1 kind: ResourceMonitor metadata: name: hello-world-service-monitor spec: resource: kind: HelloWorldService group: platformapi.kubeplus version: v1alpha1 # This attribute indicates that Pods that are reachable through all the relationships should be used # as part of calculating the monitoring statistics. monitorRelationships: all app_endpoints: []
The app_endpoints will need to be accessible on the app_urls for every app instance.
kubectl metrics plugin can check if app_endpoints have been defined for the ResourceMonitor object. If there is, then it will need to get the app's url and then invoke the endpoints to get the app-specific metrics.
Currently, KubePlus tracks the following metrics by default: CPU, memory, ingress network, egress network, and storage. We should support the ability to track application-specific metrics through ResourceMonitor CRD. The assumption here will be that the application exposes such metrics at some endpoint that KubePlus is able to scrape and surface out for ingesting into Prometheus.
The text was updated successfully, but these errors were encountered: