Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

charts,salt: Disable service monitor for fluent-bit #3689

Merged
merged 1 commit into from
Feb 4, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@
- Bump Grafana image version to 8.3.4-ubuntu
(PR[#3684](https://github.com/scality/metalk8s/pull/3684))

### Bug fixes

- Disable fluent-bit service monitor as currently the fluent-bit
HTTP server that serve metrics does not work
(PR[#3689](https://github.com/scality/metalk8s/pull/3689))

## Release 2.11.0
### Additions

Expand Down
5 changes: 4 additions & 1 deletion charts/fluent-bit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,10 @@ volumeMounts:
readOnly: true

serviceMonitor:
enabled: true
# Disabled for the moment as http_server does not work with current
# fluent-bit version + kubernetes version
# See: https://github.com/fluent/fluent-bit/issues/4063
enabled: false
interval: ""
additionalLabels:
metalk8s.scality.com/monitor: ''
Expand Down
49 changes: 0 additions & 49 deletions salt/metalk8s/addons/logging/fluent-bit/deployed/chart.sls
Original file line number Diff line number Diff line change
Expand Up @@ -147,30 +147,6 @@ subjects:
- kind: ServiceAccount
name: fluent-bit
---
apiVersion: v1
kind: Service
metadata:
labels:
app: fluent-bit
app.kubernetes.io/managed-by: salt
app.kubernetes.io/name: fluent-bit
app.kubernetes.io/part-of: metalk8s
chart: fluent-bit-2.2.0
heritage: metalk8s
release: fluent-bit
name: fluent-bit-headless
namespace: metalk8s-logging
spec:
clusterIP: None
ports:
- name: http-metrics
port: 2020
protocol: TCP
targetPort: http-metrics
selector:
app: fluent-bit
release: fluent-bit
---
apiVersion: apps/v1
kind: DaemonSet
metadata:
Expand Down Expand Up @@ -257,30 +233,5 @@ spec:
name: runlog
updateStrategy:
type: RollingUpdate
---
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
labels:
app: fluent-bit
app.kubernetes.io/managed-by: salt
app.kubernetes.io/name: fluent-bit
app.kubernetes.io/part-of: metalk8s
chart: fluent-bit-2.2.0
heritage: metalk8s
metalk8s.scality.com/monitor: ''
name: fluent-bit
namespace: metalk8s-logging
spec:
endpoints:
- path: /api/v1/metrics/prometheus
port: http-metrics
namespaceSelector:
matchNames:
- metalk8s-logging
selector:
matchLabels:
app: fluent-bit
release: fluent-bit

{% endraw %}