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

如何修改 labels 中的 instance,我想去掉端口号 #205

Open
Heyz6 opened this issue Nov 2, 2023 · 0 comments
Open

如何修改 labels 中的 instance,我想去掉端口号 #205

Heyz6 opened this issue Nov 2, 2023 · 0 comments

Comments

@Heyz6
Copy link

Heyz6 commented Nov 2, 2023

image
当我修改 templates/servicemonitor.yaml

relabelings:
- sourceLabels: [address]
targetLabel: instance
action: replace
regex: '(.+):\d+'
replacement: '$1'
{{- . | toYaml | nindent 4 }}
{{- end }}
并不生效

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

No branches or pull requests

1 participant