Is your feature request related to a problem? Please describe.
I want to completely replace Prometheus with vmagent on docker swarm.
Describe the solution you'd like
Adding built-in Docker Swarm SD support like seen in Prom v2.20.0-rc.0
Additional context
Also want to completely replace Prom on k8s, incl. supporting ServiceMonitors, etc.
Is there already a ticket for that? =)
Also want to completely replace Prom on k8s, incl. supporting ServiceMonitors, etc. Is there already a ticket for that? =)
vmagent supports Prometheus-compatible service discovery for kubernetes - see the list of supported scrape_configs at https://victoriametrics.github.io/vmagent.html#how-to-collect-metrics-in-prometheus-format .
sorry, didnt clarify I thought about something like this https://github.com/VictoriaMetrics/VictoriaMetrics/issues/347
so an vm-operator (helm-chart?!) containing node-exporter, kube-state-metrics, blackbox-exporte, some more?!
and service monitors to scrape internal kubernetes components like: kube-apiserver, kube-scheduler, kube-controller-manager, etcd, kube-dns/coredns, kube-proxy, intalled victoriametrics components (also agent/alert) etc.
Hey,
I am looking into a similar migration. For me it would be good enough to understand if vmagent support "servicemonitors" or will support them.
@paprickar
afaik are the vm guys working on that topic to implement that build something for that on their own, so the prom operator crds also wont be needed anymore for using "servicemonitors", especially interesting when building new clusters without prom(-operator)
But please contact the victoriametrics developers on that (or a workaround) they are very friendly, helpful and don't bite (at least as its hard to do something like that online =P )
You can also add it here :
https://github.com/VictoriaMetrics/VictoriaMetrics/issues/347
or raise a separate issue for this question (because this ticket is about docker SD)
good news everyone, https://github.com/VictoriaMetrics/operator is in public, feel free to review, try and contribute :)
FYI, support for Docker Swarm service discovery has been added in the following commit: 9bd9f67718fed7a59ffccbc035e62e0bc8d18dc7 . This commit will be included in the next release.
Docker swarm service discovery aka dockerswarm_sd_configs has been included in vmagent and single-node VictoriaMetrics starting from v1.44.0. Closing the feature request as done.
Most helpful comment
vmagentsupports Prometheus-compatible service discovery for kubernetes - see the list of supported scrape_configs at https://victoriametrics.github.io/vmagent.html#how-to-collect-metrics-in-prometheus-format .