2. grafana provisioning
Last updated
Was this helpful?
Last updated
Was this helpful?
grafana๋ provisioning์ด๋ผ๋ ๊ธฐ๋ฅ์ ๊ฐ์ง๊ณ ์๋ค.
๊ธฐ์กด์๋ datasource์ dashboard๋ฅผ ์๋์ผ๋ก ๋ฑ๋กํด์คฌ๋ค.
์ด๊ฒ๋ค์ docker์์์์ ์๋์ผ๋ก ๋ฃ์ด์ฃผ๋๊ฒ์ด๋ค.
source-code :
grafanaํด๋๋ฅผ ๋ง๋ ํ ์ถ๊ฐ๋ก ๋ช๊ฐ์ ํ์ผ์ ๋ง๋ค์ด์ค๋ค.
datasources/prometheus.yaml ํ์ผ์ ํ์ธํด๋ณด์.
์ด์ ์ด ํด๋๋ฅผ ๋ง์ดํธํด์ฃผ์.
ํ๋ก๋น์ ๋ ํ์ผ์ grafana/provisioning ํด๋์ / dashboard jsonํ์ผ์ dashboards์ ๋ฃ์ด์ค๋ค.
์คํํ์.
dashboard๊ฐ 2๊ฐ๊ฐ ์๋์ผ๋ก ๋ฑ๋ก๋๊ฒ์ ์์ ์๋ค.
์ ๋ค์ด์ ์๋ค.
ํ์ธํด๋ณด์.
datasource๋ ํ์ธํด๋ณด์.