How to read pushed data from victoriaMetrics using alertManager?

427 views
Skip to first unread message

Lei Wang

unread,
Aug 6, 2020, 9:51:51 PM8/6/20
to victorametrics-users
I used VictoriaMetrics as backend storage for prometheus and configed alertmanager in prometheus.yml

alerting:
  alertmanagers:
  - static_configs:
    - targets: ["alertmanager:9093"]

remote_write:

rule_files:
  - "rules.yml"

But in the rules.yml, the pushed metrics data is not accessible. 
I think it is because  victoriametrics doesn't support remote read API.

I there any way to read pushed data from victoriametrics when using alertmanager?

Thanks,
Lei

Aliaksandr Valialkin

unread,
Aug 7, 2020, 3:31:59 AM8/7/20
to Lei Wang, victorametrics-users, Roman Khavronenko
cc'ing Roman, the maintainer of vmalert, for his input on this question.

--
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/5455237b-b1e1-489f-81e9-82506f4ce9fdn%40googlegroups.com.


--
Best Regards,

Aliaksandr Valialkin, CTO VictoriaMetrics

Roman Khavronenko

unread,
Aug 8, 2020, 3:23:29 AM8/8/20
to victorametrics-users
Hi Lei,

You're right, for having access to data written into remote storage it needs to support remote read API. Unfortunately, VM does not support remote read API for  reasons and there are no plans for implementing it.
I'd recommend to consider following options:
1. Set high enough retention in Prometheus so it will cover the time-range of your rules;
2. Start using vmalert - the tool for evaluating rules in Prometheus format against configured remote storage.
Reply all
Reply to author
Forward
0 new messages