Skip to content

Fix #417 Add serviceMonitor template for the telegraf chart#510

Open
Efrat19 wants to merge 13 commits intoinfluxdata:masterfrom
Efrat19:feat/417_add_telegraf_servicemonitor
Open

Fix #417 Add serviceMonitor template for the telegraf chart#510
Efrat19 wants to merge 13 commits intoinfluxdata:masterfrom
Efrat19:feat/417_add_telegraf_servicemonitor

Conversation

@Efrat19
Copy link
Copy Markdown

@Efrat19 Efrat19 commented Oct 2, 2022

Signed-off-by: Efrat19 efrat890089@gmail.com
addressing #417

Signed-off-by: Efrat19 <efrat890089@gmail.com>
Signed-off-by: Efrat19 <efrat890089@gmail.com>
Copy link
Copy Markdown
Contributor

@alespour alespour left a comment

Choose a reason for hiding this comment

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

Could you please bump chart version.

Comment thread charts/telegraf/templates/servicemonitor.yaml
@alespour alespour self-requested a review October 11, 2022 13:05
alespour
alespour previously approved these changes Oct 11, 2022
Copy link
Copy Markdown
Contributor

@alespour alespour left a comment

Choose a reason for hiding this comment

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

LGTM

@alespour alespour requested a review from tomklapka October 11, 2022 13:05
alespour
alespour previously approved these changes Oct 11, 2022
@Efrat19
Copy link
Copy Markdown
Author

Efrat19 commented Oct 18, 2022

Hey is there anything else still needed to be done here? @tomklapka @alespour

Comment thread charts/telegraf/templates/servicemonitor.yaml Outdated
Comment thread charts/telegraf/values.yaml
Comment thread charts/telegraf/templates/servicemonitor.yaml
Signed-off-by: Efrat Levitan <efrat890089@gmail.com>
@tomklapka
Copy link
Copy Markdown
Contributor

Checks failed with Error: ServiceMonitor.monitoring.coreos.com "telegraf-1xv72y61rr" is invalid: spec.endpoints.port: Invalid value: "integer": spec.endpoints.port in body must be of type string: "integer". Please fix it.

@Efrat19
Copy link
Copy Markdown
Author

Efrat19 commented Nov 5, 2022

Checks failed with Error: ServiceMonitor.monitoring.coreos.com "telegraf-1xv72y61rr" is invalid: spec.endpoints.port: Invalid value: "integer": spec.endpoints.port in body must be of type string: "integer". Please fix it.

fixed

@tomklapka
Copy link
Copy Markdown
Contributor

tomklapka commented Nov 7, 2022

@Efrat19 please rebase your branch to master and bump up the telegraf chart version (1.8.23 -> 1.8.24) Thank you.

@zffocussss
Copy link
Copy Markdown

@Efrat19 Can you please finish this PR,as it is useful for integrating with prometheus usages.

{{- range $key, $value := . -}}
{{- $tp := typeOf $value -}}
{{- if eq $key "prometheus_client" }}
- port: {{ trimPrefix ":" $value.listen }}
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

{{ (trimPrefix ":" $value.listen) | quote }} can correct the type issues.it is string instead of number

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.

4 participants