You typically only need 2 Prometheus pods for this to work. The node_exporter is a DaemonSet, it runs on all your nodes.
The alertmanager should also run on 2-3 pods. This is all managed by the Prometheus Operator. I recommend reading the documentation for kube-prometheus to get started: https://github.com/prometheus-operator/kube-prometheus Or you can deploy it with Helm using the kube-prometheus-stack chart. https://github.com/prometheus-community/helm-charts/tree/main/charts/kube-prometheus-stack On Fri, Apr 2, 2021 at 10:39 AM nina guo <[email protected]> wrote: > Because I would like to realize high availability. If one is done, the > other can take over. > > On Friday, April 2, 2021 at 4:35:50 PM UTC+8 [email protected] wrote: > >> Why do you think you need a Prometheus cluster? What problem are you >> trying to solve? >> >> On Fri, Apr 2, 2021 at 10:31 AM nina guo <[email protected]> wrote: >> >>> I'm new on Prometheus : ) >>> Here comes the following question: >>> >>> - To deploy a Prometheus cluster, is it better to use Prometheus >>> Operator? Currently I used sperate yaml files(prometheus, alertmanager, >>> nodeexporter). >>> - There is a cluster with 3 nodes. >>> prometheus on 3 PODs separately >>> node exporter on 3 PODs separately >>> alertmanager on 1 POD >>> Not very sure if the above solution can meet the purpose of high >>> availability. >>> - Regarding the backend storage, which one is better, NFS or block >>> storage? >>> >>> Many thanks for your help. >>> >>> -- >>> You received this message because you are subscribed to the Google >>> Groups "Prometheus Users" group. >>> To unsubscribe from this group and stop receiving emails from it, send >>> an email to [email protected]. >>> To view this discussion on the web visit >>> https://groups.google.com/d/msgid/prometheus-users/077bc05d-43b0-4265-bf2e-60da10d67c12n%40googlegroups.com >>> <https://groups.google.com/d/msgid/prometheus-users/077bc05d-43b0-4265-bf2e-60da10d67c12n%40googlegroups.com?utm_medium=email&utm_source=footer> >>> . >>> >> -- > You received this message because you are subscribed to the Google Groups > "Prometheus Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/prometheus-users/ace546ce-0cfd-45ef-80d0-1c0bf3021521n%40googlegroups.com > <https://groups.google.com/d/msgid/prometheus-users/ace546ce-0cfd-45ef-80d0-1c0bf3021521n%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- You received this message because you are subscribed to the Google Groups "Prometheus Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/CABbyFmojJNQZ%2BGm4zXYeDv-E1oFqr%2B716Ce4JY59du%2B8GWs2%2Bw%40mail.gmail.com.

