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
Copy file name to clipboardExpand all lines: docs/eks/index.md
+15Lines changed: 15 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -167,3 +167,18 @@ sum(up{job="custom-metrics"}) by (container_name, cluster, nodename)
167
167
```
168
168
169
169
<imgwidth="2560"alt="Screenshot 2023-01-31 at 11 16 21"src="https://user-images.githubusercontent.com/10175027/215869004-e05f557d-c81a-41fb-a452-ede9f986cb27.png">
170
+
171
+
## Troubleshooting
172
+
173
+
When you upgrade the eks-monitoring module from v2.1.0 or earlier, the following error may occur.
174
+
175
+
```bash
176
+
Error: cannot patch "prometheus-node-exporter" with kind DaemonSet: DaemonSet.apps "prometheus-node-exporter" is invalid: spec.selector: Invalid value: v1.LabelSelector{MatchLabels:map[string]string{"app.kubernetes.io/instance":"prometheus-node-exporter", "app.kubernetes.io/name":"prometheus-node-exporter"}, MatchExpressions:[]v1.LabelSelectorRequirement(nil)}: field is immutable
177
+
```
178
+
179
+
This is due to the upgrade of the node-exporter chart from v2 to v4. Manually delete the node-exporter's DaemonSet as described in [the link here](https://github.com/prometheus-community/helm-charts/tree/main/charts/prometheus-node-exporter#3x-to-4x), and then apply.
| <aname="input_prometheus_config"></a> [prometheus\_config](#input\_prometheus\_config)| Controls default values such as scrape interval, timeouts and ports globally | <pre>object({<br> global_scrape_interval = string<br> global_scrape_timeout = string<br> })</pre> | <pre>{<br> "global_scrape_interval": "60s",<br> "global_scrape_timeout": "15s"<br>}</pre> | no |
91
91
| <aname="input_tags"></a> [tags](#input\_tags)| Additional tags (e.g. `map('BusinessUnit`,`XYZ`) |`map(string)`|`{}`| no |
@@ -99,3 +99,18 @@ This module makes use of the open source [kube-prometheus-stack](https://github.
99
99
| <aname="output_eks_cluster_version"></a> [eks\_cluster\_version](#output\_eks\_cluster\_version)| EKS Cluster version |
100
100
| <aname="output_grafana_dashboard_urls"></a> [grafana\_dashboard\_urls](#output\_grafana\_dashboard\_urls)| URLs for dashboards created |
101
101
<!-- END OF PRE-COMMIT-TERRAFORM DOCS HOOK -->
102
+
103
+
## Troubleshooting
104
+
105
+
When you upgrade the eks-monitoring module from v2.1.0 or earlier, the following error may occur.
106
+
107
+
```bash
108
+
Error: cannot patch "prometheus-node-exporter" with kind DaemonSet: DaemonSet.apps "prometheus-node-exporter" is invalid: spec.selector: Invalid value: v1.LabelSelector{MatchLabels:map[string]string{"app.kubernetes.io/instance":"prometheus-node-exporter", "app.kubernetes.io/name":"prometheus-node-exporter"}, MatchExpressions:[]v1.LabelSelectorRequirement(nil)}: field is immutable
109
+
```
110
+
111
+
This is due to the upgrade of the node-exporter chart from v2 to v4. Manually delete the node-exporter's DaemonSet as described in [the link here](https://github.com/prometheus-community/helm-charts/tree/main/charts/prometheus-node-exporter#3x-to-4x), and then apply.
0 commit comments