[Infra][Spring Boot] ํ”„๋กœ๋ฉ”ํ…Œ์šฐ์Šค, ๊ทธ๋ผํŒŒ๋‚˜๋ฅผ ์ด์šฉํ•œ ๋ชจ๋‹ˆํ„ฐ๋ง

2022. 12. 2. 00:55ใ†System ์ž‘์—…์‹ค/DevOps

728x90
๋ฐ˜์‘ํ˜•

 

 

 

 

 

 

๋ฐฑ๊ฒฌ๋ถˆ์—ฌ์ผํƒ€ ์Šคํ”„๋ง ๋ถ€ํŠธ ์‡ผํ•‘๋ชฐ ํ”„๋กœ์ ํŠธ with JPA:์ด์   ํ”„๋กœ์ ํŠธ๋‹ค!

COUPANG

www.coupang.com

 

 

 

React.js ์Šคํ”„๋ง ๋ถ€ํŠธ AWS๋กœ ๋ฐฐ์šฐ๋Š” ์›น ๊ฐœ๋ฐœ 101:SPA REST API ๊ธฐ๋ฐ˜ ์›น ์• ํ”Œ๋ฆฌ์ผ€์ด์…˜ ๊ฐœ๋ฐœ

COUPANG

www.coupang.com

 

 

 

์Šคํƒ€ํŠธ ์Šคํ”„๋ง ๋ถ€ํŠธ:์ดˆ๊ธ‰ ๊ฐœ๋ฐœ์ž๋“ค์„ ์œ„ํ•œ ๊ฐ€๋ณ๊ณ  ๋„“์€ ์Šคํ”„๋ง ๋ถ€ํŠธ

COUPANG

www.coupang.com

"์ด ํฌ์ŠคํŒ…์€ ์ฟ ํŒก ํŒŒํŠธ๋„ˆ์Šค ํ™œ๋™์˜ ์ผํ™˜์œผ๋กœ, ์ด์— ๋”ฐ๋ฅธ ์ผ์ •์•ก์˜ ์ˆ˜์ˆ˜๋ฃŒ๋ฅผ ์ œ๊ณต๋ฐ›์Šต๋‹ˆ๋‹ค."

 

 

 

 

 

GitHub - JunyHarang-Open-Source-project/monitoring-test: [Infra][Spring Boot] ํ”„๋กœ๋ฉ”ํ…Œ์šฐ์Šค, ๊ทธ๋ผํŒŒ๋‚˜๋ฅผ ์ด์šฉํ•œ ๋ชจ

[Infra][Spring Boot] ํ”„๋กœ๋ฉ”ํ…Œ์šฐ์Šค, ๊ทธ๋ผํŒŒ๋‚˜๋ฅผ ์ด์šฉํ•œ ๋ชจ๋‹ˆํ„ฐ๋ง. Contribute to JunyHarang-Open-Source-project/monitoring-test development by creating an account on GitHub.

github.com

 

 

 




๐Ÿ—‚ ๋ชฉ์ฐจ

โ— [Infra][Spring Boot] ํ”„๋กœ๋ฉ”ํ…Œ์šฐ์Šค, ๊ทธ๋ผํŒŒ๋‚˜๋ฅผ ์ด์šฉํ•œ ๋ชจ๋‹ˆํ„ฐ๋ง

 

 

 

 

 

 

 

๐Ÿš€ Spring Boot Monitoring

    ๐Ÿ”ฝ  ๊ฐœ์š”

        ๐Ÿ“ฆ ํ•˜๋ ค๋Š” ์ด์œ 

์ฃผ๋‹ˆํ•˜๋ž‘์€ ๊ธฐ๊น”๋‚˜๋Š” ์‚ฌ๋žŒ๋“ค Side Project๋ฅผ ์ง„ํ–‰ํ•˜๋ฉด์„œ ๊ฐœ๋ฐœ ํ™˜๊ฒฝ, ์šด์˜ ํ™˜๊ฒฝ์—์„œ ์‚ฌ์šฉํ•  Server์˜ ์ž์›์„ ๋ชจ๋‹ˆํ„ฐ๋ง ํ•˜๊ณ  ์‹ถ์—ˆ์–ด์š”.

Whatap์ด๋ผ๋Š” ์†”๋ฃจ์…˜์„ ํ†ตํ•ด 5๋Œ€๊นŒ์ง€ ๋ฌด๋ฃŒ๋กœ ์ž์›์„ ๋ชจ๋‹ˆํ„ฐ๋งํ•  ์ˆ˜ ์žˆ๋Š” ๊ฒฝ๋กœ๊ฐ€ ์žˆ๊ธด ํ•˜์ง€๋งŒ, ๋‹ค๋ฅธ ๋ˆ„๊ตฐ๊ฐ€๊ฐ€ ๋งŒ๋“  ์†”๋ฃจ์…˜์— ๋ฌด๋ฃŒ ์ œ์•ฝ ์‚ฌํ•ญ์„ ํ”ผํ•˜๋ฉด์„œ ๋‚ด๋ถ€์—์„œ ์ž์œ ๋กญ๊ฒŒ ์‚ฌ์šฉํ•  ์ˆ˜ ์žˆ๋Š” ๋ชจ๋‹ˆํ„ฐ๋ง์„ ํ•˜๊ณ  ์‹ถ๋‹ค๊ณ  ์ƒ๊ฐํ–ˆ์–ด์š”.

๊ฒ€์ƒ‰์„ ํ•ด๋ณด๋‹ˆ ์—ฌ๋Ÿฌ๊ฐ€์ง€ ๋ฐฉ์•ˆ์ด ์žˆ์ง€๋งŒ, ์ฃผ๋‹ˆํ•˜๋ž‘์€ ์•„๋ž˜ ์‚ฌํ•ญ์ด ๋งŒ์กฑํ–ˆ์Œ ์ข‹๊ฒ ๋‹ค๋Š” ์ƒ๊ฐ์„ ํ–ˆ์–ด์š”.

์ฒซ์งธ. JAVA๋กœ Monitoring์„ ํ•˜๊ณ  ์‹ถ๋‹ค.
๋‘˜์งธ. Web์„ ํ†ตํ•ด GUI Monitoring์ด ๊ฐ€๋Šฅํ–ˆ์Œ ์ข‹๊ฒ ๋‹ค.
์…‹์งธ. Slack, Discord, Email ๋“ฑ์œผ๋กœ ๋ฌธ์ œ๊ฐ€ ๋ฐœ์ƒํ–ˆ์„ ๋•Œ, ์•Œ๋ฆผ์„ ๋ฐ›๊ณ  ์‹ถ๋‹ค.

๋งŽ์€ ๊ฒ€์ƒ‰์„ ํ•ด ๋ณธ ๋์— ์ผ๋‹จ ํ”„๋กœ๋ฉ”ํ…Œ์šฐ์Šค, ๊ทธ๋ผํŒŒ๋‚˜๋ฅผ ์ด์šฉํ•œ ๋ชจ๋‹ˆํ„ฐ๋ง์„ ๊ณต๋ถ€ํ•ด๋ณด๊ณ , ์ง„ํ–‰ํ•ด๋ณด์ž๊ณ  ๋งˆ์Œ ๋จน์—ˆ์–ด์š”.





        ๐Ÿ“ฆ ์†Œ๊ฐœ

Spring Boot Web Application์„ ๋ฐฐํฌํ•˜์—ฌ Side Project๋ฅผ ์ง„ํ–‰ํ•˜๋Š”๋ฐ ์žˆ์–ด ๋ชจ๋‹ˆํ„ฐ๋ง์„ ํ†ตํ•ด ๋ฌธ์ œ๊ฐ€ ๋ฐœ์ƒํ•˜๊ธฐ ์ „์— ๋ฏธ๋ฆฌ ๋Œ€์‘์„ ํ•  ๋ฐฉ๋ฒ•์„ ๊ฐ„๊ตฌํ•˜๊ณ , ๋ฌธ์ œ ๋ฐœ์ƒ ์‹œ ํ•ด๊ฒฐ์ฑ…์„ ๋งŒ๋“ค ์ˆ˜ ์žˆ๋„๋ก ๋ชจ๋‹ˆํ„ฐ๋ง์„ ํ•ด๋ณด๋ ค๊ณ  ํ•ด์š”.

์ด๋ฒˆ ์ฃผ๋‹ˆํ•˜๋ž‘์˜ ์ปดํ“จํ„ฐ ๊ฐ€์ง€๊ณ  ๋†€๊ธฐ ์—ฌ์ •์—๋Š” Spring Actuator, Micometer, Prometheus, Grafana๋ฅผ ์ด์šฉํ•ด์„œ ๋ชจ๋‹ˆํ„ฐ๋ง ํ™˜๊ฒฝ์„ ๊ตฌ์„ฑํ•˜๋ฉด์„œ ๋†€์•„๋ณด๋ ค๊ณ  ํ•ด์š”.

์ด    ๋ฆ„ ์„ค      ๋ช…
Spring Actuator Spring Boot Sub Project๋กœ Spring Boot Application์ด ์ œ๊ณตํ•˜๋Š” ์—ฌ๋Ÿฌ๊ฐ€์ง€ ์ •๋ณด๋ฅผ ์‰ฝ๊ฒŒ
Monitoringํ•  ์ˆ˜ ์žˆ๊ฒŒ ๋„์™€์ฃผ๋Š” Library
Micrometer Spring Framework 5๋ถ€ํ„ฐ Spring Framework์˜ Metric์€ Micrometer์—์„œ ์ฒ˜๋ฆฌ
Prometheus Open Source System Monitoring ๋ฐ ๊ฒฝ๊ณ  Tool
Grafana Metric์„ ์‹œ๊ฐํ™”ํ•ด์ฃผ๋Š” Open Source Analysis Plaform



โˆ™ Prometheus

Prometheus๋Š” SoundCloud์—์„œ ๋งŒ๋“  Open Source System Monitoring ๋ฐ ๊ฒฝ๊ณ  Tool์ด๋ฉฐ, ๋…๋ฆฝํ˜• Open Source Project์ด๊ณ , ๋งŽ์€ ํšŒ์‚ฌ๋“ค์ด ์‚ฌ์šฉํ•˜๊ณ  ์žˆ๋‹ค๊ณ  ํ•ด์š”.

Kubernetes์—์„œ๋„ Prometheus๋ฅผ ์ด์šฉํ•˜์—ฌ Metric ์ˆ˜์ง‘ ๋ฐ Dash Board ๊ตฌ์ถ• ๋ฐฉ์•ˆ์„ ์žฅ๋ คํ•˜๊ณ  ์žˆ๋‹ค๊ณ  ํ•ฉ๋‹ˆ๋‹ค.

PromQL์ด๋ผ๋Š” ์œ ์—ฐํ•œ Query์™€ ์‹ค์‹œ๊ฐ„ ๊ฒฝ๊ณ ๊ฐ€ ๊ฐ€๋Šฅํ•˜๋‹ค๊ณ  ํ•ด์š”.

Metric ์ด๋ฆ„ ๋ฐ Key/Value ํ˜•ํƒœ๋กœ ์‹๋ณ„๋˜๋Š” ์‹œ๊ณ„์—ด Data๊ฐ€ ์žˆ๋Š” ๋‹ค์ฐจ์› ๋ชจ๋ธ์ด๋ฉฐ, ์ด๊ฒƒ์„ PromQL์„ ์ด์šฉํ•ด์„œ ๋ถ„์„์ด ๊ฐ€๋Šฅํ•˜๋‹ค๊ณ  ํ•ด์š”.






Jobs/exporters๋Š” ์‹ค์ œ Metric์„ ์ˆ˜์ง‘ํ•˜๋Š” Process์—์š”.
exporter๊ฐ€ Metric์„ ์ˆ˜์ง‘ํ•˜๊ณ , HTTP ํ†ต์‹ ์„ ํ†ตํ•ด Metric Data๋ฅผ ๊ฐ€์ ธ๊ฐˆ ์ˆ˜ ์žˆ๊ฒŒ URI์˜ /metrics๋ผ๋Š” HTTP Endpoint๋ฅผ ์ œ๊ณตํ•˜๊ณ , Prometheus Server๊ฐ€ ์ด exporter Endpoint๋กœ HTTP Get Request ํ•˜์—ฌ Metric ์ •๋ณด๋ฅผ ์ˆ˜์ง‘ํ•ฉ๋‹ˆ๋‹ค.

์ˆ˜์ง‘ํ•œ ์ •๋ณด๋ฅผ Prometheus๊ฐ€ ์ œ๊ณตํ•˜๋Š” ๊ฐ„๋‹จํ•œ Web View๋ฅผ ํ†ตํ•ด ์กฐํšŒํ•  ์ˆ˜ ์žˆ๊ณ , ๊ทธ ์•ˆ์—์„œ Table ๋ฐ ๊ทธ๋ž˜ํ”„ ํ˜•ํƒœ๋กœ ๋ณผ ์ˆ˜ ์žˆ๊ฒŒ ํ•ด์ค€๋‹ต๋‹ˆ๋‹ค.

๋‹ค๋งŒ, ์‹œ๊ฐํ™” ๋„๊ตฌ๊ฐ€ ๋งŽ์ด ๋ถ€์กฑํ•˜์—ฌ ์ด๋ฅผ ์œ„ํ•ด Grafana๋ฅผ ํ•จ๊ป˜ ์‚ฌ์šฉํ•ด ๋ณด๋ ค๊ณ  ํ•ด์š”.



โˆ™ Grafana

Grafana(๊ทธ๋ผํŒŒ๋‚˜)๋Š” Metric์„ ์‹œ๊ฐํ™” ํ•ด์ฃผ๋Š” ๋„๊ตฌ์—์š”. ๋˜ํ•œ, ์‹œ๊ณ„์—ด Metric Data๋ฅผ ์‹œ๊ฐํ™” ํ•˜๋Š”๋ฐ, ๊ฐ€์žฅ ์ตœ์ ํ™”๋œ Dash Board๋ฅผ ์ œ๊ณตํ•ด์ฃผ๋Š” ์นœ๊ตฌ์—์š”.

Grphite, Prometheus, InfluxDB ๋“ฑ ๋‹ค์–‘ํ•œ Data Base์™€ Metric ์ˆ˜์ง‘ System์„ ์ง€์›ํ•˜๊ณ , ํ•˜๋‚˜์˜ Dash Board์— ๋™์‹œ์— ์—ฌ๋Ÿฌ Metric System๋“ค์˜ ์ง€ํ‘œ๋ฅผ ํ‘œ์‹œํ•  ์ˆ˜ ์žˆ๋‹ต๋‹ˆ๋‹ค.

ํŠนํžˆ Prometheus๋ฅผ ์ž˜ ์ง€์›ํ•˜๊ณ  ์žˆ๊ธฐ ๋•Œ๋ฌธ์— Prometheus์˜ Metric์„ ๊ทธ๋ž˜ํ”„๋กœ ์‹œ๊ฐํ™” ํ•˜๋Š”๋ฐ, ๋งŽ์ด ์ด์šฉํ•œ๋‹ค๊ณ  ํ•ด์š”.

์‹œ๊ฐํ™”ํ•œ ๊ทธ๋ž˜ํ”„์—์„œ ํŠน์ • ์ˆ˜์น˜์˜ ๊ฐ’์ด ์น˜์†Ÿ์„ ๋•Œ, ์˜ˆ๋ฅผ ๋“ค์–ด Error ๋ฐœ์ƒ๋Ÿ‰์ด 5๊ฐœ ์ด์ƒ์ผ ๋•Œ, ์š”์ฒญ์„ ์ฒ˜๋ฆฌํ•˜์ง€ ๋ชปํ•œ ํšŸ์ˆ˜๊ฐ€ ์ผ์ •๋Ÿ‰ ์ด์ƒ์ผ ๋•Œ, ์•Œ๋ฆผ์„ ์ „๋‹ฌ๋ฐ›์„ ์ˆ˜ ์žˆ๋Š” ๊ธฐ๋Šฅ๋„ ์ œ๊ณตํ•œ๋‹ค๊ณ  ํ•ด์š”.

 




 

    ๐Ÿ”ฝ  ์ดˆ๊ธฐ ๊ตฌ์„ฑ

        ๐Ÿ“ฆ Spring Boot


์ฃผ๋‹ˆํ•˜๋ž‘์€ Uitimate Version์˜ InteliJ๋ฅผ ์“ฐ๊ณ  ์žˆ๊ธฐ ๋•Œ๋ฌธ์— ์œ„์™€ ๊ฐ™์ด ์„ค์ •ํ•  ์ˆ˜ ์žˆ์–ด์š”.



์˜์กด์„ฑ์€ ์œ„์™€ ๊ฐ™์ด ์ถ”๊ฐ€ํ•ด ์ฃผ์—ˆ์–ด์š”.



build.gradle


์œ„์™€ ๊ฐ™์ด ์ดˆ๊ธฐ ์˜์กด์„ฑ์ด ์ถ”๊ฐ€๋˜์—ˆ์–ด์š”.



MetricController


๊ทธ๋Ÿฐ ๋’ค ์œ„์™€ ๊ฐ™์ด ๋ฌธ์ž์—ด์„ ๋ฐ˜ํ™˜ํ•˜๋Š” API๋ฅผ ์ž‘์„ฑํ•ด ์ฃผ์—ˆ์–ด์š”.

Spring Boot๋ฅผ ๊ธฐ๋™ํ•ด๋ณผ๊ฒŒ์š”.



Spring Boot๊ฐ€ ์ •์ƒ์ ์œผ๋กœ ๊ตฌ๋™ ๋˜์—ˆ์–ด์š”.



http://localhost:8080/endpoint1


์œ„์—์„œ ๋งŒ๋“ค์—ˆ๋˜ API์— GET Request๊ฐ€ ์ •์ƒ์ ์œผ๋กœ ๊ฐ€๋Š” ๊ฒƒ์„ ํ™•์ธํ•  ์ˆ˜ ์žˆ์–ด์š”.



http://localhost:8080/actuator


Actuator API์— GET Request๋ฅผ ๋˜์ง€๋ฉด ์œ„์™€ ๊ฐ™์€ Response๋ฅผ ์–ป์„ ์ˆ˜ ์žˆ์–ด์š”.
์ด๋ฅผ ํ†ตํ•ด Actuator๊ฐ€ ํ˜„์žฌ ์ œ๊ณตํ•˜๋Š” Endpoint ์ •๋ณด๋ฅผ ํ™•์ธํ•  ์ˆ˜ ์žˆ์–ด์š”.


application.yml

์œ„์™€ ๊ฐ™์ด ์„ค์ •์„ ์ถ”๊ฐ€ํ•˜์—ฌ Spring Actuator๊ฐ€ ์ถ”๊ฐ€์ ์œผ๋กœ
ํ”„๋กœ๋ฉ”ํ…Œ์šฐ์Šค์— ๋” ๋งŽ์€ ์ •๋ณด๋ฅผ ์ œ๊ณตํ•  ์ˆ˜ ์žˆ๋„๋ก ์„ค์ •ํ•  ์ˆ˜ ์žˆ์–ด์š”.


์ด   ๋ฆ„ ์„ค   ๋ช…
/actuator Actuator๊ฐ€ ์ œ๊ณตํ•˜๋Š” URL ์ •๋ณด ์ œ๊ณต
/actuator/metrics Metric List ์ œ๊ณต
/actuator/prometheus Micrometer๋ฅผ ํ†ตํ•ด ์ˆ˜์ง‘๋œ Metric๋“ค ์ œ๊ณต



๋‹ค์‹œ Spring Boot๋ฅผ ๊ธฐ๋™ํ•ด ๋ณผ๊ฒŒ์š”.



http://localhost:8080/actuator


์ด๋ฒˆ์—” ๋” ๋งŽ์€ ๋‚ด์šฉ์ด Response๋กœ ๋ฐฐ๋‹ฌ ๋˜์—ˆ์–ด์š”.


http://localhost:8080/actuator/metrics


์œ„์™€ ๊ฐ™์ด Metric List๋ฅผ ํ™•์ธํ•  ์ˆ˜ ์žˆ๊ณ ,


http://localhost:8080/actuator/promethus


Micrometer๋ฅผ ํ†ตํ•ด ์ˆ˜์ง‘๋œ Metric ์ •๋ณด๋„ ํ™•์ธํ•  ์ˆ˜ ์žˆ๊ฒŒ ๋˜์—ˆ์–ด์š”.



 

 

      ๐Ÿ“ฆ Prometheus (ํ”„๋กœ๋ฉ”ํ…Œ์šฐ์Šค)

Prometheus ์„ค์น˜ ๋ฐฉ๋ฒ•์€ ์—ฌ๋Ÿฌ๊ฐ€์ง€ ๋ฐฉ๋ฒ•์ด ์žˆ์–ด์š”.

โˆ™ Server์— ์ง์ ‘ ์„ค์น˜
โˆ™ Binary ์„ค์น˜
โˆ™ Docker๋ฅผ ์ด์šฉํ•˜์—ฌ ์„ค์น˜
โˆ™ Kubernetes Cluster์— ์„ค์น˜

์ฃผ๋‹ˆํ•˜๋ž‘์ด ์ง„ํ–‰ํ•˜๊ณ  ์žˆ๋Š” ๊ธฐ๊น”๋‚˜๋Š” ์‚ฌ๋žŒ๋“ค์˜ ๊ฐœ๋ฐœ ํ™˜๊ฒฝ Server๋“ค์˜ ์ž์›์€ ๊ฝค ์ ๊ธฐ ๋•Œ๋ฌธ์— ๊ฐœ์ธ์ ์œผ๋กœ ๋งŽ์ด ์• ์šฉํ•˜๋Š” Docker๋ฅผ ์ด์šฉํ•ด์„œ ์„ค์น˜ํ•ด ๋ณผ๊ฑฐ์—์š”.

docker pull prom/prometheus


์ตœ์ดˆ ์œ„์™€ ๊ฐ™์ด docker Image๋ฅผ ๋ฐ›์•„ ์ฃผ์—ˆ์–ด์š”.


vim prometheus.yml


์›ํ•˜๋Š” ๊ฒฝ๋กœ์— ์œ„์™€ ๊ฐ™์ด Prometheus๊ฐ€ ์‚ฌ์šฉํ•  yml File์„ ์ž‘์„ฑํ•ด ์ค๋‹ˆ๋‹ค.


prometheus.yml

๋ฐ˜์‘ํ˜•
global:
  scrape_interval: 10s                          # 10์ดˆ ๋งˆ๋‹ค Metric ์ˆ˜์ง‘. Default Value = 1๋ถ„
  evaluation_interval: 10s                      # 10์ดˆ๋งˆ๋‹ค Metric ์ˆ˜์ง‘. Default Value = 1๋ถ„
  # 'scrape_timeout'์€ ๊ธฐ๋ณธ์ ์œผ๋กœ 10์ดˆ๋กœ ์„ค์ • ๋˜์–ด ์žˆ์Œ.

# Alertmanager ์„ค์ •
alerting:
  alertmanagers:
  - static_configs:
    - targets:
      # - alertmanager:9093

# ๊ทœ์น™์„ ์ฒ˜์Œ ํ•œ๋ฒˆ Loadingํ•˜๊ณ , 'evaluation_interval' ์„ค์ •์— ๋”ฐ๋ผ ์ •๊ธฐ์ ์œผ๋กœ ๊ทœ์น™ ํ‰๊ฐ€
rule_files:
  # - "first_rules.yml"
  # - "second_rules.yml"

# Metric ์ˆ˜์ง‘ Endpoing ์„ค์ •.
scrape_configs:
  - job_name: 'giggal-people_spring-monitoring'
    metrics_path: '/actuator/prometheus'
    static_configs:
      #- targets: ['host.docker.internal:9999']
      - targets: ['192.168.100.10:9999']



์œ„์™€ ๊ฐ™์ด yml File์„ ๋งŒ๋“ค์–ด ์ฃผ์—ˆ์–ด์š”.

host.docker.internal์„ ์ด์šฉํ•˜์—ฌ Docker Container ๋‚ด๋ถ€์—์„œ Host Port๋กœ ์ ‘์†ํ•  ์ˆ˜ ์žˆ๋„๋ก ํ•ด ์ฃผ์—ˆ์–ด์š”.

Local์—์„œ ํ•˜๋Š” ์ž‘์—…์ด ์•„๋‹ˆ๋ผ๋ฉด ์ด์— ๋งž๊ฒŒ ์ž…๋ ฅํ•ด์•ผ ํ•ฉ๋‹ˆ๋‹ค.

์ฃผ๋‹ˆํ•˜๋ž‘ ๋งฅ๋ถ VPN IP


์ฃผ๋‹ˆํ•˜๋ž‘์€ ํ”„๋กœ๋ฉ”ํ…Œ์šฐ์Šค์˜ ๊ฒฝ์šฐ Laptop Server์— ์˜ฌ๋ฆฌ๊ณ , Spring Boot Project๋Š” ์ผ๋‹จ Local Laptop์—์„œ ์ง„ํ–‰ํ•˜๊ธฐ ์œ„ํ•ด ์œ„์™€ ๊ฐ™์ด targets์— Laptop IP์™€ Project Port๋ฅผ ๋„ฃ์–ด์ฃผ์—ˆ์–ด์š”.





docker Build Command


Docker ๊ธฐ๋™์„ ์œ„ํ•ด ๋ช…๋ น์–ด๋ฅผ ์ณ์ค˜๋„ ๋˜์ง€๋งŒ, ์ผ๊ด„์„ฑ ์žˆ๋Š” ๊ด€๋ฆฌ๋ฅผ ์œ„ํ•ด ์œ„์™€ ๊ฐ™์ด Shell Script๋ฅผ ๋งŒ๋“ค์–ด ์ฃผ์—ˆ์–ด์š”.

docker run \
--name giggal-people_monitoring-prometheus -d \
--restart=unless-stopped \
-p 1000:9090 \
--ip 172.17.0.10 \
-v /opt/docker/volume_mapping/monitoring/prometheus/prometheus.yml:/etc/prometheus/prometheus.yml \
prom/prometheus



./docker-build.sh


์œ„์™€ ๊ฐ™์ด Docker๋ฅผ ๋งŒ๋“œ๋Š” Shell์— ๊ถŒํ•œ์„ ์ฃผ๊ณ , ๊ธฐ๋™ํ•ด ๋ณผ๊ฒŒ์š”.


./docker-build.sh

 

docker ps -a

 

docker logs {Container ID}


์œ„์™€ ๊ฐ™์ด Docker๊ฐ€ ๊ธฐ๋™ํ•œ ๊ฒƒ์„ ํ™•์ธํ•  ์ˆ˜ ์žˆ์–ด์š”.

 

http://{Server IP}:{Port}/graph?g0.expr=&g0.tab=1&g0.stacked=0&g0.show_exemplars=0&g0.range_input=1h


์œ„์™€ ๊ฐ™์ด Prometheus Web Service์—๋„ ์ •์ƒ ์ ‘์†ํ•œ ๊ฒƒ์„ ๋ณผ ์ˆ˜ ์žˆ์–ด์š”.



Status > Targets



Status > Targets


์œ„์™€ ๊ฐ™์ด Local Laptop์—์„œ ๊ธฐ๋™์ค‘์ธ Spring Boot Project๋ฅผ ์ •์ƒ์ ์œผ๋กœ ์ฝ์–ด์˜ค๋Š” ๊ฒƒ์„ ํ™•์ธํ•  ์ˆ˜ ์žˆ์–ด์š”.




