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

Using meta labels in VMServiceScrape's label selector #705

Open
kyu-clover opened this issue Jul 26, 2023 · 0 comments
Open

Using meta labels in VMServiceScrape's label selector #705

kyu-clover opened this issue Jul 26, 2023 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@kyu-clover
Copy link

It would be nice for VMServiceScrape's selector, if it can use meta labels defined in kubernetes_sd_configs, i.e. __meta_kubernetes_service_annotation_<annotationname>.
So we can have something like

apiVersion: operator.victoriametrics.com/v1beta1
kind: VMServiceScrape
metadata:
  name: stackdriver-scrape
spec:
  selector:
    matchLabels:
      __meta_kubernetes_service_annotation_prometheus_io_scrape: stackdriver-exporter
  discoveryRole: service
  namespaceSelector:
    matchNames:
      - monitoring
  endpoints:
    - port: http
@Haleygo Haleygo added the enhancement New feature or request label Jul 26, 2023
@Haleygo Haleygo self-assigned this Jul 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants