Skip to content

Helm: Add option to create service and serviceMonitor#1425

Merged
stefanprodan merged 1 commit intofluxcd:mainfrom
ML-ZoneReaper:main
May 11, 2023
Merged

Helm: Add option to create service and serviceMonitor#1425
stefanprodan merged 1 commit intofluxcd:mainfrom
ML-ZoneReaper:main

Conversation

@ML-ZoneReaper
Copy link
Contributor

@ML-ZoneReaper ML-ZoneReaper commented May 11, 2023

In cases when annotation auto-discovery is disabled in the Prometheus configuration we need to add an ability to collect metrics from flagger using service + serviceMonitor resources

Look how we can use flagger metrics with Grafana Dashboard:

image

@ML-ZoneReaper ML-ZoneReaper changed the title In chart added options to create service and servieMonitor In chart added options to create service and serviceMonitor May 11, 2023
Comment on lines +26 to +29
# creates service for 'http' port
service:
enabled: false
port: 8080
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's delete this and create the service only when serviceMonitor is enabled

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@stefanprodan done, please review

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add serviceMonitor to the chart readme, then squash all your commits into a single one.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Signed-off-by: Eugene Bykov <44170496+eabykov@users.noreply.github.com>

Update README.md

Signed-off-by: Eugene Bykov <44170496+eabykov@users.noreply.github.com>

Update values.yaml

Signed-off-by: Eugene Bykov <44170496+eabykov@users.noreply.github.com>

Update service.yaml

Signed-off-by: Eugene Bykov <44170496+eabykov@users.noreply.github.com>

Update values.yaml

Signed-off-by: Eugene Bykov <44170496+eabykov@users.noreply.github.com>

Update service.yaml

Signed-off-by: Eugene Bykov <44170496+eabykov@users.noreply.github.com>

Create servicemonitor.yaml

Signed-off-by: Eugene Bykov <44170496+eabykov@users.noreply.github.com>

Update service.yaml

Signed-off-by: Eugene Bykov <44170496+eabykov@users.noreply.github.com>

Create service.yaml

Signed-off-by: Eugene Bykov <44170496+eabykov@users.noreply.github.com>
@stefanprodan stefanprodan changed the title In chart added options to create service and serviceMonitor Helm: Add option to create service and serviceMonitor May 11, 2023
Copy link
Member

@stefanprodan stefanprodan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Thanks @eabykov

@stefanprodan stefanprodan merged commit 073ac22 into fluxcd:main May 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants