I use Prometheus to gather k8s' resources. The resource data pipeline is as follows:
k8s -> Prometheus -> Java app -> Elasticsearch -> (whghl) Java app
Here I have a question. Why use Prometheus?
Wouldn't Prometheus not be necessary if it was stored in DB like mine? Whether I use Elasticsearch or MongoDB, wouldn't I need Prometheus?