|
180 | 180 | {
|
181 | 181 | record: 'windows_pod_container_available',
|
182 | 182 | expr: |||
|
183 |
| - windows_container_available{%(windowsExporterSelector)s} * on(container_id) group_left(container, pod, namespace) max(kube_pod_container_info{%(kubeStateMetricsSelector)s}) by(container, container_id, pod, namespace) |
| 183 | + windows_container_available{%(windowsExporterSelector)s, container_id != ""} * on(container_id) group_left(container, pod, namespace) max(kube_pod_container_info{%(kubeStateMetricsSelector)s, container_id != ""}) by(container, container_id, pod, namespace) |
184 | 184 | ||| % $._config,
|
185 | 185 | },
|
186 | 186 | {
|
187 | 187 | record: 'windows_container_total_runtime',
|
188 | 188 | expr: |||
|
189 |
| - windows_container_cpu_usage_seconds_total{%(windowsExporterSelector)s} * on(container_id) group_left(container, pod, namespace) max(kube_pod_container_info{%(kubeStateMetricsSelector)s}) by(container, container_id, pod, namespace) |
| 189 | + windows_container_cpu_usage_seconds_total{%(windowsExporterSelector)s, container_id != ""} * on(container_id) group_left(container, pod, namespace) max(kube_pod_container_info{%(kubeStateMetricsSelector)s, container_id != ""}) by(container, container_id, pod, namespace) |
190 | 190 | ||| % $._config,
|
191 | 191 | },
|
192 | 192 | {
|
193 | 193 | record: 'windows_container_memory_usage',
|
194 | 194 | expr: |||
|
195 |
| - windows_container_memory_usage_commit_bytes{%(windowsExporterSelector)s} * on(container_id) group_left(container, pod, namespace) max(kube_pod_container_info{%(kubeStateMetricsSelector)s}) by(container, container_id, pod, namespace) |
| 195 | + windows_container_memory_usage_commit_bytes{%(windowsExporterSelector)s, container_id != ""} * on(container_id) group_left(container, pod, namespace) max(kube_pod_container_info{%(kubeStateMetricsSelector)s, container_id != ""}) by(container, container_id, pod, namespace) |
196 | 196 | ||| % $._config,
|
197 | 197 | },
|
198 | 198 | {
|
199 | 199 | record: 'windows_container_private_working_set_usage',
|
200 | 200 | expr: |||
|
201 |
| - windows_container_memory_usage_private_working_set_bytes{%(windowsExporterSelector)s} * on(container_id) group_left(container, pod, namespace) max(kube_pod_container_info{%(kubeStateMetricsSelector)s}) by(container, container_id, pod, namespace) |
| 201 | + windows_container_memory_usage_private_working_set_bytes{%(windowsExporterSelector)s, container_id != ""} * on(container_id) group_left(container, pod, namespace) max(kube_pod_container_info{%(kubeStateMetricsSelector)s, container_id != ""}) by(container, container_id, pod, namespace) |
202 | 202 | ||| % $._config,
|
203 | 203 | },
|
204 | 204 | {
|
205 | 205 | record: 'windows_container_network_received_bytes_total',
|
206 | 206 | expr: |||
|
207 |
| - windows_container_network_receive_bytes_total{%(windowsExporterSelector)s} * on(container_id) group_left(container, pod, namespace) max(kube_pod_container_info{%(kubeStateMetricsSelector)s}) by(container, container_id, pod, namespace) |
| 207 | + windows_container_network_receive_bytes_total{%(windowsExporterSelector)s, container_id != ""} * on(container_id) group_left(container, pod, namespace) max(kube_pod_container_info{%(kubeStateMetricsSelector)s, container_id != ""}) by(container, container_id, pod, namespace) |
208 | 208 | ||| % $._config,
|
209 | 209 | },
|
210 | 210 | {
|
211 | 211 | record: 'windows_container_network_transmitted_bytes_total',
|
212 | 212 | expr: |||
|
213 |
| - windows_container_network_transmit_bytes_total{%(windowsExporterSelector)s} * on(container_id) group_left(container, pod, namespace) max(kube_pod_container_info{%(kubeStateMetricsSelector)s}) by(container, container_id, pod, namespace) |
| 213 | + windows_container_network_transmit_bytes_total{%(windowsExporterSelector)s, container_id != ""} * on(container_id) group_left(container, pod, namespace) max(kube_pod_container_info{%(kubeStateMetricsSelector)s, container_id != ""}) by(container, container_id, pod, namespace) |
214 | 214 | ||| % $._config,
|
215 | 215 | },
|
216 | 216 | {
|
|
0 commit comments