Graph


์ด๋ฒˆ์—” ์œ„์™€ ๊ฐ™์ด Graph Tab์—์„œ ๊ฒ€์ƒ‰์ฐฝ์— http_server_requests_seconds_max๋ฅผ ์ž…๋ ฅํ•˜๊ณ ,
์•„๋ž˜ Tab์— Graph๋ฅผ ์„ ํƒํ•ด ๋ณด์•˜์–ด์š”.




์œ„์™€ ๊ฐ™์ด Metric์ •๋ณด๋ฅผ Graphํ™” ํ•˜์—ฌ ๋ณผ ์ˆ˜ ์žˆ์–ด์š”. 





        ๐Ÿ“ฆ Grafana (๊ทธ๋ผํŒŒ๋‚˜)

์ด๋ฒˆ์—๋Š” ๊ทธ๋ผํŒŒ๋‚˜๋ฅผ ํ†ตํ•ด ํ”„๋กœ๋ฉ”ํ…Œ์šฐ์Šค์— ์•„์‰ฌ์šด ์‹œ๊ฐํ™”๋ฅผ ๋Œ€์‹ ํ•˜์—ฌ ๊ฐ•๋ ฅํ•œ Metric ์‹œ๊ฐํ™”๋ฅผ ์ด์šฉํ•  ์ˆ˜ ์žˆ๋„๋ก ๊ตฌ์„ฑํ•ด ๋ณผ๊ฒŒ์š”.

๊ทธ๋ผํŒŒ๋‚˜ ์—ญ์‹œ Docker๋ฅผ ์„ค์น˜ํ•˜์—ฌ ์ง„ํ–‰ํ•  ๊ฒƒ์ด์—์š”.


docker pull grafana/grafana


๋จผ์ € Docker Image๋ฅผ ๋ฐ›์•„์ฃผ์—ˆ์–ด์š”.


vim grafana-docker-build.sh


์ด๋ฒˆ์—๋„ Shell Script๋ฅผ ๋งŒ๋“ค์–ด ์ค„๊ฒŒ์š”.


grafana-docker-build.sh

728x90
docker run \
--name giggal-people_monitoring-grafana -d \
--restart=unless-stopped \
-p 1002:3000 \
--ip 172.17.0.11 \
grafana/grafana



./grafana-docker-build.sh


shell script๋ฅผ ์ž‘๋™ ์‹œ์ผœ Docker Conatiner๋ฅผ ์˜ฌ๋ ค ๋ณผ๊ฒŒ์š”.


./grafana-docker-build.sh


docker ps -a


[root@giggal-mng grafana]# docker logs 4f44d4409135
logger=settings t=2022-12-01T12:16:58.414823651Z level=info msg="Starting Grafana" version=9.3.0 commit=e9cb2a313e branch=HEAD compiled=2022-11-29T16:03:52Z
logger=settings t=2022-12-01T12:16:58.41609579Z level=info msg="Config loaded from" file=/usr/share/grafana/conf/defaults.ini
logger=settings t=2022-12-01T12:16:58.416206661Z level=info msg="Config loaded from" file=/etc/grafana/grafana.ini
logger=settings t=2022-12-01T12:16:58.416244689Z level=info msg="Config overridden from command line" arg="default.paths.data=/var/lib/grafana"
logger=settings t=2022-12-01T12:16:58.416279055Z level=info msg="Config overridden from command line" arg="default.paths.logs=/var/log/grafana"
logger=settings t=2022-12-01T12:16:58.416312344Z level=info msg="Config overridden from command line" arg="default.paths.plugins=/var/lib/grafana/plugins"
logger=settings t=2022-12-01T12:16:58.416347935Z level=info msg="Config overridden from command line" arg="default.paths.provisioning=/etc/grafana/provisioning"
logger=settings t=2022-12-01T12:16:58.416381601Z level=info msg="Config overridden from command line" arg="default.log.mode=console"
logger=settings t=2022-12-01T12:16:58.416416578Z level=info msg="Config overridden from Environment variable" var="GF_PATHS_DATA=/var/lib/grafana"
logger=settings t=2022-12-01T12:16:58.416450568Z level=info msg="Config overridden from Environment variable" var="GF_PATHS_LOGS=/var/log/grafana"
logger=settings t=2022-12-01T12:16:58.416483359Z level=info msg="Config overridden from Environment variable" var="GF_PATHS_PLUGINS=/var/lib/grafana/plugins"
logger=settings t=2022-12-01T12:16:58.416516586Z level=info msg="Config overridden from Environment variable" var="GF_PATHS_PROVISIONING=/etc/grafana/provisioning"
logger=settings t=2022-12-01T12:16:58.416550177Z level=info msg="Path Home" path=/usr/share/grafana
logger=settings t=2022-12-01T12:16:58.416725503Z level=info msg="Path Data" path=/var/lib/grafana
logger=settings t=2022-12-01T12:16:58.416759393Z level=info msg="Path Logs" path=/var/log/grafana
logger=settings t=2022-12-01T12:16:58.416793483Z level=info msg="Path Plugins" path=/var/lib/grafana/plugins
logger=settings t=2022-12-01T12:16:58.416835074Z level=info msg="Path Provisioning" path=/etc/grafana/provisioning
logger=settings t=2022-12-01T12:16:58.416872027Z level=info msg="App mode production"
logger=sqlstore t=2022-12-01T12:16:58.417414358Z level=info msg="Connecting to DB" dbtype=sqlite3
logger=sqlstore t=2022-12-01T12:16:58.417540056Z level=info msg="Creating SQLite database file" path=/var/lib/grafana/grafana.db
logger=migrator t=2022-12-01T12:16:58.428675058Z level=info msg="Starting DB migrations"
logger=migrator t=2022-12-01T12:16:58.429418655Z level=info msg="Executing migration" id="create migration_log table"
logger=migrator t=2022-12-01T12:16:58.450315062Z level=info msg="Executing migration" id="create user table"
logger=migrator t=2022-12-01T12:16:58.469755428Z level=info msg="Executing migration" id="add unique index user.login"
logger=migrator t=2022-12-01T12:16:58.490267755Z level=info msg="Executing migration" id="add unique index user.email"
logger=migrator t=2022-12-01T12:16:58.510771006Z level=info msg="Executing migration" id="drop index UQE_user_login - v1"
logger=migrator t=2022-12-01T12:16:58.530495232Z level=info msg="Executing migration" id="drop index UQE_user_email - v1"
logger=migrator t=2022-12-01T12:16:58.553187682Z level=info msg="Executing migration" id="Rename table user to user_v1 - v1"
logger=migrator t=2022-12-01T12:16:58.577993389Z level=info msg="Executing migration" id="create user table v2"
logger=migrator t=2022-12-01T12:16:58.60087518Z level=info msg="Executing migration" id="create index UQE_user_login - v2"
logger=migrator t=2022-12-01T12:16:58.624741888Z level=info msg="Executing migration" id="create index UQE_user_email - v2"
logger=migrator t=2022-12-01T12:16:58.647798905Z level=info msg="Executing migration" id="copy data_source v1 to v2"
logger=migrator t=2022-12-01T12:16:58.667387757Z level=info msg="Executing migration" id="Drop old table user_v1"
logger=migrator t=2022-12-01T12:16:58.687928586Z level=info msg="Executing migration" id="Add column help_flags1 to user table"
logger=migrator t=2022-12-01T12:16:58.71103562Z level=info msg="Executing migration" id="Update user table charset"
logger=migrator t=2022-12-01T12:16:58.731403597Z level=info msg="Executing migration" id="Add last_seen_at column to user"
logger=migrator t=2022-12-01T12:16:58.752188896Z level=info msg="Executing migration" id="Add missing user data"
logger=migrator t=2022-12-01T12:16:58.772187744Z level=info msg="Executing migration" id="Add is_disabled column to user"
logger=migrator t=2022-12-01T12:16:58.793784433Z level=info msg="Executing migration" id="Add index user.login/user.email"
logger=migrator t=2022-12-01T12:16:58.814122983Z level=info msg="Executing migration" id="Add is_service_account column to user"
logger=migrator t=2022-12-01T12:16:58.836898465Z level=info msg="Executing migration" id="Update is_service_account column to nullable"
logger=migrator t=2022-12-01T12:16:58.867959297Z level=info msg="Executing migration" id="create temp user table v1-7"
logger=migrator t=2022-12-01T12:16:58.891416946Z level=info msg="Executing migration" id="create index IDX_temp_user_email - v1-7"
logger=migrator t=2022-12-01T12:16:58.916316936Z level=info msg="Executing migration" id="create index IDX_temp_user_org_id - v1-7"
logger=migrator t=2022-12-01T12:16:58.939496826Z level=info msg="Executing migration" id="create index IDX_temp_user_code - v1-7"
logger=migrator t=2022-12-01T12:16:58.963695497Z level=info msg="Executing migration" id="create index IDX_temp_user_status - v1-7"
logger=migrator t=2022-12-01T12:16:58.987942234Z level=info msg="Executing migration" id="Update temp_user table charset"
logger=migrator t=2022-12-01T12:16:59.01041028Z level=info msg="Executing migration" id="drop index IDX_temp_user_email - v1"
logger=migrator t=2022-12-01T12:16:59.033898619Z level=info msg="Executing migration" id="drop index IDX_temp_user_org_id - v1"
logger=migrator t=2022-12-01T12:16:59.058974685Z level=info msg="Executing migration" id="drop index IDX_temp_user_code - v1"
logger=migrator t=2022-12-01T12:16:59.083759741Z level=info msg="Executing migration" id="drop index IDX_temp_user_status - v1"
logger=migrator t=2022-12-01T12:16:59.108211032Z level=info msg="Executing migration" id="Rename table temp_user to temp_user_tmp_qwerty - v1"
logger=migrator t=2022-12-01T12:16:59.137404077Z level=info msg="Executing migration" id="create temp_user v2"
logger=migrator t=2022-12-01T12:16:59.159505706Z level=info msg="Executing migration" id="create index IDX_temp_user_email - v2"
logger=migrator t=2022-12-01T12:16:59.18299362Z level=info msg="Executing migration" id="create index IDX_temp_user_org_id - v2"
logger=migrator t=2022-12-01T12:16:59.206024835Z level=info msg="Executing migration" id="create index IDX_temp_user_code - v2"
logger=migrator t=2022-12-01T12:16:59.227083669Z level=info msg="Executing migration" id="create index IDX_temp_user_status - v2"
logger=migrator t=2022-12-01T12:16:59.250520066Z level=info msg="Executing migration" id="copy temp_user v1 to v2"
logger=migrator t=2022-12-01T12:16:59.271886111Z level=info msg="Executing migration" id="drop temp_user_tmp_qwerty"
logger=migrator t=2022-12-01T12:16:59.295402428Z level=info msg="Executing migration" id="Set created for temp users that will otherwise prematurely expire"
logger=migrator t=2022-12-01T12:16:59.317151791Z level=info msg="Executing migration" id="create star table"
logger=migrator t=2022-12-01T12:16:59.341496298Z level=info msg="Executing migration" id="add unique index star.user_id_dashboard_id"
logger=migrator t=2022-12-01T12:16:59.365073069Z level=info msg="Executing migration" id="create org table v1"
logger=migrator t=2022-12-01T12:16:59.398488065Z level=info msg="Executing migration" id="create index UQE_org_name - v1"
logger=migrator t=2022-12-01T12:16:59.422751079Z level=info msg="Executing migration" id="create org_user table v1"
logger=migrator t=2022-12-01T12:16:59.451821314Z level=info msg="Executing migration" id="create index IDX_org_user_org_id - v1"
logger=migrator t=2022-12-01T12:16:59.475340756Z level=info msg="Executing migration" id="create index UQE_org_user_org_id_user_id - v1"
logger=migrator t=2022-12-01T12:16:59.502915709Z level=info msg="Executing migration" id="create index IDX_org_user_user_id - v1"
logger=migrator t=2022-12-01T12:16:59.526775515Z level=info msg="Executing migration" id="Update org table charset"
logger=migrator t=2022-12-01T12:16:59.550342237Z level=info msg="Executing migration" id="Update org_user table charset"
logger=migrator t=2022-12-01T12:16:59.571391544Z level=info msg="Executing migration" id="Migrate all Read Only Viewers to Viewers"
logger=migrator t=2022-12-01T12:16:59.594126772Z level=info msg="Executing migration" id="create dashboard table"
logger=migrator t=2022-12-01T12:16:59.619443171Z level=info msg="Executing migration" id="add index dashboard.account_id"
logger=migrator t=2022-12-01T12:16:59.646263476Z level=info msg="Executing migration" id="add unique index dashboard_account_id_slug"
logger=migrator t=2022-12-01T12:16:59.669950319Z level=info msg="Executing migration" id="create dashboard_tag table"
logger=migrator t=2022-12-01T12:16:59.697042521Z level=info msg="Executing migration" id="add unique index dashboard_tag.dasboard_id_term"
logger=migrator t=2022-12-01T12:16:59.724306812Z level=info msg="Executing migration" id="drop index UQE_dashboard_tag_dashboard_id_term - v1"
logger=migrator t=2022-12-01T12:16:59.769295157Z level=info msg="Executing migration" id="Rename table dashboard to dashboard_v1 - v1"
logger=migrator t=2022-12-01T12:16:59.811364256Z level=info msg="Executing migration" id="create dashboard v2"
logger=migrator t=2022-12-01T12:16:59.830318083Z level=info msg="Executing migration" id="create index IDX_dashboard_org_id - v2"
logger=migrator t=2022-12-01T12:16:59.848177497Z level=info msg="Executing migration" id="create index UQE_dashboard_org_id_slug - v2"
logger=migrator t=2022-12-01T12:16:59.867141638Z level=info msg="Executing migration" id="copy dashboard v1 to v2"
logger=migrator t=2022-12-01T12:16:59.884486499Z level=info msg="Executing migration" id="drop table dashboard_v1"
logger=migrator t=2022-12-01T12:16:59.906524885Z level=info msg="Executing migration" id="alter dashboard.data to mediumtext v1"
logger=migrator t=2022-12-01T12:16:59.924470444Z level=info msg="Executing migration" id="Add column updated_by in dashboard - v2"
logger=migrator t=2022-12-01T12:16:59.943305999Z level=info msg="Executing migration" id="Add column created_by in dashboard - v2"
logger=migrator t=2022-12-01T12:16:59.961407332Z level=info msg="Executing migration" id="Add column gnetId in dashboard"
logger=migrator t=2022-12-01T12:16:59.979518243Z level=info msg="Executing migration" id="Add index for gnetId in dashboard"
logger=migrator t=2022-12-01T12:17:00.000415563Z level=info msg="Executing migration" id="Add column plugin_id in dashboard"
logger=migrator t=2022-12-01T12:17:00.019722505Z level=info msg="Executing migration" id="Add index for plugin_id in dashboard"
logger=migrator t=2022-12-01T12:17:00.042150684Z level=info msg="Executing migration" id="Add index for dashboard_id in dashboard_tag"
logger=migrator t=2022-12-01T12:17:00.062327547Z level=info msg="Executing migration" id="Update dashboard table charset"
logger=migrator t=2022-12-01T12:17:00.084866185Z level=info msg="Executing migration" id="Update dashboard_tag table charset"
logger=migrator t=2022-12-01T12:17:00.103230778Z level=info msg="Executing migration" id="Add column folder_id in dashboard"
logger=migrator t=2022-12-01T12:17:00.124769524Z level=info msg="Executing migration" id="Add column isFolder in dashboard"
logger=migrator t=2022-12-01T12:17:00.146042162Z level=info msg="Executing migration" id="Add column has_acl in dashboard"
logger=migrator t=2022-12-01T12:17:00.166460493Z level=info msg="Executing migration" id="Add column uid in dashboard"
logger=migrator t=2022-12-01T12:17:00.186777429Z level=info msg="Executing migration" id="Update uid column values in dashboard"
logger=migrator t=2022-12-01T12:17:00.203308438Z level=info msg="Executing migration" id="Add unique index dashboard_org_id_uid"
logger=migrator t=2022-12-01T12:17:00.224460002Z level=info msg="Executing migration" id="Remove unique index org_id_slug"
logger=migrator t=2022-12-01T12:17:00.244274099Z level=info msg="Executing migration" id="Update dashboard title length"
logger=migrator t=2022-12-01T12:17:00.275459215Z level=info msg="Executing migration" id="Add unique index for dashboard_org_id_title_folder_id"
logger=migrator t=2022-12-01T12:17:00.296899866Z level=info msg="Executing migration" id="create dashboard_provisioning"
logger=migrator t=2022-12-01T12:17:00.322044513Z level=info msg="Executing migration" id="Rename table dashboard_provisioning to dashboard_provisioning_tmp_qwerty - v1"
logger=migrator t=2022-12-01T12:17:00.349546097Z level=info msg="Executing migration" id="create dashboard_provisioning v2"
logger=migrator t=2022-12-01T12:17:00.370739091Z level=info msg="Executing migration" id="create index IDX_dashboard_provisioning_dashboard_id - v2"
logger=migrator t=2022-12-01T12:17:00.391370152Z level=info msg="Executing migration" id="create index IDX_dashboard_provisioning_dashboard_id_name - v2"
logger=migrator t=2022-12-01T12:17:00.413184432Z level=info msg="Executing migration" id="copy dashboard_provisioning v1 to v2"
logger=migrator t=2022-12-01T12:17:00.432462985Z level=info msg="Executing migration" id="drop dashboard_provisioning_tmp_qwerty"
logger=migrator t=2022-12-01T12:17:00.453993806Z level=info msg="Executing migration" id="Add check_sum column"
logger=migrator t=2022-12-01T12:17:00.476315702Z level=info msg="Executing migration" id="Add index for dashboard_title"
logger=migrator t=2022-12-01T12:17:00.497451391Z level=info msg="Executing migration" id="delete tags for deleted dashboards"
logger=migrator t=2022-12-01T12:17:00.515864775Z level=info msg="Executing migration" id="delete stars for deleted dashboards"
logger=migrator t=2022-12-01T12:17:00.535264838Z level=info msg="Executing migration" id="Add index for dashboard_is_folder"
logger=migrator t=2022-12-01T12:17:00.556872102Z level=info msg="Executing migration" id="Add isPublic for dashboard"
logger=migrator t=2022-12-01T12:17:00.57871791Z level=info msg="Executing migration" id="create data_source table"
logger=migrator t=2022-12-01T12:17:00.602230277Z level=info msg="Executing migration" id="add index data_source.account_id"
logger=migrator t=2022-12-01T12:17:00.62533321Z level=info msg="Executing migration" id="add unique index data_source.account_id_name"
logger=migrator t=2022-12-01T12:17:00.647355057Z level=info msg="Executing migration" id="drop index IDX_data_source_account_id - v1"
logger=migrator t=2022-12-01T12:17:00.66947645Z level=info msg="Executing migration" id="drop index UQE_data_source_account_id_name - v1"
logger=migrator t=2022-12-01T12:17:00.692174614Z level=info msg="Executing migration" id="Rename table data_source to data_source_v1 - v1"
logger=migrator t=2022-12-01T12:17:00.718328941Z level=info msg="Executing migration" id="create data_source table v2"
logger=migrator t=2022-12-01T12:17:00.742108016Z level=info msg="Executing migration" id="create index IDX_data_source_org_id - v2"
logger=migrator t=2022-12-01T12:17:00.764225221Z level=info msg="Executing migration" id="create index UQE_data_source_org_id_name - v2"
logger=migrator t=2022-12-01T12:17:00.785174633Z level=info msg="Executing migration" id="Drop old table data_source_v1 #2"
logger=migrator t=2022-12-01T12:17:00.806909081Z level=info msg="Executing migration" id="Add column with_credentials"
logger=migrator t=2022-12-01T12:17:00.830366906Z level=info msg="Executing migration" id="Add secure json data column"
logger=migrator t=2022-12-01T12:17:00.853234845Z level=info msg="Executing migration" id="Update data_source table charset"
logger=migrator t=2022-12-01T12:17:00.872170221Z level=info msg="Executing migration" id="Update initial version to 1"
logger=migrator t=2022-12-01T12:17:00.892186808Z level=info msg="Executing migration" id="Add read_only data column"
logger=migrator t=2022-12-01T12:17:00.91552321Z level=info msg="Executing migration" id="Migrate logging ds to loki ds"
logger=migrator t=2022-12-01T12:17:00.935410599Z level=info msg="Executing migration" id="Update json_data with nulls"
logger=migrator t=2022-12-01T12:17:00.955193718Z level=info msg="Executing migration" id="Add uid column"
logger=migrator t=2022-12-01T12:17:00.978065583Z level=info msg="Executing migration" id="Update uid value"
logger=migrator t=2022-12-01T12:17:00.998680981Z level=info msg="Executing migration" id="Add unique index datasource_org_id_uid"
logger=migrator t=2022-12-01T12:17:01.019454966Z level=info msg="Executing migration" id="add unique index datasource_org_id_is_default"
logger=migrator t=2022-12-01T12:17:01.082279335Z level=info msg="Executing migration" id="create api_key table"
logger=migrator t=2022-12-01T12:17:01.106504383Z level=info msg="Executing migration" id="add index api_key.account_id"
logger=migrator t=2022-12-01T12:17:01.130190776Z level=info msg="Executing migration" id="add index api_key.key"
logger=migrator t=2022-12-01T12:17:01.154055246Z level=info msg="Executing migration" id="add index api_key.account_id_name"
logger=migrator t=2022-12-01T12:17:01.178494723Z level=info msg="Executing migration" id="drop index IDX_api_key_account_id - v1"
logger=migrator t=2022-12-01T12:17:01.203917068Z level=info msg="Executing migration" id="drop index UQE_api_key_key - v1"
logger=migrator t=2022-12-01T12:17:01.230959304Z level=info msg="Executing migration" id="drop index UQE_api_key_account_id_name - v1"
logger=migrator t=2022-12-01T12:17:01.256178243Z level=info msg="Executing migration" id="Rename table api_key to api_key_v1 - v1"
logger=migrator t=2022-12-01T12:17:01.285343874Z level=info msg="Executing migration" id="create api_key table v2"
logger=migrator t=2022-12-01T12:17:01.308648424Z level=info msg="Executing migration" id="create index IDX_api_key_org_id - v2"
logger=migrator t=2022-12-01T12:17:01.334729995Z level=info msg="Executing migration" id="create index UQE_api_key_key - v2"
logger=migrator t=2022-12-01T12:17:01.359988614Z level=info msg="Executing migration" id="create index UQE_api_key_org_id_name - v2"
logger=migrator t=2022-12-01T12:17:01.385048279Z level=info msg="Executing migration" id="copy api_key v1 to v2"
logger=migrator t=2022-12-01T12:17:01.415030274Z level=info msg="Executing migration" id="Drop old table api_key_v1"
logger=migrator t=2022-12-01T12:17:01.45192666Z level=info msg="Executing migration" id="Update api_key table charset"
logger=migrator t=2022-12-01T12:17:01.48202154Z level=info msg="Executing migration" id="Add expires to api_key table"
logger=migrator t=2022-12-01T12:17:01.5087476Z level=info msg="Executing migration" id="Add service account foreign key"
logger=migrator t=2022-12-01T12:17:01.540748245Z level=info msg="Executing migration" id="set service account foreign key to nil if 0"
logger=migrator t=2022-12-01T12:17:01.561117623Z level=info msg="Executing migration" id="Add last_used_at to api_key table"
logger=migrator t=2022-12-01T12:17:01.585260651Z level=info msg="Executing migration" id="Add is_revoked column to api_key table"
logger=migrator t=2022-12-01T12:17:01.609270196Z level=info msg="Executing migration" id="create dashboard_snapshot table v4"
logger=migrator t=2022-12-01T12:17:01.638230872Z level=info msg="Executing migration" id="drop table dashboard_snapshot_v4 #1"
logger=migrator t=2022-12-01T12:17:01.663220144Z level=info msg="Executing migration" id="create dashboard_snapshot table v5 #2"
logger=migrator t=2022-12-01T12:17:01.685722742Z level=info msg="Executing migration" id="create index UQE_dashboard_snapshot_key - v5"
logger=migrator t=2022-12-01T12:17:01.709245034Z level=info msg="Executing migration" id="create index UQE_dashboard_snapshot_delete_key - v5"
logger=migrator t=2022-12-01T12:17:01.734116646Z level=info msg="Executing migration" id="create index IDX_dashboard_snapshot_user_id - v5"
logger=migrator t=2022-12-01T12:17:01.758482505Z level=info msg="Executing migration" id="alter dashboard_snapshot to mediumtext v2"
logger=migrator t=2022-12-01T12:17:01.778859684Z level=info msg="Executing migration" id="Update dashboard_snapshot table charset"
logger=migrator t=2022-12-01T12:17:01.799497871Z level=info msg="Executing migration" id="Add column external_delete_url to dashboard_snapshots table"
logger=migrator t=2022-12-01T12:17:01.824144227Z level=info msg="Executing migration" id="Add encrypted dashboard json column"
logger=migrator t=2022-12-01T12:17:01.849484228Z level=info msg="Executing migration" id="Change dashboard_encrypted column to MEDIUMBLOB"
logger=migrator t=2022-12-01T12:17:01.870227647Z level=info msg="Executing migration" id="create quota table v1"
logger=migrator t=2022-12-01T12:17:01.89319897Z level=info msg="Executing migration" id="create index UQE_quota_org_id_user_id_target - v1"
logger=migrator t=2022-12-01T12:17:01.916804569Z level=info msg="Executing migration" id="Update quota table charset"
logger=migrator t=2022-12-01T12:17:01.936262099Z level=info msg="Executing migration" id="create plugin_setting table"
logger=migrator t=2022-12-01T12:17:01.958515115Z level=info msg="Executing migration" id="create index UQE_plugin_setting_org_id_plugin_id - v1"
logger=migrator t=2022-12-01T12:17:01.983063988Z level=info msg="Executing migration" id="Add column plugin_version to plugin_settings"
logger=migrator t=2022-12-01T12:17:02.007759349Z level=info msg="Executing migration" id="Update plugin_setting table charset"
logger=migrator t=2022-12-01T12:17:02.030881284Z level=info msg="Executing migration" id="create session table"
logger=migrator t=2022-12-01T12:17:02.057051388Z level=info msg="Executing migration" id="Drop old table playlist table"
logger=migrator t=2022-12-01T12:17:02.078236868Z level=info msg="Executing migration" id="Drop old table playlist_item table"
logger=migrator t=2022-12-01T12:17:02.098269319Z level=info msg="Executing migration" id="create playlist table v2"
logger=migrator t=2022-12-01T12:17:02.123237115Z level=info msg="Executing migration" id="create playlist item table v2"
logger=migrator t=2022-12-01T12:17:02.149115908Z level=info msg="Executing migration" id="Update playlist table charset"
logger=migrator t=2022-12-01T12:17:02.170337316Z level=info msg="Executing migration" id="Update playlist_item table charset"
logger=migrator t=2022-12-01T12:17:02.193482053Z level=info msg="Executing migration" id="drop preferences table v2"
logger=migrator t=2022-12-01T12:17:02.215523839Z level=info msg="Executing migration" id="drop preferences table v3"
logger=migrator t=2022-12-01T12:17:02.237263739Z level=info msg="Executing migration" id="create preferences table v3"
logger=migrator t=2022-12-01T12:17:02.30167811Z level=info msg="Executing migration" id="Update preferences table charset"
logger=migrator t=2022-12-01T12:17:02.324059124Z level=info msg="Executing migration" id="Add column team_id in preferences"
logger=migrator t=2022-12-01T12:17:02.356363493Z level=info msg="Executing migration" id="Update team_id column values in preferences"
logger=migrator t=2022-12-01T12:17:02.384253596Z level=info msg="Executing migration" id="Add column week_start in preferences"
logger=migrator t=2022-12-01T12:17:02.41251148Z level=info msg="Executing migration" id="Add column preferences.json_data"
logger=migrator t=2022-12-01T12:17:02.440022965Z level=info msg="Executing migration" id="alter preferences.json_data to mediumtext v1"
logger=migrator t=2022-12-01T12:17:02.463392858Z level=info msg="Executing migration" id="Add preferences index org_id"
logger=migrator t=2022-12-01T12:17:02.48892581Z level=info msg="Executing migration" id="Add preferences index user_id"
logger=migrator t=2022-12-01T12:17:02.51797432Z level=info msg="Executing migration" id="create alert table v1"
logger=migrator t=2022-12-01T12:17:02.547201629Z level=info msg="Executing migration" id="add index alert org_id & id "
logger=migrator t=2022-12-01T12:17:02.579088815Z level=info msg="Executing migration" id="add index alert state"
logger=migrator t=2022-12-01T12:17:02.608517467Z level=info msg="Executing migration" id="add index alert dashboard_id"
logger=migrator t=2022-12-01T12:17:02.635295432Z level=info msg="Executing migration" id="Create alert_rule_tag table v1"
logger=migrator t=2022-12-01T12:17:02.660832334Z level=info msg="Executing migration" id="Add unique index alert_rule_tag.alert_id_tag_id"
logger=migrator t=2022-12-01T12:17:02.689411243Z level=info msg="Executing migration" id="drop index UQE_alert_rule_tag_alert_id_tag_id - v1"
logger=migrator t=2022-12-01T12:17:02.721172744Z level=info msg="Executing migration" id="Rename table alert_rule_tag to alert_rule_tag_v1 - v1"
logger=migrator t=2022-12-01T12:17:02.795147005Z level=info msg="Executing migration" id="Create alert_rule_tag table v2"
logger=migrator t=2022-12-01T12:17:02.835567772Z level=info msg="Executing migration" id="create index UQE_alert_rule_tag_alert_id_tag_id - Add unique index alert_rule_tag.alert_id_tag_id V2"
logger=migrator t=2022-12-01T12:17:02.866204157Z level=info msg="Executing migration" id="copy alert_rule_tag v1 to v2"
logger=migrator t=2022-12-01T12:17:02.887150556Z level=info msg="Executing migration" id="drop table alert_rule_tag_v1"
logger=migrator t=2022-12-01T12:17:02.912163617Z level=info msg="Executing migration" id="create alert_notification table v1"
logger=migrator t=2022-12-01T12:17:02.934434359Z level=info msg="Executing migration" id="Add column is_default"
logger=migrator t=2022-12-01T12:17:02.958543573Z level=info msg="Executing migration" id="Add column frequency"
logger=migrator t=2022-12-01T12:17:02.983384959Z level=info msg="Executing migration" id="Add column send_reminder"
logger=migrator t=2022-12-01T12:17:03.007358499Z level=info msg="Executing migration" id="Add column disable_resolve_message"
logger=migrator t=2022-12-01T12:17:03.034298651Z level=info msg="Executing migration" id="add index alert_notification org_id & name"
logger=migrator t=2022-12-01T12:17:03.088478856Z level=info msg="Executing migration" id="Update alert table charset"
logger=migrator t=2022-12-01T12:17:03.106872413Z level=info msg="Executing migration" id="Update alert_notification table charset"
logger=migrator t=2022-12-01T12:17:03.126329769Z level=info msg="Executing migration" id="create notification_journal table v1"
logger=migrator t=2022-12-01T12:17:03.153164513Z level=info msg="Executing migration" id="add index notification_journal org_id & alert_id & notifier_id"
logger=migrator t=2022-12-01T12:17:03.17619259Z level=info msg="Executing migration" id="drop alert_notification_journal"
logger=migrator t=2022-12-01T12:17:03.199081281Z level=info msg="Executing migration" id="create alert_notification_state table v1"
logger=migrator t=2022-12-01T12:17:03.222071406Z level=info msg="Executing migration" id="add index alert_notification_state org_id & alert_id & notifier_id"
logger=migrator t=2022-12-01T12:17:03.244885242Z level=info msg="Executing migration" id="Add for to alert table"
logger=migrator t=2022-12-01T12:17:03.267328735Z level=info msg="Executing migration" id="Add column uid in alert_notification"
logger=migrator t=2022-12-01T12:17:03.29119723Z level=info msg="Executing migration" id="Update uid column values in alert_notification"
logger=migrator t=2022-12-01T12:17:03.311372404Z level=info msg="Executing migration" id="Add unique index alert_notification_org_id_uid"
logger=migrator t=2022-12-01T12:17:03.334408095Z level=info msg="Executing migration" id="Remove unique index org_id_name"
logger=migrator t=2022-12-01T12:17:03.356319571Z level=info msg="Executing migration" id="Add column secure_settings in alert_notification"
logger=migrator t=2022-12-01T12:17:03.381534823Z level=info msg="Executing migration" id="alter alert.settings to mediumtext"
logger=migrator t=2022-12-01T12:17:03.406103961Z level=info msg="Executing migration" id="Add non-unique index alert_notification_state_alert_id"
logger=migrator t=2022-12-01T12:17:03.429689171Z level=info msg="Executing migration" id="Add non-unique index alert_rule_tag_alert_id"
logger=migrator t=2022-12-01T12:17:03.451493876Z level=info msg="Executing migration" id="Drop old annotation table v4"
logger=migrator t=2022-12-01T12:17:03.47250223Z level=info msg="Executing migration" id="create annotation table v5"
logger=migrator t=2022-12-01T12:17:03.500177104Z level=info msg="Executing migration" id="add index annotation 0 v3"
logger=migrator t=2022-12-01T12:17:03.523523644Z level=info msg="Executing migration" id="add index annotation 1 v3"
logger=migrator t=2022-12-01T12:17:03.548003462Z level=info msg="Executing migration" id="add index annotation 2 v3"
logger=migrator t=2022-12-01T12:17:03.56981098Z level=info msg="Executing migration" id="add index annotation 3 v3"
logger=migrator t=2022-12-01T12:17:03.594524693Z level=info msg="Executing migration" id="add index annotation 4 v3"
logger=migrator t=2022-12-01T12:17:03.618361622Z level=info msg="Executing migration" id="Update annotation table charset"
logger=migrator t=2022-12-01T12:17:03.636463494Z level=info msg="Executing migration" id="Add column region_id to annotation table"
logger=migrator t=2022-12-01T12:17:03.664290929Z level=info msg="Executing migration" id="Drop category_id index"
logger=migrator t=2022-12-01T12:17:03.688284422Z level=info msg="Executing migration" id="Add column tags to annotation table"
logger=migrator t=2022-12-01T12:17:03.711884958Z level=info msg="Executing migration" id="Create annotation_tag table v2"
logger=migrator t=2022-12-01T12:17:03.739115084Z level=info msg="Executing migration" id="Add unique index annotation_tag.annotation_id_tag_id"
logger=migrator t=2022-12-01T12:17:03.762511916Z level=info msg="Executing migration" id="drop index UQE_annotation_tag_annotation_id_tag_id - v2"
logger=migrator t=2022-12-01T12:17:03.787371002Z level=info msg="Executing migration" id="Rename table annotation_tag to annotation_tag_v2 - v2"
logger=migrator t=2022-12-01T12:17:03.821928526Z level=info msg="Executing migration" id="Create annotation_tag table v3"
logger=migrator t=2022-12-01T12:17:03.845389613Z level=info msg="Executing migration" id="create index UQE_annotation_tag_annotation_id_tag_id - Add unique index annotation_tag.annotation_id_tag_id V3"
logger=migrator t=2022-12-01T12:17:03.868341022Z level=info msg="Executing migration" id="copy annotation_tag v2 to v3"
logger=migrator t=2022-12-01T12:17:03.889144384Z level=info msg="Executing migration" id="drop table annotation_tag_v2"
logger=migrator t=2022-12-01T12:17:03.911433916Z level=info msg="Executing migration" id="Update alert annotations and set TEXT to empty"
logger=migrator t=2022-12-01T12:17:03.932550315Z level=info msg="Executing migration" id="Add created time to annotation table"
logger=migrator t=2022-12-01T12:17:03.957812784Z level=info msg="Executing migration" id="Add updated time to annotation table"
logger=migrator t=2022-12-01T12:17:03.982506294Z level=info msg="Executing migration" id="Add index for created in annotation table"
logger=migrator t=2022-12-01T12:17:04.007886872Z level=info msg="Executing migration" id="Add index for updated in annotation table"
logger=migrator t=2022-12-01T12:17:04.057491174Z level=info msg="Executing migration" id="Convert existing annotations from seconds to milliseconds"
logger=migrator t=2022-12-01T12:17:04.078327351Z level=info msg="Executing migration" id="Add epoch_end column"
logger=migrator t=2022-12-01T12:17:04.102538399Z level=info msg="Executing migration" id="Add index for epoch_end"
logger=migrator t=2022-12-01T12:17:04.129701557Z level=info msg="Executing migration" id="Make epoch_end the same as epoch"
logger=migrator t=2022-12-01T12:17:04.149369628Z level=info msg="Executing migration" id="Move region to single row"
logger=migrator t=2022-12-01T12:17:04.17270913Z level=info msg="Executing migration" id="Remove index org_id_epoch from annotation table"
logger=migrator t=2022-12-01T12:17:04.194961696Z level=info msg="Executing migration" id="Remove index org_id_dashboard_id_panel_id_epoch from annotation table"
logger=migrator t=2022-12-01T12:17:04.21854698Z level=info msg="Executing migration" id="Add index for org_id_dashboard_id_epoch_end_epoch on annotation table"
logger=migrator t=2022-12-01T12:17:04.2422548Z level=info msg="Executing migration" id="Add index for org_id_epoch_end_epoch on annotation table"
logger=migrator t=2022-12-01T12:17:04.266639824Z level=info msg="Executing migration" id="Remove index org_id_epoch_epoch_end from annotation table"
logger=migrator t=2022-12-01T12:17:04.292291186Z level=info msg="Executing migration" id="Add index for alert_id on annotation table"
logger=migrator t=2022-12-01T12:17:04.316882563Z level=info msg="Executing migration" id="Increase tags column to length 4096"
logger=migrator t=2022-12-01T12:17:04.337909331Z level=info msg="Executing migration" id="create test_data table"
logger=migrator t=2022-12-01T12:17:04.360946147Z level=info msg="Executing migration" id="create dashboard_version table v1"
logger=migrator t=2022-12-01T12:17:04.383436395Z level=info msg="Executing migration" id="add index dashboard_version.dashboard_id"
logger=migrator t=2022-12-01T12:17:04.409801426Z level=info msg="Executing migration" id="add unique index dashboard_version.dashboard_id and dashboard_version.version"
logger=migrator t=2022-12-01T12:17:04.438930528Z level=info msg="Executing migration" id="Set dashboard version to 1 where 0"
logger=migrator t=2022-12-01T12:17:04.464458344Z level=info msg="Executing migration" id="save existing dashboard data in dashboard_version table v1"
logger=migrator t=2022-12-01T12:17:04.488014125Z level=info msg="Executing migration" id="alter dashboard_version.data to mediumtext v1"
logger=migrator t=2022-12-01T12:17:04.509425749Z level=info msg="Executing migration" id="create team table"
logger=migrator t=2022-12-01T12:17:04.534516941Z level=info msg="Executing migration" id="add index team.org_id"
logger=migrator t=2022-12-01T12:17:04.569846015Z level=info msg="Executing migration" id="add unique index team_org_id_name"
logger=migrator t=2022-12-01T12:17:04.595162425Z level=info msg="Executing migration" id="create team member table"
logger=migrator t=2022-12-01T12:17:04.620078765Z level=info msg="Executing migration" id="add index team_member.org_id"
logger=migrator t=2022-12-01T12:17:04.643030374Z level=info msg="Executing migration" id="add unique index team_member_org_id_team_id_user_id"
logger=migrator t=2022-12-01T12:17:04.666544854Z level=info msg="Executing migration" id="add index team_member.team_id"
logger=migrator t=2022-12-01T12:17:04.691266404Z level=info msg="Executing migration" id="Add column email to team table"
logger=migrator t=2022-12-01T12:17:04.717779873Z level=info msg="Executing migration" id="Add column external to team_member table"
logger=migrator t=2022-12-01T12:17:04.742486198Z level=info msg="Executing migration" id="Add column permission to team_member table"
logger=migrator t=2022-12-01T12:17:04.769482141Z level=info msg="Executing migration" id="create dashboard acl table"
logger=migrator t=2022-12-01T12:17:04.793353149Z level=info msg="Executing migration" id="add index dashboard_acl_dashboard_id"
logger=migrator t=2022-12-01T12:17:04.819342688Z level=info msg="Executing migration" id="add unique index dashboard_acl_dashboard_id_user_id"
logger=migrator t=2022-12-01T12:17:04.874538887Z level=info msg="Executing migration" id="add unique index dashboard_acl_dashboard_id_team_id"
logger=migrator t=2022-12-01T12:17:04.899199619Z level=info msg="Executing migration" id="add index dashboard_acl_user_id"
logger=migrator t=2022-12-01T12:17:04.929143787Z level=info msg="Executing migration" id="add index dashboard_acl_team_id"
logger=migrator t=2022-12-01T12:17:04.95692267Z level=info msg="Executing migration" id="add index dashboard_acl_org_id_role"
logger=migrator t=2022-12-01T12:17:04.983111374Z level=info msg="Executing migration" id="add index dashboard_permission"
logger=migrator t=2022-12-01T12:17:05.008214268Z level=info msg="Executing migration" id="save default acl rules in dashboard_acl table"
logger=migrator t=2022-12-01T12:17:05.038530077Z level=info msg="Executing migration" id="delete acl rules for deleted dashboards and folders"
logger=migrator t=2022-12-01T12:17:05.063014797Z level=info msg="Executing migration" id="create tag table"
logger=migrator t=2022-12-01T12:17:05.089202502Z level=info msg="Executing migration" id="add index tag.key_value"
logger=migrator t=2022-12-01T12:17:05.114865565Z level=info msg="Executing migration" id="create login attempt table"
logger=migrator t=2022-12-01T12:17:05.140420895Z level=info msg="Executing migration" id="add index login_attempt.username"
logger=migrator t=2022-12-01T12:17:05.169817069Z level=info msg="Executing migration" id="drop index IDX_login_attempt_username - v1"
logger=migrator t=2022-12-01T12:17:05.196277258Z level=info msg="Executing migration" id="Rename table login_attempt to login_attempt_tmp_qwerty - v1"
logger=migrator t=2022-12-01T12:17:05.236265454Z level=info msg="Executing migration" id="create login_attempt v2"
logger=migrator t=2022-12-01T12:17:05.261634617Z level=info msg="Executing migration" id="create index IDX_login_attempt_username - v2"
logger=migrator t=2022-12-01T12:17:05.287148982Z level=info msg="Executing migration" id="copy login_attempt v1 to v2"
logger=migrator t=2022-12-01T12:17:05.308212703Z level=info msg="Executing migration" id="drop login_attempt_tmp_qwerty"
logger=migrator t=2022-12-01T12:17:05.333013921Z level=info msg="Executing migration" id="create user auth table"
logger=migrator t=2022-12-01T12:17:05.358663058Z level=info msg="Executing migration" id="create index IDX_user_auth_auth_module_auth_id - v1"
logger=migrator t=2022-12-01T12:17:05.385201516Z level=info msg="Executing migration" id="alter user_auth.auth_id to length 190"
logger=migrator t=2022-12-01T12:17:05.410751734Z level=info msg="Executing migration" id="Add OAuth access token to user_auth"
logger=migrator t=2022-12-01T12:17:05.439542497Z level=info msg="Executing migration" id="Add OAuth refresh token to user_auth"
logger=migrator t=2022-12-01T12:17:05.468508799Z level=info msg="Executing migration" id="Add OAuth token type to user_auth"
logger=migrator t=2022-12-01T12:17:05.495412773Z level=info msg="Executing migration" id="Add OAuth expiry to user_auth"
logger=migrator t=2022-12-01T12:17:05.522867392Z level=info msg="Executing migration" id="Add index to user_id column in user_auth"
logger=migrator t=2022-12-01T12:17:05.55509733Z level=info msg="Executing migration" id="Add OAuth ID token to user_auth"
logger=migrator t=2022-12-01T12:17:05.584057507Z level=info msg="Executing migration" id="create server_lock table"
logger=migrator t=2022-12-01T12:17:05.631985174Z level=info msg="Executing migration" id="add index server_lock.operation_uid"
logger=migrator t=2022-12-01T12:17:05.660846667Z level=info msg="Executing migration" id="create user auth token table"
logger=migrator t=2022-12-01T12:17:05.689426163Z level=info msg="Executing migration" id="add unique index user_auth_token.auth_token"
logger=migrator t=2022-12-01T12:17:05.715475083Z level=info msg="Executing migration" id="add unique index user_auth_token.prev_auth_token"
logger=migrator t=2022-12-01T12:17:05.745298216Z level=info msg="Executing migration" id="add index user_auth_token.user_id"
logger=migrator t=2022-12-01T12:17:05.787001686Z level=info msg="Executing migration" id="Add revoked_at to the user auth token"
logger=migrator t=2022-12-01T12:17:05.821095472Z level=info msg="Executing migration" id="create cache_data table"
logger=migrator t=2022-12-01T12:17:05.848400604Z level=info msg="Executing migration" id="add unique index cache_data.cache_key"
logger=migrator t=2022-12-01T12:17:05.869415883Z level=info msg="Executing migration" id="create short_url table v1"
logger=migrator t=2022-12-01T12:17:05.894410868Z level=info msg="Executing migration" id="add index short_url.org_id-uid"
logger=migrator t=2022-12-01T12:17:05.916341321Z level=info msg="Executing migration" id="alter table short_url alter column created_by type to bigint"
logger=migrator t=2022-12-01T12:17:05.936260912Z level=info msg="Executing migration" id="delete alert_definition table"
logger=migrator t=2022-12-01T12:17:05.957729753Z level=info msg="Executing migration" id="recreate alert_definition table"
logger=migrator t=2022-12-01T12:17:05.984205618Z level=info msg="Executing migration" id="add index in alert_definition on org_id and title columns"
logger=migrator t=2022-12-01T12:17:06.04836172Z level=info msg="Executing migration" id="add index in alert_definition on org_id and uid columns"
logger=migrator t=2022-12-01T12:17:06.072924145Z level=info msg="Executing migration" id="alter alert_definition table data column to mediumtext in mysql"
logger=migrator t=2022-12-01T12:17:06.093882333Z level=info msg="Executing migration" id="drop index in alert_definition on org_id and title columns"
logger=migrator t=2022-12-01T12:17:06.118802886Z level=info msg="Executing migration" id="drop index in alert_definition on org_id and uid columns"
logger=migrator t=2022-12-01T12:17:06.145313317Z level=info msg="Executing migration" id="add unique index in alert_definition on org_id and title columns"
logger=migrator t=2022-12-01T12:17:06.169504363Z level=info msg="Executing migration" id="add unique index in alert_definition on org_id and uid columns"
logger=migrator t=2022-12-01T12:17:06.19534614Z level=info msg="Executing migration" id="Add column paused in alert_definition"
logger=migrator t=2022-12-01T12:17:06.227678761Z level=info msg="Executing migration" id="drop alert_definition table"
logger=migrator t=2022-12-01T12:17:06.257896688Z level=info msg="Executing migration" id="delete alert_definition_version table"
logger=migrator t=2022-12-01T12:17:06.279911722Z level=info msg="Executing migration" id="recreate alert_definition_version table"
logger=migrator t=2022-12-01T12:17:06.307517228Z level=info msg="Executing migration" id="add index in alert_definition_version table on alert_definition_id and version columns"
logger=migrator t=2022-12-01T12:17:06.336824307Z level=info msg="Executing migration" id="add index in alert_definition_version table on alert_definition_uid and version columns"
logger=migrator t=2022-12-01T12:17:06.36570654Z level=info msg="Executing migration" id="alter alert_definition_version table data column to mediumtext in mysql"
logger=migrator t=2022-12-01T12:17:06.388232215Z level=info msg="Executing migration" id="drop alert_definition_version table"
logger=migrator t=2022-12-01T12:17:06.422717621Z level=info msg="Executing migration" id="create alert_instance table"
logger=migrator t=2022-12-01T12:17:06.450746561Z level=info msg="Executing migration" id="add index in alert_instance table on def_org_id, def_uid and current_state columns"
logger=migrator t=2022-12-01T12:17:06.478499429Z level=info msg="Executing migration" id="add index in alert_instance table on def_org_id, current_state columns"
logger=migrator t=2022-12-01T12:17:06.504796979Z level=info msg="Executing migration" id="add column current_state_end to alert_instance"
logger=migrator t=2022-12-01T12:17:06.540742651Z level=info msg="Executing migration" id="remove index def_org_id, def_uid, current_state on alert_instance"
logger=migrator t=2022-12-01T12:17:06.57079359Z level=info msg="Executing migration" id="remove index def_org_id, current_state on alert_instance"
logger=migrator t=2022-12-01T12:17:06.603876722Z level=info msg="Executing migration" id="rename def_org_id to rule_org_id in alert_instance"
logger=migrator t=2022-12-01T12:17:06.669956664Z level=info msg="Executing migration" id="rename def_uid to rule_uid in alert_instance"
logger=migrator t=2022-12-01T12:17:06.755204476Z level=info msg="Executing migration" id="add index rule_org_id, rule_uid, current_state on alert_instance"
logger=migrator t=2022-12-01T12:17:06.790423915Z level=info msg="Executing migration" id="add index rule_org_id, current_state on alert_instance"
logger=migrator t=2022-12-01T12:17:06.822736122Z level=info msg="Executing migration" id="add current_reason column related to current_state"
logger=migrator t=2022-12-01T12:17:06.862522826Z level=info msg="Executing migration" id="create alert_rule table"
logger=migrator t=2022-12-01T12:17:06.896748186Z level=info msg="Executing migration" id="add index in alert_rule on org_id and title columns"
logger=migrator t=2022-12-01T12:17:06.93749873Z level=info msg="Executing migration" id="add index in alert_rule on org_id and uid columns"
logger=migrator t=2022-12-01T12:17:06.974854853Z level=info msg="Executing migration" id="add index in alert_rule on org_id, namespace_uid, group_uid columns"
logger=migrator t=2022-12-01T12:17:07.009671935Z level=info msg="Executing migration" id="alter alert_rule table data column to mediumtext in mysql"
logger=migrator t=2022-12-01T12:17:07.037270528Z level=info msg="Executing migration" id="add column for to alert_rule"
logger=migrator t=2022-12-01T12:17:07.083390863Z level=info msg="Executing migration" id="add column annotations to alert_rule"
logger=migrator t=2022-12-01T12:17:07.123161466Z level=info msg="Executing migration" id="add column labels to alert_rule"
logger=migrator t=2022-12-01T12:17:07.162263103Z level=info msg="Executing migration" id="remove unique index from alert_rule on org_id, title columns"
logger=migrator t=2022-12-01T12:17:07.195241075Z level=info msg="Executing migration" id="add index in alert_rule on org_id, namespase_uid and title columns"
logger=migrator t=2022-12-01T12:17:07.22899981Z level=info msg="Executing migration" id="add dashboard_uid column to alert_rule"
logger=migrator t=2022-12-01T12:17:07.269148881Z level=info msg="Executing migration" id="add panel_id column to alert_rule"
logger=migrator t=2022-12-01T12:17:07.312952806Z level=info msg="Executing migration" id="add index in alert_rule on org_id, dashboard_uid and panel_id columns"
logger=migrator t=2022-12-01T12:17:07.347298189Z level=info msg="Executing migration" id="add rule_group_idx column to alert_rule"
logger=migrator t=2022-12-01T12:17:07.38808336Z level=info msg="Executing migration" id="create alert_rule_version table"
logger=migrator t=2022-12-01T12:17:07.434815432Z level=info msg="Executing migration" id="add index in alert_rule_version table on rule_org_id, rule_uid and version columns"
logger=migrator t=2022-12-01T12:17:07.504352838Z level=info msg="Executing migration" id="add index in alert_rule_version table on rule_org_id, rule_namespace_uid and rule_group columns"
logger=migrator t=2022-12-01T12:17:07.53587552Z level=info msg="Executing migration" id="alter alert_rule_version table data column to mediumtext in mysql"
logger=migrator t=2022-12-01T12:17:07.568835478Z level=info msg="Executing migration" id="add column for to alert_rule_version"
logger=migrator t=2022-12-01T12:17:07.603009647Z level=info msg="Executing migration" id="add column annotations to alert_rule_version"
logger=migrator t=2022-12-01T12:17:07.635792116Z level=info msg="Executing migration" id="add column labels to alert_rule_version"
logger=migrator t=2022-12-01T12:17:07.674062849Z level=info msg="Executing migration" id="add rule_group_idx column to alert_rule_version"
logger=migrator t=2022-12-01T12:17:07.710972861Z level=info msg="Executing migration" id=create_alert_configuration_table
logger=migrator t=2022-12-01T12:17:07.740152792Z level=info msg="Executing migration" id="Add column default in alert_configuration"
logger=migrator t=2022-12-01T12:17:07.77225242Z level=info msg="Executing migration" id="alert alert_configuration alertmanager_configuration column from TEXT to MEDIUMTEXT if mysql"
logger=migrator t=2022-12-01T12:17:07.795995367Z level=info msg="Executing migration" id="add column org_id in alert_configuration"
logger=migrator t=2022-12-01T12:17:07.828834253Z level=info msg="Executing migration" id="add index in alert_configuration table on org_id column"
logger=migrator t=2022-12-01T12:17:07.906973434Z level=info msg="Executing migration" id="add configuration_hash column to alert_configuration"
logger=migrator t=2022-12-01T12:17:07.941983333Z level=info msg="Executing migration" id=create_ngalert_configuration_table
logger=migrator t=2022-12-01T12:17:07.991249406Z level=info msg="Executing migration" id="add index in ngalert_configuration on org_id column"
logger=migrator t=2022-12-01T12:17:08.022961428Z level=info msg="Executing migration" id="add column send_alerts_to in ngalert_configuration"
logger=migrator t=2022-12-01T12:17:08.059692163Z level=info msg="Executing migration" id="create provenance_type table"
logger=migrator t=2022-12-01T12:17:08.097801584Z level=info msg="Executing migration" id="add index to uniquify (record_key, record_type, org_id) columns"
logger=migrator t=2022-12-01T12:17:08.135806407Z level=info msg="Executing migration" id="create alert_image table"
logger=migrator t=2022-12-01T12:17:08.16828004Z level=info msg="Executing migration" id="add unique index on token to alert_image table"
logger=migrator t=2022-12-01T12:17:08.201830233Z level=info msg="Executing migration" id="support longer URLs in alert_image table"
logger=migrator t=2022-12-01T12:17:08.231904999Z level=info msg="Executing migration" id="clear migration entry \"remove unified alerting data\""
logger=migrator t=2022-12-01T12:17:08.233419258Z level=info msg="Executing migration" id="move dashboard alerts to unified alerting"
logger=migrator t=2022-12-01T12:17:08.236329753Z level=info msg="alerts found to migrate" alerts=0
logger=migrator t=2022-12-01T12:17:08.268470021Z level=info msg="Executing migration" id="create library_element table v1"
logger=migrator t=2022-12-01T12:17:08.302933925Z level=info msg="Executing migration" id="add index library_element org_id-folder_id-name-kind"
logger=migrator t=2022-12-01T12:17:08.347258742Z level=info msg="Executing migration" id="create library_element_connection table v1"
logger=migrator t=2022-12-01T12:17:08.380776595Z level=info msg="Executing migration" id="add index library_element_connection element_id-kind-connection_id"
logger=migrator t=2022-12-01T12:17:08.417192417Z level=info msg="Executing migration" id="add unique index library_element org_id_uid"
logger=migrator t=2022-12-01T12:17:08.449181861Z level=info msg="Executing migration" id="increase max description length to 2048"
logger=migrator t=2022-12-01T12:17:08.477932396Z level=info msg="Executing migration" id="clone move dashboard alerts to unified alerting"
logger=migrator t=2022-12-01T12:17:08.506232582Z level=info msg="Executing migration" id="create data_keys table"
logger=migrator t=2022-12-01T12:17:08.545480943Z level=info msg="Executing migration" id="create secrets table"
logger=migrator t=2022-12-01T12:17:08.577050003Z level=info msg="Executing migration" id="rename data_keys name column to id"
logger=migrator t=2022-12-01T12:17:08.67881276Z level=info msg="Executing migration" id="add name column into data_keys"
logger=migrator t=2022-12-01T12:17:08.720289849Z level=info msg="Executing migration" id="copy data_keys id column values into name"
logger=migrator t=2022-12-01T12:17:08.759040096Z level=info msg="Executing migration" id="rename data_keys name column to label"
logger=migrator t=2022-12-01T12:17:08.856385562Z level=info msg="Executing migration" id="rename data_keys id column back to name"
logger=migrator t=2022-12-01T12:17:08.917688148Z level=info msg="Executing migration" id="create kv_store table v1"
logger=migrator t=2022-12-01T12:17:08.971922406Z level=info msg="Executing migration" id="add index kv_store.org_id-namespace-key"
logger=migrator t=2022-12-01T12:17:08.996145316Z level=info msg="Executing migration" id="update dashboard_uid and panel_id from existing annotations"
logger=migrator t=2022-12-01T12:17:09.020266869Z level=info msg="Executing migration" id="create permission table"
logger=migrator t=2022-12-01T12:17:09.046080732Z level=info msg="Executing migration" id="add unique index permission.role_id"
logger=migrator t=2022-12-01T12:17:09.070711388Z level=info msg="Executing migration" id="add unique index role_id_action_scope"
logger=migrator t=2022-12-01T12:17:09.095535658Z level=info msg="Executing migration" id="create role table"
logger=migrator t=2022-12-01T12:17:09.122591296Z level=info msg="Executing migration" id="add column display_name"
logger=migrator t=2022-12-01T12:17:09.15418902Z level=info msg="Executing migration" id="add column group_name"
logger=migrator t=2022-12-01T12:17:09.181410758Z level=info msg="Executing migration" id="add index role.org_id"
logger=migrator t=2022-12-01T12:17:09.206840115Z level=info msg="Executing migration" id="add unique index role_org_id_name"
logger=migrator t=2022-12-01T12:17:09.231034248Z level=info msg="Executing migration" id="add index role_org_id_uid"
logger=migrator t=2022-12-01T12:17:09.255903036Z level=info msg="Executing migration" id="create team role table"
logger=migrator t=2022-12-01T12:17:09.278971242Z level=info msg="Executing migration" id="add index team_role.org_id"
logger=migrator t=2022-12-01T12:17:09.303840766Z level=info msg="Executing migration" id="add unique index team_role_org_id_team_id_role_id"
logger=migrator t=2022-12-01T12:17:09.327405237Z level=info msg="Executing migration" id="add index team_role.team_id"
logger=migrator t=2022-12-01T12:17:09.352001077Z level=info msg="Executing migration" id="create user role table"
logger=migrator t=2022-12-01T12:17:09.375395321Z level=info msg="Executing migration" id="add index user_role.org_id"
logger=migrator t=2022-12-01T12:17:09.464464901Z level=info msg="Executing migration" id="add unique index user_role_org_id_user_id_role_id"
logger=migrator t=2022-12-01T12:17:09.492436099Z level=info msg="Executing migration" id="add index user_role.user_id"
logger=migrator t=2022-12-01T12:17:09.518226122Z level=info msg="Executing migration" id="create builtin role table"
logger=migrator t=2022-12-01T12:17:09.545011787Z level=info msg="Executing migration" id="add index builtin_role.role_id"
logger=migrator t=2022-12-01T12:17:09.569685671Z level=info msg="Executing migration" id="add index builtin_role.name"
logger=migrator t=2022-12-01T12:17:09.603761319Z level=info msg="Executing migration" id="Add column org_id to builtin_role table"
logger=migrator t=2022-12-01T12:17:09.640549883Z level=info msg="Executing migration" id="add index builtin_role.org_id"
logger=migrator t=2022-12-01T12:17:09.665463075Z level=info msg="Executing migration" id="add unique index builtin_role_org_id_role_id_role"
logger=migrator t=2022-12-01T12:17:09.690343175Z level=info msg="Executing migration" id="Remove unique index role_org_id_uid"
logger=migrator t=2022-12-01T12:17:09.717162381Z level=info msg="Executing migration" id="add unique index role.uid"
logger=migrator t=2022-12-01T12:17:09.743486835Z level=info msg="Executing migration" id="create seed assignment table"
logger=migrator t=2022-12-01T12:17:09.771484859Z level=info msg="Executing migration" id="add unique index builtin_role_role_name"
logger=migrator t=2022-12-01T12:17:09.798956079Z level=info msg="Executing migration" id="add column hidden to role table"
logger=migrator t=2022-12-01T12:17:09.828745709Z level=info msg="Executing migration" id="create query_history table v1"
logger=migrator t=2022-12-01T12:17:09.854879222Z level=info msg="Executing migration" id="add index query_history.org_id-created_by-datasource_uid"
logger=migrator t=2022-12-01T12:17:09.879669891Z level=info msg="Executing migration" id="alter table query_history alter column created_by type to bigint"
logger=migrator t=2022-12-01T12:17:09.900947353Z level=info msg="Executing migration" id="teams permissions migration"
logger=migrator t=2022-12-01T12:17:09.924787234Z level=info msg="Executing migration" id="dashboard permissions"
logger=migrator t=2022-12-01T12:17:09.949805146Z level=info msg="Executing migration" id="dashboard permissions uid scopes"
logger=migrator t=2022-12-01T12:17:09.972512897Z level=info msg="Executing migration" id="drop managed folder create actions"
logger=migrator t=2022-12-01T12:17:09.993858353Z level=info msg="Executing migration" id="alerting notification permissions"
logger=migrator t=2022-12-01T12:17:10.018108903Z level=info msg="Executing migration" id="create query_history_star table v1"
logger=migrator t=2022-12-01T12:17:10.044831989Z level=info msg="Executing migration" id="add index query_history.user_id-query_uid"
logger=migrator t=2022-12-01T12:17:10.071087074Z level=info msg="Executing migration" id="add column org_id in query_history_star"
logger=migrator t=2022-12-01T12:17:10.101777076Z level=info msg="Executing migration" id="alter table query_history_star_mig column user_id type to bigint"
logger=migrator t=2022-12-01T12:17:10.125318282Z level=info msg="Executing migration" id="create correlation table v1"
logger=migrator t=2022-12-01T12:17:10.179422068Z level=info msg="Executing migration" id="add index correlations.uid"
logger=migrator t=2022-12-01T12:17:10.204877565Z level=info msg="Executing migration" id="add index correlations.source_uid"
logger=migrator t=2022-12-01T12:17:10.234472117Z level=info msg="Executing migration" id="add correlation config column"
logger=migrator t=2022-12-01T12:17:10.272238498Z level=info msg="Executing migration" id="create entity_events table"
logger=migrator t=2022-12-01T12:17:10.300341906Z level=info msg="Executing migration" id="create dashboard public config v1"
logger=migrator t=2022-12-01T12:17:10.332250368Z level=info msg="Executing migration" id="drop index UQE_dashboard_public_config_uid - v1"
logger=migrator t=2022-12-01T12:17:10.333523169Z level=warn msg="Skipping migration: Already executed, but not recorded in migration log" id="drop index UQE_dashboard_public_config_uid - v1"
logger=migrator t=2022-12-01T12:17:10.361100085Z level=info msg="Executing migration" id="drop index IDX_dashboard_public_config_org_id_dashboard_uid - v1"
logger=migrator t=2022-12-01T12:17:10.362104041Z level=warn msg="Skipping migration: Already executed, but not recorded in migration log" id="drop index IDX_dashboard_public_config_org_id_dashboard_uid - v1"
logger=migrator t=2022-12-01T12:17:10.383526815Z level=info msg="Executing migration" id="Drop old dashboard public config table"
logger=migrator t=2022-12-01T12:17:10.412684107Z level=info msg="Executing migration" id="recreate dashboard public config v1"
logger=migrator t=2022-12-01T12:17:10.453143628Z level=info msg="Executing migration" id="create index UQE_dashboard_public_config_uid - v1"
logger=migrator t=2022-12-01T12:17:10.48382553Z level=info msg="Executing migration" id="create index IDX_dashboard_public_config_org_id_dashboard_uid - v1"
logger=migrator t=2022-12-01T12:17:10.509984708Z level=info msg="Executing migration" id="drop index UQE_dashboard_public_config_uid - v2"
logger=migrator t=2022-12-01T12:17:10.53608993Z level=info msg="Executing migration" id="drop index IDX_dashboard_public_config_org_id_dashboard_uid - v2"
logger=migrator t=2022-12-01T12:17:10.566928932Z level=info msg="Executing migration" id="Drop public config table"
logger=migrator t=2022-12-01T12:17:10.595758761Z level=info msg="Executing migration" id="Recreate dashboard public config v2"
logger=migrator t=2022-12-01T12:17:10.628301849Z level=info msg="Executing migration" id="create index UQE_dashboard_public_config_uid - v2"
logger=migrator t=2022-12-01T12:17:10.656419658Z level=info msg="Executing migration" id="create index IDX_dashboard_public_config_org_id_dashboard_uid - v2"
logger=migrator t=2022-12-01T12:17:10.684985641Z level=info msg="Executing migration" id="create index UQE_dashboard_public_config_access_token - v2"
logger=migrator t=2022-12-01T12:17:10.711274505Z level=info msg="Executing migration" id="Rename table dashboard_public_config to dashboard_public - v2"
logger=migrator t=2022-12-01T12:17:10.760085355Z level=info msg="Executing migration" id="add annotations_enabled column"
logger=migrator t=2022-12-01T12:17:10.79050296Z level=info msg="Executing migration" id="create default alerting folders"
logger=migrator t=2022-12-01T12:17:10.81352675Z level=info msg="Executing migration" id="create file table"
logger=migrator t=2022-12-01T12:17:10.842699856Z level=info msg="Executing migration" id="file table idx: path natural pk"
logger=migrator t=2022-12-01T12:17:10.872359351Z level=info msg="Executing migration" id="file table idx: parent_folder_path_hash fast folder retrieval"
logger=migrator t=2022-12-01T12:17:10.89794767Z level=info msg="Executing migration" id="create file_meta table"
logger=migrator t=2022-12-01T12:17:10.923942748Z level=info msg="Executing migration" id="file table idx: path key"
logger=migrator t=2022-12-01T12:17:10.953908779Z level=info msg="Executing migration" id="set path collation in file table"
logger=migrator t=2022-12-01T12:17:10.974846453Z level=info msg="Executing migration" id="managed permissions migration"
logger=migrator t=2022-12-01T12:17:10.997104394Z level=info msg="Executing migration" id="managed folder permissions alert actions migration"
logger=migrator t=2022-12-01T12:17:11.018907749Z level=info msg="Executing migration" id="RBAC action name migrator"
logger=migrator t=2022-12-01T12:17:11.042062123Z level=info msg="Executing migration" id="Add UID column to playlist"
logger=migrator t=2022-12-01T12:17:11.075467855Z level=info msg="Executing migration" id="Update uid column values in playlist"
logger=migrator t=2022-12-01T12:17:11.099932535Z level=info msg="Executing migration" id="Add index for uid in playlist"
logger=migrator t=2022-12-01T12:17:11.162110079Z level=info msg="Executing migration" id="update group index for alert rules"
logger=migrator t=2022-12-01T12:17:11.186671766Z level=info msg="Executing migration" id="managed folder permissions alert actions repeated migration"
logger=migrator t=2022-12-01T12:17:11.209679767Z level=info msg="Executing migration" id="admin only folder/dashboard permission"
logger=migrator t=2022-12-01T12:17:11.231781334Z level=info msg="Executing migration" id="add action column to seed_assignment"
logger=migrator t=2022-12-01T12:17:11.26414492Z level=info msg="Executing migration" id="add scope column to seed_assignment"
logger=migrator t=2022-12-01T12:17:11.297864977Z level=info msg="Executing migration" id="remove unique index builtin_role_role_name before nullable update"
logger=migrator t=2022-12-01T12:17:11.323771934Z level=info msg="Executing migration" id="update seed_assignment role_name column to nullable"
logger=migrator t=2022-12-01T12:17:11.457156092Z level=info msg="Executing migration" id="add unique index builtin_role_name back"
logger=migrator t=2022-12-01T12:17:11.486229603Z level=info msg="Executing migration" id="add unique index builtin_role_action_scope"
logger=migrator t=2022-12-01T12:17:11.51803407Z level=info msg="Executing migration" id="add primary key to seed_assigment"
logger=migrator t=2022-12-01T12:17:11.595436254Z level=info msg="Executing migration" id="managed folder permissions alert actions repeated fixed migration"
logger=migrator t=2022-12-01T12:17:11.625388673Z level=info msg="Executing migration" id="migrate external alertmanagers to datsourcse"
logger=migrator t=2022-12-01T12:17:11.653923641Z level=info msg="migrations completed" performed=468 skipped=0 duration=13.22472794s
logger=sqlstore t=2022-12-01T12:17:11.824982959Z level=info msg="Created default admin" user=admin
logger=sqlstore t=2022-12-01T12:17:11.825876456Z level=info msg="Created default organization"
logger=plugin.loader t=2022-12-01T12:17:12.354225949Z level=info msg="Plugin registered" pluginID=input
logger=secrets t=2022-12-01T12:17:12.356451289Z level=info msg="Envelope encryption state" enabled=true currentprovider=secretKey.v1
logger=query_data t=2022-12-01T12:17:12.370027549Z level=info msg="Query Service initialization"
logger=live.push_http t=2022-12-01T12:17:12.393720192Z level=info msg="Live Push Gateway initialization"
logger=infra.usagestats.collector t=2022-12-01T12:17:14.057403731Z level=info msg="registering usage stat providers" usageStatsProvidersLen=2
logger=provisioning.alerting t=2022-12-01T12:17:14.059030611Z level=info msg="starting to provision alerting"
logger=provisioning.alerting t=2022-12-01T12:17:14.059155959Z level=info msg="finished to provision alerting"
logger=grafanaStorageLogger t=2022-12-01T12:17:14.068078634Z level=info msg="storage starting"
logger=ngalert.state.manager t=2022-12-01T12:17:14.075444348Z level=info msg="Warming state cache for startup"
logger=http.server t=2022-12-01T12:17:14.118384679Z level=info msg="HTTP Server Listen" address=[::]:3000 protocol=http subUrl= socket=
logger=serviceaccounts.background t=2022-12-01T12:17:14.301524326Z level=warn msg="secret scan interval is too low, increasing to 5m0s"
logger=ngalert.state.manager t=2022-12-01T12:17:14.31048818Z level=info msg="State cache has been initialized" states=0 duration=235.017055ms
logger=ticker t=2022-12-01T12:17:14.311037374Z level=info msg=starting first_tick=2022-12-01T12:17:20Z
logger=ngalert.multiorg.alertmanager t=2022-12-01T12:17:14.311150983Z level=info msg="starting MultiOrg Alertmanager"



 

