Skip to content

Commit 60bb2a8

Browse files
authored
refactor(lmc): add remove ksm dep from argus to lmc (#94)
1 parent 09a95bb commit 60bb2a8

File tree

3 files changed

+107
-2
lines changed

3 files changed

+107
-2
lines changed

charts/lm-container/Chart.yaml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: v2
22
name: lm-container
33
description: A Helm chart for Logicmonitor's Kubernetes monitoring solutions
44
type: application
5-
version: 1.1.0-rc12
5+
version: 1.1.0-rc13
66
maintainers:
77
- name: LogicMonitor
88
@@ -11,7 +11,7 @@ kubeVersion: ">= 1.16.0-0"
1111
dependencies:
1212
- name: argus
1313
# need to explicitly quote to make it string, else json schema fails
14-
version: "2.2.0-rc08"
14+
version: "2.2.0-rc09"
1515
repository: https://logicmonitor.github.io/helm-charts-qa
1616
# uncomment to test umbrella chart in while developing
1717
# repository: file://../argus
@@ -31,3 +31,7 @@ dependencies:
3131
- logicmonitor
3232
- collectorset-controller
3333
- monitoring
34+
- condition: kube-state-metrics.enabled
35+
name: kube-state-metrics
36+
repository: https://prometheus-community.github.io/helm-charts
37+
version: 4.20.0

charts/lm-container/values.schema.json

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,82 @@
4242
}
4343
},
4444
"additionalProperties": true
45+
},
46+
"kube-state-metrics": {
47+
"$id": "#/properties/kube-state-metrics",
48+
"type": "object",
49+
"title": "The kube-state-metrics schema",
50+
"description": "Describes kube-state-metrics helm chart configurations",
51+
"default": {},
52+
"examples": [
53+
{
54+
"enabled": true,
55+
"replicas": 1,
56+
"collectors": [
57+
"daemonsets",
58+
"replicasets",
59+
"statefulsets",
60+
"persistentvolumes"
61+
]
62+
}
63+
],
64+
"required": [
65+
],
66+
"properties": {
67+
"enabled": {
68+
"$id": "#/properties/kube-state-metrics/properties/enabled",
69+
"type": "boolean",
70+
"title": "The enabled schema",
71+
"description": "Describes the flag to enable kube-state-metrics helm chart installation",
72+
"default": false,
73+
"examples": [
74+
true
75+
]
76+
},
77+
"replicas": {
78+
"$id": "#/properties/kube-state-metrics/properties/replicas",
79+
"type": "integer",
80+
"title": "The replicas schema",
81+
"description": "Describes the number of kube-state-metrics pod replicas",
82+
"default": 1,
83+
"minimum": 0,
84+
"examples": [
85+
1
86+
]
87+
},
88+
"collectors": {
89+
"$id": "#/properties/kube-state-metrics/properties/collectors",
90+
"type": "array",
91+
"title": "The collectors schema",
92+
"description": "Describes the list of collector to enable metrics collection by kube-state-metrics",
93+
"default": [],
94+
"examples": [
95+
[
96+
"daemonsets",
97+
"replicasets"
98+
]
99+
],
100+
"additionalItems": true,
101+
"uniqueItems": true,
102+
"items": {
103+
"$id": "#/properties/kube-state-metrics/properties/collectors/items",
104+
"anyOf": [
105+
{
106+
"$id": "#/properties/kube-state-metrics/properties/collectors/items/anyOf/0",
107+
"type": "string",
108+
"title": "Kube-state-metrics collector name schema",
109+
"description": "Describes the kube-state-metrics collector name",
110+
"default": "",
111+
"examples": [
112+
"daemonsets",
113+
"replicasets"
114+
]
115+
}
116+
]
117+
}
118+
},
119+
"additionalProperties": true
120+
}
45121
}
46122
}
47123
}

charts/lm-container/values.yaml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,28 @@ argus:
1111
enabled: true
1212
collectorset-controller:
1313
enabled: true
14+
15+
# Kube state metrics configuration
16+
# For further customizing KSM configuration, pls refer https://artifacthub.io/packages/helm/prometheus-community/kube-state-metrics/?modal=values
17+
kube-state-metrics:
18+
# Set enabled to false in case you want to use a custom configured KSM
19+
enabled: true
20+
# No. of KSM Replicas to be configured
21+
selfMonitor:
22+
enabled: true
23+
telemetryPort: 8081
24+
replicas: 1
25+
collectors:
26+
- daemonsets
27+
- replicasets
28+
- statefulsets
29+
- persistentvolumes
30+
- persistentvolumeclaims
31+
- endpoints
32+
- cronjobs
33+
- jobs
34+
- pods
35+
- nodes
36+
- deployments
37+
- services
38+
- poddisruptionbudgets

0 commit comments

Comments
 (0)