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

Use service monitor #562

Merged
merged 3 commits into from
Apr 1, 2024
Merged

Use service monitor #562

merged 3 commits into from
Apr 1, 2024

Conversation

QuentinBisson
Copy link
Contributor

@QuentinBisson QuentinBisson commented Mar 30, 2024

This configures the operator to be scraped using a service monitor instead of the old scheme

Copy link
Member

@Gacko Gacko left a comment

Choose a reason for hiding this comment

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

Your PR says it makes use of a PodMonitor while you're actually using a ServiceMonitor? IMHO we can drop the service and really just use a PodMonitor as you proposed for the etcd-kubernetes-resources-count-exporter.

@QuentinBisson
Copy link
Contributor Author

QuentinBisson commented Apr 1, 2024

I renamed thé PR sorry. I tried to use a podmonitor first but it does not work because this pod is using hostnetwork:true so kyverno is complaining when I add the ports information on thé deployment

@QuentinBisson QuentinBisson changed the title Use pod monitor Use service monitor Apr 1, 2024
@Gacko
Copy link
Member

Gacko commented Apr 1, 2024

But that's probably more an issue because of not using CiliumNetworkPolicies, right? Like, plain NetworkPolicies can not be used for allowing traffic to host network.

@QuentinBisson
Copy link
Contributor Author

Hmm thé issue I had was really related to kyverno policy exceptions but you're free to try a Pod monitor instead :) I don't have the bandwith to do them all "properly", I really just need to get rid of the old annotations asap:)

selector:
{{- include "labels.selector" . | nindent 4 }}
{{- include "labels.selector" . | nindent 4 }}
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
{{- include "labels.selector" . | nindent 4 }}
{{- include "labels.selector" . | nindent 4 }}

Adding the missing/removed newline at EOF.

Copy link
Member

@Gacko Gacko left a comment

Choose a reason for hiding this comment

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

Ah, one more: Then please do not change the values (replace service.port by just port) if you keep using a ServiceMonitor.

@QuentinBisson
Copy link
Contributor Author

Sure :)

@QuentinBisson
Copy link
Contributor Author

It's fixed @Gacko

@QuentinBisson QuentinBisson merged commit fa5104f into master Apr 1, 2024
6 checks passed
@QuentinBisson QuentinBisson deleted the use-pod-monitor branch April 1, 2024 14:19
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.

None yet

3 participants