์œ„์™€ ๊ฐ™์ด Grafana Login ์ฐฝ์ด ๋‚˜์™”์–ด์š”.


์ตœ์ดˆ ์ดˆ๊ธฐ ๊ณ„์ •์€ admin // admin์ด์—์š”.



Login์ด ์™„๋ฃŒ๋˜์—ˆ์œผ๋ฉด Data Source ์ถ”๊ฐ€๋ฅผ ์œ„ํ•ด DATA SOURCE๋ฅผ ํด๋ฆญํ•˜์—ฌ ์ค„๊ฒŒ์š”.



์œ„์—์„œ ๊ตฌ์„ฑํ•œ ํ”„๋กœ๋ฉ”ํ…Œ์šฐ์Šค์—์„œ ์ˆ˜์ง‘ํ•œ Matric์„ ์‹œ๊ฐํ™”ํ•˜๊ธฐ ์œ„ํ•ด Prometheus๋ฅผ ์„ ํƒํ•˜์—ฌ ์ค๋‹ˆ๋‹ค.




์œ„์™€ ๊ฐ™์ด ํ”„๋กœ๋ฉ”ํ…Œ์šฐ์Šค ์ •๋ณด๋ฅผ ์ž‘์„ฑํ•ด ์ฃผ์—ˆ์–ด์š”.


 

