Skip to content

Commit 23a6e7d

Browse files
authored
Merge pull request #152 from SumoLogic/maimaisie-fix-labels
Fix labels for k8s health check metrics and use versioned overrides yaml files
2 parents cbc3b54 + 81f9c1d commit 23a6e7d

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

deploy/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ This manifest binds the default `cluster-admin` ClusterRole in your Kubernetes c
224224
Download the Prometheus Operator `prometheus-overrides.yaml` from GitHub:
225225

226226
```sh
227-
curl -LJO https://raw.githubusercontent.com/SumoLogic/sumologic-kubernetes-collection/master/deploy/helm/prometheus-overrides.yaml
227+
curl -LJO https://raw.githubusercontent.com/SumoLogic/sumologic-kubernetes-collection/v0.1.0/deploy/helm/prometheus-overrides.yaml
228228
```
229229

230230
Before installing `prometheus-operator`, edit `prometheus-overrides.yaml` to define a unique cluster identifier. The default value of the `cluster` field in the `externalLabels` section of `prometheus-overrides.yaml` is `kubernetes`. If you will be deploying the metric collection solution on multiple Kubernetes clusters, you will want to use a unique identifier for each. For example, you might use “Dev”, “Prod”, and so on.
@@ -393,7 +393,7 @@ In this step, you will deploy FluentBit to forward logs to Fluentd.
393393
Download the FluentBit `fluent-bit-overrides.yaml` from GitHub:
394394

395395
```sh
396-
curl -LJO https://raw.githubusercontent.com/SumoLogic/sumologic-kubernetes-collection/master/deploy/helm/fluent-bit-overrides.yaml
396+
curl -LJO https://raw.githubusercontent.com/SumoLogic/sumologic-kubernetes-collection/v0.1.0/deploy/helm/fluent-bit-overrides.yaml
397397
```
398398

399399
Install `fluent-bit` using Helm:

deploy/helm/prometheus-overrides.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ prometheus:
77
additionalServiceMonitors:
88
- name: fluentd
99
additionalLabels:
10-
k8s-app: fluentd-sumologic
10+
app: sumologic
1111
release: prometheus-operator
1212
endpoints:
1313
- port: metrics
@@ -16,10 +16,10 @@ prometheus:
1616
- sumologic
1717
selector:
1818
matchLabels:
19-
k8s-app: fluentd-sumologic
19+
app: sumologic
2020
- name: fluentd-events
2121
additionalLabels:
22-
k8s-app: fluentd-sumologic-events
22+
app: sumologic-events
2323
release: prometheus-operator
2424
endpoints:
2525
- port: metrics
@@ -28,7 +28,7 @@ prometheus:
2828
- sumologic
2929
selector:
3030
matchLabels:
31-
k8s-app: fluentd-sumologic-events
31+
app: sumologic-events
3232
prometheusSpec:
3333
externalLabels:
3434
# Set this to a value to distinguish between different k8s clusters

deploy/helm/sumologic/values.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ prometheus-operator:
222222
additionalServiceMonitors:
223223
- name: collection-sumologic
224224
additionalLabels:
225-
k8s-app: fluentd-sumologic
225+
app: sumologic
226226
release: prometheus-operator
227227
endpoints:
228228
- port: metrics
@@ -231,10 +231,10 @@ prometheus-operator:
231231
- sumologic
232232
selector:
233233
matchLabels:
234-
k8s-app: fluentd-sumologic
234+
app: sumologic
235235
- name: collection-sumologic-events
236236
additionalLabels:
237-
k8s-app: fluentd-sumologic-events
237+
app: sumologic-events
238238
release: prometheus-operator
239239
endpoints:
240240
- port: metrics
@@ -243,7 +243,7 @@ prometheus-operator:
243243
- sumologic
244244
selector:
245245
matchLabels:
246-
k8s-app: fluentd-sumologic-events
246+
app: sumologic-events
247247
prometheusSpec:
248248
externalLabels:
249249
# Set this to a value to distinguish between different k8s clusters

0 commit comments

Comments
 (0)