grafana로 cloud monitoring 의 metric을 연동하는 방법을 알아봅니다.
공식 문서
https://grafana.com/docs/grafana/latest/setup-grafana/installation/
oss/stable 버전 설치 on debian vm
sudo apt-get install -y apt-transport-https
sudo apt-get install -y software-properties-common wget
sudo wget -q -O /usr/share/keyrings/grafana.key https://apt.grafana.com/gpg.key
echo "deb [signed-by=/usr/share/keyrings/grafana.key] https://apt.grafana.com stable main" | sudo tee -a /etc/apt/sources.list.d/grafana.list
sudo apt-get update
sudo apt-get install grafana
server start
sudo systemctl daemon-reload
sudo systemctl start grafana-server
sudo systemctl status grafana-server
설치 확인
curl localhost:3000
초기 비밀번호
admin/admin
GCP
Grafana
configurations > data sources > google cloud monitoring > dashboards > 아무 dashboard나 import