Save & Test๋ฅผ ๋ˆŒ๋ €์„ ๋•Œ, ์œ„์™€ ๊ฐ™์ด ๋‚˜์˜จ๋‹ค๋ฉด ์ •์ƒ์ ์œผ๋กœ ์ธ์‹์ด ๋œ ๊ฒƒ์ด์—์š”.

 

 


ํ•˜์ง€๋งŒ, ์œ„์™€ ๊ฐ™์ด ๊ฒฝ๊ณ ๊ฐ€ ๋‚˜์˜จ๋‹ค๋ฉด ํ”„๋กœ๋ฉ”ํ…Œ์šฐ์Šค IP๋‚˜, Port๋ฅผ ์ž˜๋ชป ์ž…๋ ฅํ–ˆ์„ ์ˆ˜๋„ ์žˆ์–ด์š”.

 

Dash Board ์ƒ์„ฑ

 


์ด๋ฒˆ์—” Dash Board ์ƒ์„ฑ์„ ์œ„ํ•ด ์œ„์™€ ๊ฐ™์ด Import๋กœ ์ด๋™ํ•ด ์ฃผ์„ธ์š”.


https://grafana.com/grafana/dashboards/4701


์œ„์™€ ๊ฐ™์ด URL์„ ์ž…๋ ฅํ•˜๊ณ , Load๋ฅผ ๋ˆŒ๋Ÿฌ์ฃผ์—ˆ์–ด์š”.



