GithubHelp home page GithubHelp logo

Comments (4)

tenmozes avatar tenmozes commented on May 23, 2024

tldr; setup vmagent and write the result to cluster https://github.com/VictoriaMetrics/VictoriaMetrics/tree/master/app/vmagent and https://github.com/VictoriaMetrics/helm-charts/tree/master/charts/victoria-metrics-agent

Hello, you can do it with cluster, let me a bit describe the ecosystem
Single version is like a swiss knife, can scrape and store inside itself. But when you have a load or need some distribution you want to split the components. For that we have:

  • vm-cluster - distributed metric storage
  • vmagent - scraper
  • vmalert - which evaluates the rules (alerting and recording)

so the full setup of the solution is
Vmagent scrape the tagres in prometheus format and write the metrics into the cluster, vmalert evaluates the rules by reading them from cluster and sends the alerts to alertmanager (or evalutes the recording rules and stores back to the cluster).

Helm charts give you an option to setup each component

from helm-charts.

Alon-Katz avatar Alon-Katz commented on May 23, 2024

Thanks for such a quick response!

If I understood it correctly, to be able to scrape targets (another vm instance for example) with VM-Cluster I would need to deploy vmagent and do remote write to VM-cluster?

If thats true and I wanted to do it with minimal dependencies, then I should use the single version VM which can scrape other targets without vmagent? if thats also true then deploying single vm with helm charts I can specify the -promscrape.config with the extraArgs in the values.yaml?

Thanks!

from helm-charts.

f41gh7 avatar f41gh7 commented on May 23, 2024

If thats true and I wanted to do it with minimal dependencies, then I should use the single version VM which can scrape other targets without vmagent? if thats also true then deploying single vm with helm charts I can specify the -promscrape.config with the extraArgs in the values.yaml?

Yep, single version of vm can scrape targets with promscrape.config arg. You have to mount config somehow, unfortunately chart doesnt support it. Probably operator version is more flexible in this case https://github.com/VictoriaMetrics/operator/blob/master/docs/api.MD#vmsinglespec

from helm-charts.

f41gh7 avatar f41gh7 commented on May 23, 2024

At master branch you can specify additional mounts with extraVolumes and extraVolumeMounts. It should be enough to add scrape config into victoria-metrics-single chart.

from helm-charts.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.