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
* Create page to view Deployment, StatefulSet, DaemonSet, CronJob and Job details.
41
-
* Basic detailed pages for different resources is implemented.
42
-
* Create page for Cluster overview.
43
-
* Basic cluster overview page is implemented.
44
-
* Implement sorting by columns.
45
-
* Initial sorting for Pods is implemented.
46
-
* Display alerts on the resources.
47
-
* Alerts are displayed for Pods, DaemonSets and StatefulSets
48
-
For alerts to be displayed alert needs to have `cluster` and kind label `pod|daemonset|statefulset` with name as the value.
49
-
* Integrate OpenCost metrics to visualize cost of the resources.
50
-
* Feature to show stopped resources.
51
-
Because a lot of the queries are `instant` then the stopped resources are not shown even if time range is set to show them.
52
-
* Partially implemented for pods, its possible to toggle to view which are not running anymore. It lookup pods using `present_over_time` with timerange
53
-
specified in the UI time picker.
54
-
* Add support for Karpenter metrics.
55
-
Optional displaying of Karpenter metrics.
56
-
Which could be toggled from the plugin settings.
57
-
* Add support for resource relations.
58
-
Depends on Kube-State-Metrics to expose relations between resources [Related feature request](https://github.com/kubernetes/kube-state-metrics/issues/2424).
59
-
* Add support to see Kubernetes event logs
60
-
Display events which have been exported by [kubernetes-event-exporter](https://github.com/resmoio/kubernetes-event-exporter) into Loki.
61
-
* Display networking resources and metrics
62
-
* Display Ingress metrics
63
-
* Display Nginx Ingress Controller metrics (need to figure out how to make the connection between `kube_ingress_info` and if its nginx controlled)
64
-
65
-
66
-
If you have any feature requests, improvements or suggestions, please create an issue.
67
-
68
34
## Installation
69
35
70
36
### Grafana deployed with Helm
@@ -94,6 +60,138 @@ grafana.ini:
94
60
# Move the plugin from More Apps to Infrastructure in the menu
95
61
k8s-app: infrastructure
96
62
```
63
+
64
+
### Configuration
65
+
66
+
Application can be configured from the plugin settings page in Grafana.
67
+
Settings page can be found at: `/plugins/k8s-app?page=configuration`.
68
+
69
+
#### Metrics settings
70
+
71
+
* Metrics datasource - Allows configuring regex to filter metrics from the prometheus datasources. (default=prometheus)
72
+
* Default datasource - Allows configuring default datasource for the metrics.
73
+
* Default cluster - Allows configuring default cluster to be used in the queries.
74
+
* Cluster filter - Allows customizing the query which is used to get label values for the cluster variable.
75
+
76
+
#### Logs & Events settings (EXPERIMENTAL)
77
+
78
+
Allows displaying logs and events from Loki.
79
+
80
+
* Feature exepects events to be exported by [opentelemetry-collector-contrib k8seventsreceiver](https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/main/receiver/k8seventsreceiver/README.md).
81
+
* Logs must be exported to Loki by `opentelemetry-collector` because it relies on stream labels in format of `k8s_...`.
82
+
* Datasource used must support multi-tenant queries where stream label `k8s_cluster_name` is used to select logs from specific tenant.
83
+
* It is possible to override the default queries per view (Cluster, Node, Pod, Deployment, Statefulset, Daemonset).
84
+
85
+
##### Sample configuration for k8seventsreceiver
86
+
87
+
[Opentelemetry-collector helm chart](https://github.com/open-telemetry/opentelemetry-helm-charts/tree/main/charts/opentelemetry-collector) is used as a parent chart for the following configuration.
0 commit comments