์œ„์™€ ๊ฐ™์ด ์ด๋ฆ„์„ ์ง€์ •ํ•ด์ฃผ๊ณ , Prometheus๋ž€์—์„œ Prometheus ์„ค์ •๊ฐ’์„ ์ฐพ์•„ ์„ ํƒํ•ด ์ค๋‹ˆ๋‹ค.
๊ทธ๋ฆฌ๊ณ , import๋ฅผ ๋ˆŒ๋Ÿฌ์ฃผ์—ˆ์–ด์š”.



์ •์ƒ์ ์œผ๋กœ ์„ค์ •์ด ์™„๋ฃŒ๋˜์—ˆ๋‹ค๋ฉด ์œ„์™€ ๊ฐ™์ด ์—ฐ๋™๋œ Server ์ž์› ์ •๋ณด๋ฅผ ๋ชจ๋‹ˆํ„ฐ๋งํ•  ์ˆ˜ ์žˆ์–ด์š”.

 


ํ•˜์ง€๋งŒ, ์œ„์™€ ๊ฐ™์ด ๋‚˜์˜จ๋‹ค๋ฉด ํ”„๋กœ๋ฉ”ํ…Œ์šฐ์Šค์™€์˜ ์—ฐ๋™์ด ๋ฌธ์ œ๊ฐ€ ๋ฐœ์ƒํ•œ ๊ฒƒ์ด์—์š”.


 

 

