Skip to content

Commit 9307c20

Browse files
committed
fix(main): kube-state-metrics
1 parent 2a73569 commit 9307c20

File tree

1 file changed

+242
-3
lines changed
  • kubernetes/main/apps/observability/kube-prometheus-stack/app

1 file changed

+242
-3
lines changed

kubernetes/main/apps/observability/kube-prometheus-stack/app/release.yaml

Lines changed: 242 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -102,9 +102,6 @@ spec:
102102

103103

104104
kube-state-metrics:
105-
collectors: [ ]
106-
extraArgs:
107-
- --custom-resource-state-only=true
108105
rbac:
109106
extraRules:
110107
- apiGroups:
@@ -136,6 +133,248 @@ spec:
136133
kind: CustomResourceStateMetrics
137134
spec:
138135
resources:
136+
- groupVersionKind:
137+
group: kustomize.toolkit.fluxcd.io
138+
version: v1
139+
kind: Kustomization
140+
metricNamePrefix: gotk
141+
metrics:
142+
- name: "resource_info"
143+
help: "The current state of a Flux Kustomization resource."
144+
each:
145+
type: Info
146+
info:
147+
labelsFromPath:
148+
name: [ metadata, name ]
149+
labelsFromPath:
150+
exported_namespace: [ metadata, namespace ]
151+
ready: [ status, conditions, "[type=Ready]", status ]
152+
suspended: [ spec, suspend ]
153+
revision: [ status, lastAppliedRevision ]
154+
source_name: [ spec, sourceRef, name ]
155+
- groupVersionKind:
156+
group: helm.toolkit.fluxcd.io
157+
version: v2
158+
kind: HelmRelease
159+
metricNamePrefix: gotk
160+
metrics:
161+
- name: "resource_info"
162+
help: "The current state of a Flux HelmRelease resource."
163+
each:
164+
type: Info
165+
info:
166+
labelsFromPath:
167+
name: [ metadata, name ]
168+
labelsFromPath:
169+
exported_namespace: [ metadata, namespace ]
170+
ready: [ status, conditions, "[type=Ready]", status ]
171+
suspended: [ spec, suspend ]
172+
revision: [ status, history, "0", chartVersion ]
173+
chart_name: [ status, history, "0", chartName ]
174+
chart_app_version: [ status, history, "0", appVersion ]
175+
chart_ref_name: [ spec, chartRef, name ]
176+
chart_source_name: [ spec, chart, spec, sourceRef, name ]
177+
- groupVersionKind:
178+
group: source.toolkit.fluxcd.io
179+
version: v1
180+
kind: GitRepository
181+
metricNamePrefix: gotk
182+
metrics:
183+
- name: "resource_info"
184+
help: "The current state of a Flux GitRepository resource."
185+
each:
186+
type: Info
187+
info:
188+
labelsFromPath:
189+
name: [ metadata, name ]
190+
labelsFromPath:
191+
exported_namespace: [ metadata, namespace ]
192+
ready: [ status, conditions, "[type=Ready]", status ]
193+
suspended: [ spec, suspend ]
194+
revision: [ status, artifact, revision ]
195+
url: [ spec, url ]
196+
- groupVersionKind:
197+
group: source.toolkit.fluxcd.io
198+
version: v1
199+
kind: Bucket
200+
metricNamePrefix: gotk
201+
metrics:
202+
- name: "resource_info"
203+
help: "The current state of a Flux Bucket resource."
204+
each:
205+
type: Info
206+
info:
207+
labelsFromPath:
208+
name: [ metadata, name ]
209+
labelsFromPath:
210+
exported_namespace: [ metadata, namespace ]
211+
ready: [ status, conditions, "[type=Ready]", status ]
212+
suspended: [ spec, suspend ]
213+
revision: [ status, artifact, revision ]
214+
endpoint: [ spec, endpoint ]
215+
bucket_name: [ spec, bucketName ]
216+
- groupVersionKind:
217+
group: source.toolkit.fluxcd.io
218+
version: v1
219+
kind: HelmRepository
220+
metricNamePrefix: gotk
221+
metrics:
222+
- name: "resource_info"
223+
help: "The current state of a Flux HelmRepository resource."
224+
each:
225+
type: Info
226+
info:
227+
labelsFromPath:
228+
name: [ metadata, name ]
229+
labelsFromPath:
230+
exported_namespace: [ metadata, namespace ]
231+
ready: [ status, conditions, "[type=Ready]", status ]
232+
suspended: [ spec, suspend ]
233+
revision: [ status, artifact, revision ]
234+
url: [ spec, url ]
235+
- groupVersionKind:
236+
group: source.toolkit.fluxcd.io
237+
version: v1
238+
kind: HelmChart
239+
metricNamePrefix: gotk
240+
metrics:
241+
- name: "resource_info"
242+
help: "The current state of a Flux HelmChart resource."
243+
each:
244+
type: Info
245+
info:
246+
labelsFromPath:
247+
name: [ metadata, name ]
248+
labelsFromPath:
249+
exported_namespace: [ metadata, namespace ]
250+
ready: [ status, conditions, "[type=Ready]", status ]
251+
suspended: [ spec, suspend ]
252+
revision: [ status, artifact, revision ]
253+
chart_name: [ spec, chart ]
254+
chart_version: [ spec, version ]
255+
- groupVersionKind:
256+
group: source.toolkit.fluxcd.io
257+
version: v1
258+
kind: OCIRepository
259+
metricNamePrefix: gotk
260+
metrics:
261+
- name: "resource_info"
262+
help: "The current state of a Flux OCIRepository resource."
263+
each:
264+
type: Info
265+
info:
266+
labelsFromPath:
267+
name: [ metadata, name ]
268+
labelsFromPath:
269+
exported_namespace: [ metadata, namespace ]
270+
ready: [ status, conditions, "[type=Ready]", status ]
271+
suspended: [ spec, suspend ]
272+
revision: [ status, artifact, revision ]
273+
url: [ spec, url ]
274+
- groupVersionKind:
275+
group: notification.toolkit.fluxcd.io
276+
version: v1beta3
277+
kind: Alert
278+
metricNamePrefix: gotk
279+
metrics:
280+
- name: "resource_info"
281+
help: "The current state of a Flux Alert resource."
282+
each:
283+
type: Info
284+
info:
285+
labelsFromPath:
286+
name: [ metadata, name ]
287+
labelsFromPath:
288+
exported_namespace: [ metadata, namespace ]
289+
suspended: [ spec, suspend ]
290+
- groupVersionKind:
291+
group: notification.toolkit.fluxcd.io
292+
version: v1beta3
293+
kind: Provider
294+
metricNamePrefix: gotk
295+
metrics:
296+
- name: "resource_info"
297+
help: "The current state of a Flux Provider resource."
298+
each:
299+
type: Info
300+
info:
301+
labelsFromPath:
302+
name: [ metadata, name ]
303+
labelsFromPath:
304+
exported_namespace: [ metadata, namespace ]
305+
suspended: [ spec, suspend ]
306+
- groupVersionKind:
307+
group: notification.toolkit.fluxcd.io
308+
version: v1
309+
kind: Receiver
310+
metricNamePrefix: gotk
311+
metrics:
312+
- name: "resource_info"
313+
help: "The current state of a Flux Receiver resource."
314+
each:
315+
type: Info
316+
info:
317+
labelsFromPath:
318+
name: [ metadata, name ]
319+
labelsFromPath:
320+
exported_namespace: [ metadata, namespace ]
321+
ready: [ status, conditions, "[type=Ready]", status ]
322+
suspended: [ spec, suspend ]
323+
webhook_path: [ status, webhookPath ]
324+
- groupVersionKind:
325+
group: image.toolkit.fluxcd.io
326+
version: v1
327+
kind: ImageRepository
328+
metricNamePrefix: gotk
329+
metrics:
330+
- name: "resource_info"
331+
help: "The current state of a Flux ImageRepository resource."
332+
each:
333+
type: Info
334+
info:
335+
labelsFromPath:
336+
name: [ metadata, name ]
337+
labelsFromPath:
338+
exported_namespace: [ metadata, namespace ]
339+
ready: [ status, conditions, "[type=Ready]", status ]
340+
suspended: [ spec, suspend ]
341+
image: [ spec, image ]
342+
- groupVersionKind:
343+
group: image.toolkit.fluxcd.io
344+
version: v1
345+
kind: ImagePolicy
346+
metricNamePrefix: gotk
347+
metrics:
348+
- name: "resource_info"
349+
help: "The current state of a Flux ImagePolicy resource."
350+
each:
351+
type: Info
352+
info:
353+
labelsFromPath:
354+
name: [ metadata, name ]
355+
labelsFromPath:
356+
exported_namespace: [ metadata, namespace ]
357+
ready: [ status, conditions, "[type=Ready]", status ]
358+
suspended: [ spec, suspend ]
359+
source_name: [ spec, imageRepositoryRef, name ]
360+
- groupVersionKind:
361+
group: image.toolkit.fluxcd.io
362+
version: v1
363+
kind: ImageUpdateAutomation
364+
metricNamePrefix: gotk
365+
metrics:
366+
- name: "resource_info"
367+
help: "The current state of a Flux ImageUpdateAutomation resource."
368+
each:
369+
type: Info
370+
info:
371+
labelsFromPath:
372+
name: [ metadata, name ]
373+
labelsFromPath:
374+
exported_namespace: [ metadata, namespace ]
375+
ready: [ status, conditions, "[type=Ready]", status ]
376+
suspended: [ spec, suspend ]
377+
source_name: [ spec, sourceRef, name ]
139378
- groupVersionKind:
140379
group: autoscaling.k8s.io
141380
kind: "VerticalPodAutoscaler"

0 commit comments

Comments
 (0)