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

Scrape CRD's support by single-node VictoriaMetrics #6257

Closed
3 tasks done
stepan-vardanyan opened this issue May 12, 2024 · 2 comments
Closed
3 tasks done

Scrape CRD's support by single-node VictoriaMetrics #6257

stepan-vardanyan opened this issue May 12, 2024 · 2 comments
Assignees
Labels
question The question issue

Comments

@stepan-vardanyan
Copy link

stepan-vardanyan commented May 12, 2024

Is your question request related to a specific component?

VictoriaMetrics

Describe the question in detail

Hi all.

Not sure if this was answered somewhere, but does single-node VictoriaMetrics (without vmagent or cluster at all) somehow support scrape config generate and update by VMOperator CRD's like ServiceMonitor, VMPodScrape, VMServiceScrape, etc.?
It was working for us in VM cluster + VMOperator setup, before we migrated to single-node setup for sake of simplicity and cost optimization, but apparently we lost this useful feature of generating scrape config from CRD's which is convenient way to manage it by developers, most of helm charts provide servicemonitor resource out of box, automatically feeding them to monitoring. Otherwise it's much harder, you have to manually update scrape config dealing with the complex relabeling and so on.

Thanks in advance.

Troubleshooting docs

@stepan-vardanyan stepan-vardanyan added the question The question issue label May 12, 2024
@zekker6 zekker6 self-assigned this May 13, 2024
@zekker6
Copy link
Contributor

zekker6 commented May 13, 2024

Hello @stepan-vardanyan
Currently, the only way to configure scrape via CRD objects is to use operator and vmagent.

It was working for us in VM cluster + VMOperator setup, before we migrated to single-node setup for sake of simplicity and cost optimization, but apparently we lost this useful feature of generating scrape config from CRD's which is convenient way to manage it by developers, most of helm charts provide servicemonitor resource out of box, automatically feeding them to monitoring. Otherwise it's much harder, you have to manually update scrape config dealing with the complex relabeling and so on.

Seems to me like you should have had vmagent there as well, so you could replace VMCluster definition with VMSingle object to switch to single-node setup.

@stepan-vardanyan
Copy link
Author

stepan-vardanyan commented May 13, 2024

Okey, I was thinking the same, but thanks for clarification.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question The question issue
Projects
None yet
Development

No branches or pull requests

2 participants