Add Panel




Add a new panel





์ƒˆ๋กœ์šด Panel์„ ํ•œ๋ฒˆ ๋งŒ๋“ค์–ด ๋ณด๋ ค๊ณ  ํ•ด์š”.

์œ„์™€ ๊ฐ™์ด http_server_request_seconds_max๋ฅผ ๊ฒ€์ƒ‰ํ•ด ๋ณด์•˜์–ด์š”.



์œ„์™€ ๊ฐ™์ด Run queries๋ฅผ ๋ˆ„๋ฅด๋ฉด ์œ„์— ๊ทธ๋ž˜ํ”„๊ฐ€ ๋œจ๋Š” ๊ฒƒ์„ ๋ณผ ์ˆ˜ ์žˆ์–ด์š”.




์šฐ์ธก ์ƒ๋‹จ 'Apply'


๊ทธ๋ฆฌ๊ณ , Apply๋ฅผ ๋ˆŒ๋Ÿฌ ๋“ฑ๋กํ•ด ์ฃผ์—ˆ์–ด์š”.




์œ„์™€ ๊ฐ™์ด ์šฐ๋ฆฌ๊ฐ€ ๋ณด๊ณ ์ž ํ•˜๋Š” ๊ทธ๋ž˜ํ”„๋ฅผ ์ถ”๊ฐ€ํ•˜์—ฌ ๋“ฑ๋กํ•  ์ˆ˜ ์žˆ์—ˆ์–ด์š”.





 

 

GitHub - JunyHarang-Open-Source-project/monitoring-test: [Infra][Spring Boot] ํ”„๋กœ๋ฉ”ํ…Œ์šฐ์Šค, ๊ทธ๋ผํŒŒ๋‚˜๋ฅผ ์ด์šฉํ•œ ๋ชจ

[Infra][Spring Boot] ํ”„๋กœ๋ฉ”ํ…Œ์šฐ์Šค, ๊ทธ๋ผํŒŒ๋‚˜๋ฅผ ์ด์šฉํ•œ ๋ชจ๋‹ˆํ„ฐ๋ง. Contribute to JunyHarang-Open-Source-project/monitoring-test development by creating an account on GitHub.

github.com

 







๐Ÿง ์ฐธ๊ณ  ์ž๋ฃŒ

 

ํ”„๋กœ๋ฉ”ํ…Œ์šฐ์Šค, ๊ทธ๋ผํŒŒ๋‚˜๋ฅผ ์ด์šฉํ•œ ์Šคํ”„๋ง๋ถ€ํŠธ ๋ชจ๋‹ˆํ„ฐ๋ง

Cover Photo by Tobias Tullius on Unsplash 0. ์†Œ๊ฐœ ์Šคํ”„๋ง๋ถ€ํŠธ ์›น ์• ํ”Œ๋ฆฌ์ผ€์ด์…˜์„ ๋ฐฐํฌํ•˜์—ฌ ๊ฒฝ์šฐ ์ž˜ ๋™์ž‘ํ•˜๋Š”์ง€ ๋ชจ๋‹ˆํ„ฐ๋ง์„ ํ†ตํ•˜์—ฌ ์• ํ”Œ๋ฆฌ์ผ€์ด์…˜์˜ ์ƒํƒœ๋ฅผ ํ™•์ธํ•ด์•ผํ•ฉ๋‹ˆ๋‹ค. ๋ชจ๋‹ˆํ„ฐ๋ง์„ ํ†ตํ•˜์—ฌ ๋ฌธ์ œ๊ฐ€ ๋ฐœ

covenant.tistory.com

 

 

Spring Boot + Prometheus + Grafana๋ฅผ ์ด์šฉํ•œ ๋ชจ๋‹ˆํ„ฐ๋ง(1/3)

ํ”„๋กœ์ ํŠธ ์ค‘ ๋ชจ๋‹ˆํ„ฐ๋ง ์‹œ์Šคํ…œ์„ ๊ตฌํ˜„ํ•ด๋ณด๋ ค๊ณ  ํ•œ๋‹ค. Prometheus + Grafana๋ฅผ ์ด์šฉํ•ด Spring Boot ์• ํ”Œ๋ฆฌ์ผ€์ด์…˜์„ ๋ชจ๋‹ˆํ„ฐ๋ง ํ•ด ๋ณผ ๊ฒƒ์ด๋‹ค. ๋ชจ๋‹ˆํ„ฐ๋ง ์‹œ์Šคํ…œ์€ ๋„ˆ๋ฌด๋งŽ์€ ์ข…๋ฅ˜๊ฐ€ ์žˆ์–ด์„œ ๋ณธ์ธ์ด ์‚ฌ์šฉํ•˜๊ณ  ์‹ถ

devbksheen.tistory.com

 

 

Spring Boot Actuator | Baeldung

A quick intro to Spring Boot Actuators - using and extending the existing ones, configuration and rolling your own.

www.baeldung.com

 

 

๋ฐฑ๊ฒฌ๋ถˆ์—ฌ์ผํƒ€ ์Šคํ”„๋ง ๋ถ€ํŠธ ์‡ผํ•‘๋ชฐ ํ”„๋กœ์ ํŠธ with JPA:์ด์   ํ”„๋กœ์ ํŠธ๋‹ค!

COUPANG

www.coupang.com

 

 

React.js ์Šคํ”„๋ง ๋ถ€ํŠธ AWS๋กœ ๋ฐฐ์šฐ๋Š” ์›น ๊ฐœ๋ฐœ 101:SPA REST API ๊ธฐ๋ฐ˜ ์›น ์• ํ”Œ๋ฆฌ์ผ€์ด์…˜ ๊ฐœ๋ฐœ

COUPANG

www.coupang.com

 

 

์Šคํƒ€ํŠธ ์Šคํ”„๋ง ๋ถ€ํŠธ:์ดˆ๊ธ‰ ๊ฐœ๋ฐœ์ž๋“ค์„ ์œ„ํ•œ ๊ฐ€๋ณ๊ณ  ๋„“์€ ์Šคํ”„๋ง ๋ถ€ํŠธ

COUPANG

www.coupang.com

"์ด ํฌ์ŠคํŒ…์€ ์ฟ ํŒก ํŒŒํŠธ๋„ˆ์Šค ํ™œ๋™์˜ ์ผํ™˜์œผ๋กœ, ์ด์— ๋”ฐ๋ฅธ ์ผ์ •์•ก์˜ ์ˆ˜์ˆ˜๋ฃŒ๋ฅผ ์ œ๊ณต๋ฐ›์Šต๋‹ˆ๋‹ค."

 

 

 

 

 

 

 

728x90
๋ฐ˜์‘ํ˜•