multi-tenancy with the non-cluster version

375 views
Skip to first unread message

Florin Andrei

unread,
Feb 26, 2020, 6:42:51 PM2/26/20
to victorametrics-users
Is there any way to implement multi-tenancy with the non-cluster version?

I need compatibility with the Prometheus protocol, and I need some form of multi-tenancy - which is why I'm testing VictoriaMetrics. But for some of the typical use cases I have, I do not need the VM cluster. The single-service version would be enough (and in fact would be preferable due to simplicity). Having a multi-tenancy option in the single-service version would be awesome.

Thanks!

Aliaksandr Valialkin

unread,
Feb 28, 2020, 4:59:08 PM2/28/20
to Florin Andrei, victorametrics-users
Unfortunately, single-node VictoriaMetrics has no built-in multi-tenancy. However, it can be emulated by adding `tenant_id` label to all the ingested metrics. Then you can restrict each tenant to its data by enforcing `tenant_id="<tenant_id>"` label in all the PromQL queries the user sends to VictoriaMetrics. This can be done with the recently added third-part Oauth proxy - see https://medium.com/@richard.holly/powerful-saas-solution-for-detection-metrics-c67b9208d362 .

--
You received this message because you are subscribed to the Google Groups "victorametrics-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to victorametrics-u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/victorametrics-users/5754f280-e4fe-440d-8320-8e084598a1dd%40googlegroups.com.


--
Best Regards,

Aliaksandr
Reply all
Reply to author
Forward
0 new messages