我必須為使用React(frontend)+Node js+Db2(容器化)構建的服務使用Prometheus和Graphana構建一個監控解決方案。我不知道從哪里開始,有人能建議我在哪里學習的資源嗎?非常感謝。
我必須為使用React(frontend)+Node js+Db2(容器化)構建的服務使用Prometheus和Graphana構建一個監控解決方案。我不知道從哪里開始,有人能建議我在哪里學習的資源嗎?非常感謝。
公眾號:1024技術圈
?? 提供互聯網知識和資訊,分享IT前沿技術,熱門資源,大廠面試題 ??
首先,您需要在Kubernetes集群中安裝Prometheus和Grafana,并遵循每個集群的說明:
Prometheus: https://prometheus.io/docs/prometheus/latest/installation/
Grafana: https://grafana.com/docs/grafana/latest/installation/
接下來,您需要了解Prometheus是一個pull-based度量收集系統。它以給定的間隔從配置的目標(端點)檢索度量并顯示結果。
您可以通過執行以下步驟來設置工作監控系統:
ServiceMonitor
的K8s自定義資源,可用于配置Prometheus以刮取步驟1中定義的度量。