I have a stream of metrics that I would like to display in Prometheus. These arrive as timestamped metrics over an API and I'd like the option of storing them in a TSDB such as InfluxDB which gives me long term storage.
The obvious solution is to run Prometheus using the remote read API for these metrics. However, I am concerned about two possible issues.
- I need to define alerts based on the metrics that are stored in the TSDB and retrieved by remote read. Is this possible? (I saw a presentation on youtube that said not, but not sure if that is up to date.)
- I am concerned that Prometheus might be very inefficient when generating (for example) grafana graphs that span (say) total numbers of requests over the past 48 hours or something similar that requires a lot of raw input data. Is there any guidance on what performance should be here? Obviously, if recording rules can be configured on remotely read data then this worry is much less.
For both of the above, I can prototype, but it would be interesting to know both the current situation and whether it is likely to change in the future.
Thanks, Peter White