{"id":2622,"date":"2026-10-17T12:49:24","date_gmt":"2026-10-17T12:49:24","guid":{"rendered":"https:\/\/wayhope.kro.kr\/?p=2622"},"modified":"2026-10-21T12:55:29","modified_gmt":"2026-10-21T12:55:29","slug":"%eb%a1%9c%ea%b7%b8-%ec%8b%9c%ec%8a%a4%ed%85%9c-%ea%b5%ac%ec%b6%95%ed%95%98%ea%b8%b0-pino-grafana-alloy-loki-grafana-node-js","status":"publish","type":"post","link":"https:\/\/wayhope.kro.kr\/?p=2622","title":{"rendered":"\ub85c\uadf8 \uc2dc\uc2a4\ud15c \uad6c\ucd95\ud558\uae30 \u2014 Pino, Grafana Alloy, Loki, Grafana #Node.js"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">\uac8c\uc784 \uc11c\ubc84\ub97c \uc6b4\uc601\ud560 \ub54c \ub85c\uadf8\ub294 \ub2e8\uc21c\ud788 \ucf58\uc194\uc5d0 \ucd9c\ub825\ud558\ub294 \ub514\ubc84\uae45 \uc815\ubcf4\uac00 \uc544\ub2c8\ub2e4. \uc11c\ubc84 \uc624\ub958\ub97c \ucd94\uc801\ud558\uace0, \uc720\uc800 \uc811\uc18d \ubb38\uc81c\ub97c \ubd84\uc11d\ud558\uace0, \uc5ec\ub7ec \uc11c\ubc84\uc5d0\uc11c \ubc1c\uc0dd\ud55c \ubb38\uc81c\ub97c \ud1b5\ud569\uc801\uc73c\ub85c \uc870\uc0ac\ud558\uae30 \uc704\ud55c \uc6b4\uc601 \ub370\uc774\ud130\ub2e4.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Node.js \uac8c\uc784 \uc11c\ubc84\uc5d0\uc11c Pino\ub85c \ub85c\uadf8\ub97c \uc0dd\uc131\ud558\uace0, Grafana Alloy\ub85c \uc218\uc9d1\ud55c \ub4a4, Loki\uc5d0 \uc800\uc7a5\ud558\uace0 Grafana\uc5d0\uc11c \uac80\uc0c9\ud558\ub294 \ub85c\uadf8 \uc2dc\uc2a4\ud15c\uc744 \uad6c\ucd95\ud574 \ubcf4\uc790.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\ub85c\uadf8 \uc2dc\uc2a4\ud15c\uc758 \uc804\uccb4 \uad6c\uc870<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\uac01 \uad6c\uc131 \uc694\uc18c\ub294 \uba85\ud655\ud558\uac8c \uc5ed\ud560\uc774 \ubd84\ub9ac\ub418\uc5b4 \uc788\ub2e4.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Pino<\/strong>: Node.js \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc758 \ub85c\uadf8 \uc0dd\uc131<\/li>\n\n\n\n<li><strong>stdout \/ stderr<\/strong>: \ub85c\uadf8\uac00 \ucd9c\ub825\ub418\ub294 \ud45c\uc900 \ucd9c\ub825 \ubc0f \ud45c\uc900 \uc5d0\ub7ec \uc2a4\ud2b8\ub9bc<\/li>\n\n\n\n<li><strong>Docker<\/strong>: \ucee8\ud14c\uc774\ub108\uc758 \ucd9c\ub825 \ub85c\uadf8 \uc218\uc9d1<\/li>\n\n\n\n<li><strong>Grafana Alloy<\/strong>: \ub85c\uadf8 \uc218\uc9d1 \ubc0f \uc804\uc1a1<\/li>\n\n\n\n<li><strong>Grafana Loki<\/strong>: \ub85c\uadf8 \uc800\uc7a5 \ubc0f \uac80\uc0c9<\/li>\n\n\n\n<li><strong>Grafana<\/strong>: \ub85c\uadf8 \uc870\ud68c \ubc0f \ubaa8\ub2c8\ud130\ub9c1 UI<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">\uc804\uccb4 \ub370\uc774\ud130 \ud750\ub984\uc740 \ub2e4\uc74c\uacfc \uac19\ub2e4.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Node.js Game Server\n        |\n        v\n      Pino\n        |\n        v\n stdout \/ stderr\n        |\n        v\n Docker Container Logs\n        |\n        v\n Grafana Alloy\n        |\n        v\n      Loki\n        |\n        v\n     Grafana UI<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\ud575\uc2ec\uc740 \uac8c\uc784 \uc11c\ubc84\uac00 Loki\uc5d0 \uc9c1\uc811 \ub85c\uadf8\ub97c \uc804\uc1a1\ud558\ub294 \uac83\uc774 \uc544\ub2c8\ub77c, \ub85c\uadf8 \uc0dd\uc131\uacfc \uc218\uc9d1 \ubc0f \uc800\uc7a5\uc744 \ubd84\ub9ac\ud55c\ub2e4\ub294 \uc810\uc774\ub2e4.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Pino \u2014 \uad6c\uc870\ud654\ub41c \ub85c\uadf8 \uc0dd\uc131<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Pino\ub294 Node.js \ud658\uacbd\uc5d0\uc11c \uc0ac\uc6a9\ud558\ub294 \uace0\uc131\ub2a5 \ub85c\uae45 \ub77c\uc774\ube0c\ub7ec\ub9ac\ub2e4.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><code>console.log()<\/code>\ub85c \ubb38\uc790\uc5f4\ub9cc \ucd9c\ub825\ud560 \uc218\ub3c4 \uc788\uc9c0\ub9cc, \uc11c\ubc84 \uc6b4\uc601\uc5d0\uc11c\ub294 \ub85c\uadf8 \ub808\ubca8\uacfc \ud544\ub4dc\uac00 \uad6c\uc870\ud654\ub41c \ub85c\uadf8\uac00 \uc720\ub9ac\ud558\ub2e4.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\uc124\uce58<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>npm install pino<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">ES Modules\ub97c \uc0ac\uc6a9\ud55c\ub2e4\uba74 <code>package.json<\/code>\uc5d0 \ub2e4\uc74c \uc124\uc815\uc744 \ucd94\uac00\ud55c\ub2e4.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>{\n  \"type\": \"module\"\n}<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">\ub85c\uac70 \uad6c\ud604<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\"><code>src\/logger.js<\/code><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>import pino from 'pino';\n\nexport const logger = pino({\n  name: 'game-server',\n  level: process.env.LOG_LEVEL || 'info',\n});<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\uc774\uc81c \uc560\ud50c\ub9ac\ucf00\uc774\uc158 \uc5b4\ub514\uc5d0\uc11c\ub4e0 \uacf5\ud1b5 \ub85c\uac70\ub97c \uc0ac\uc6a9\ud560 \uc218 \uc788\ub2e4.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\uac8c\uc784 \uc11c\ubc84\uc5d0\uc11c \ub85c\uadf8 \uae30\ub85d<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\"><code>src\/server.js<\/code><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>import express from 'express';\nimport { logger } from '.\/logger.js';\n\nconst app = express();\n\napp.get('\/health', (req, res) =&gt; {\n  logger.info({\n    event: 'health_check',\n    method: req.method,\n    path: req.path,\n  }, 'Health check requested');\n\n  res.json({ status: 'ok' });\n});\n\napp.get('\/test-error', (req, res) =&gt; {\n  logger.error({\n    event: 'test_error',\n    userId: 'user-123',\n  }, 'Test error occurred');\n\n  res.status(500).json({ error: 'Test error' });\n});\n\napp.listen(3000, () =&gt; {\n  logger.info({ port: 3000 }, 'Game server started');\n});<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Pino\ub294 \uae30\ubcf8\uc801\uc73c\ub85c JSON \ud615\uc2dd\uc758 \ub85c\uadf8\ub97c \ud45c\uc900 \ucd9c\ub825\uc73c\ub85c \uae30\ub85d\ud55c\ub2e4.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\ucd9c\ub825 \uc608\uc2dc\ub294 \ub2e4\uc74c\uacfc \uac19\ub2e4.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>{\n  \"level\": 30,\n  \"time\": 1792580000000,\n  \"pid\": 1,\n  \"hostname\": \"game-server\",\n  \"name\": \"game-server\",\n  \"event\": \"health_check\",\n  \"method\": \"GET\",\n  \"path\": \"\/health\",\n  \"msg\": \"Health check requested\"\n}<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\uc774\ub7ec\ud55c \uad6c\uc870\ud654 \ub85c\uadf8\ub294 \ud2b9\uc815 \uc774\ubca4\ud2b8, \uc720\uc800, \ub9e4\uce58 \ub4f1\uc744 \uae30\uc900\uc73c\ub85c \uac80\uc0c9\ud558\uae30 \uc27d\ub2e4.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Docker \u2014 \ucf58\uc194 \ub85c\uadf8 \uc218\uc9d1<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Docker\ub85c \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc744 \uc2e4\ud589\ud558\uba74 \ucee8\ud14c\uc774\ub108\uc758 \ud45c\uc900 \ucd9c\ub825\uacfc \ud45c\uc900 \uc5d0\ub7ec\uc5d0 \uae30\ub85d\ub41c \ub85c\uadf8\ub97c Docker \ub85c\uae45 \uc2dc\uc2a4\ud15c\uc774 \uc218\uc9d1\ud560 \uc218 \uc788\ub2e4.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><code>Dockerfile<\/code><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>FROM node:22-alpine\n\nWORKDIR \/app\n\nCOPY package*.json .\/\nRUN npm ci --omit=dev\n\nCOPY src .\/src\n\nEXPOSE 3000\n\nCMD &#91;\"node\", \"src\/server.js\"]<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\ucee8\ud14c\uc774\ub108\ub97c \uc2e4\ud589\ud558\uba74 Pino\uc758 \ub85c\uadf8\ub97c \ub2e4\uc74c \uba85\ub839\uc73c\ub85c \ud655\uc778\ud560 \uc218 \uc788\ub2e4.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>docker logs game-server<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\uc5ec\uae30\uc11c \uc911\uc694\ud55c \uc810\uc740 Alloy\uac00 \uc2e4\uc81c \ud130\ubbf8\ub110 \ud654\uba74\uc744 \ucea1\ucc98\ud558\ub294 \uac83\uc774 \uc544\ub2c8\ub77c Docker\uac00 \uad00\ub9ac\ud558\ub294 \ucee8\ud14c\uc774\ub108 \ub85c\uadf8\ub97c \uc218\uc9d1\ud55c\ub2e4\ub294 \uac83\uc774\ub2e4.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><code>console.log()<\/code>\uc640 <code>console.error()<\/code>\ub85c \ucd9c\ub825\ud55c \ub85c\uadf8 \uc5ed\uc2dc \ud574\ub2f9 \ucd9c\ub825 \uc2a4\ud2b8\ub9bc\uc5d0 \uae30\ub85d\ub418\ubbc0\ub85c \uc218\uc9d1 \ub300\uc0c1\uc774 \ub420 \uc218 \uc788\ub2e4.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Grafana Alloy \u2014 \ub85c\uadf8 \uc218\uc9d1 \ubc0f \uc804\uc1a1<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Alloy\ub294 \ub85c\uadf8, \uba54\ud2b8\ub9ad, \ud2b8\ub808\uc774\uc2a4 \ub4f1\uc744 \uc218\uc9d1\ud558\uace0 \uc804\ub2ec\ud558\ub294 \uad00\uce21 \ub370\uc774\ud130 \uc218\uc9d1\uae30\ub2e4.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\uc774\ubc88 \uad6c\uc131\uc5d0\uc11c\ub294 Docker \ucee8\ud14c\uc774\ub108 \ub85c\uadf8\ub97c \uc77d\uc5b4 Loki\ub85c \uc804\ub2ec\ud55c\ub2e4.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\uc124\uc815 \ud30c\uc77c \uc791\uc131<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\"><code>monitoring\/config.alloy<\/code><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>discovery.docker \"containers\" {\n  host = \"unix:\/\/\/var\/run\/docker.sock\"\n}\n\nloki.source.docker \"game_logs\" {\n  host    = \"unix:\/\/\/var\/run\/docker.sock\"\n  targets = discovery.docker.containers.targets\n\n  labels = {\n    job = \"game-server\"\n  }\n\n  forward_to = &#91;loki.write.local.receiver]\n}\n\nloki.write \"local\" {\n  endpoint {\n    url = \"http:\/\/loki:3100\/loki\/api\/v1\/push\"\n  }\n}<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\uac01 \ucef4\ud3ec\ub10c\ud2b8\uc758 \uc5ed\ud560\uc740 \ub2e4\uc74c\uacfc \uac19\ub2e4.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>discovery.docker<\/code>: Docker \ucee8\ud14c\uc774\ub108\ub97c \uac80\uc0c9\ud55c\ub2e4.<\/li>\n\n\n\n<li><code>loki.source.docker<\/code>: \ucee8\ud14c\uc774\ub108 \ub85c\uadf8\ub97c \uc77d\ub294\ub2e4.<\/li>\n\n\n\n<li><code>labels<\/code>: \uc218\uc9d1\ud55c \ub85c\uadf8\uc5d0 \uac80\uc0c9\uc6a9 \ub77c\ubca8\uc744 \ubd80\uc5ec\ud55c\ub2e4.<\/li>\n\n\n\n<li><code>loki.write<\/code>: \ub85c\uadf8\ub97c Loki\uc758 HTTP API\ub85c \uc804\uc1a1\ud55c\ub2e4.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><code>http:\/\/loki:3100<\/code>\uc740 Docker Compose \ub0b4\ubd80 \ub124\ud2b8\uc6cc\ud06c\uc5d0\uc11c Loki \uc11c\ube44\uc2a4\uc5d0 \uc811\uadfc\ud558\uae30 \uc704\ud55c \uc8fc\uc18c\ub2e4.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Docker \uc18c\ucf13\uc740 \ucee8\ud14c\uc774\ub108 \uad00\ub9ac \uad8c\ud55c\uacfc \uc5f0\uacb0\ub420 \uc218 \uc788\uc73c\ubbc0\ub85c \uc6b4\uc601 \ud658\uacbd\uc5d0\uc11c\ub294 \uc811\uadfc \uad8c\ud55c\uc744 \uc81c\ud55c\ud574\uc57c \ud55c\ub2e4.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Loki \u2014 \ub85c\uadf8 \uc800\uc7a5 \ubc0f \uac80\uc0c9<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Loki\ub294 \ub85c\uadf8\ub97c \uc218\uc9d1\ud558\uace0 \uc800\uc7a5\ud558\uba70, LogQL\uc744 \uc0ac\uc6a9\ud574 \uac80\uc0c9\ud560 \uc218 \uc788\ub3c4\ub85d \ud558\ub294 \ub85c\uadf8 \uc9d1\uacc4 \uc2dc\uc2a4\ud15c\uc774\ub2e4.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Loki \uc790\uccb4\uac00 \uc560\ud50c\ub9ac\ucf00\uc774\uc158 \ub85c\uadf8\ub97c \uc790\ub3d9\uc73c\ub85c \uac00\uc838\uc624\ub294 \uac83\uc740 \uc544\ub2c8\ub2e4. Alloy \uac19\uc740 \uc218\uc9d1\uae30\uac00 \ub85c\uadf8\ub97c \uc804\ub2ec\ud574\uc57c \ud55c\ub2e4.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\uc608\ub97c \ub4e4\uc5b4 \ub2e4\uc74c\uacfc \uac19\uc740 \ub85c\uadf8\uac00 \uc800\uc7a5\ub418\uc5b4 \uc788\ub2e4\uace0 \uac00\uc815\ud558\uc790.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>{\n  \"event\": \"player_connected\",\n  \"userId\": \"user-123\",\n  \"matchId\": \"match-456\",\n  \"msg\": \"Player connected\"\n}<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Grafana\uc5d0\uc11c Loki\ub97c \ub370\uc774\ud130 \uc18c\uc2a4\ub85c \uc5f0\uacb0\ud558\uba74 LogQL\ub85c \ub85c\uadf8\ub97c \uac80\uc0c9\ud560 \uc218 \uc788\ub2e4.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\uac8c\uc784 \uc11c\ubc84 \ub85c\uadf8 \uc804\uccb4 \uc870\ud68c<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>{job=\"game-server\"}<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">\ud2b9\uc815 \uba54\uc2dc\uc9c0 \uac80\uc0c9<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>{job=\"game-server\"} |= \"Player connected\"<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">JSON \ud544\ub4dc\ub97c \uae30\uc900\uc73c\ub85c \uac80\uc0c9<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>{job=\"game-server\"} | json | event=\"player_connected\"<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">JSON \ud30c\uc2f1 \uacb0\uacfc\uc758 \ud544\ub4dc\uba85\uacfc \ub370\uc774\ud130 \ud615\uc2dd\uc5d0 \ub530\ub77c \ucffc\ub9ac\ub97c \uc870\uc815\ud558\uba74 \ub41c\ub2e4.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Loki\ub294 \ub85c\uadf8\ub97c \uc800\uc7a5\ud558\uace0 \uac80\uc0c9\ud558\ub294 \ub370 \uc801\ud569\ud558\uc9c0\ub9cc, \ub300\ub7c9\uc758 \uac8c\uc784 \uc774\ubca4\ud2b8\ub97c \uc9d1\uacc4\ud574 \ubcf5\uc7a1\ud55c \uc720\uc800 \ud589\ub3d9 \ud1b5\uacc4\ub97c \ubd84\uc11d\ud558\ub294 \uc804\uc6a9 OLAP \ub370\uc774\ud130\ubca0\uc774\uc2a4\ub97c \ub300\uccb4\ud558\ub294 \uac83\uc740 \uc544\ub2c8\ub2e4.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Docker Compose \u2014 \uc804\uccb4 \uc2dc\uc2a4\ud15c \uc2e4\ud589<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\ub2e4\uc74c \uc124\uc815\uc73c\ub85c \uac8c\uc784 \uc11c\ubc84\uc640 \ub85c\uadf8 \ubaa8\ub2c8\ud130\ub9c1 \uc2dc\uc2a4\ud15c\uc744 \ud568\uaed8 \uc2e4\ud589\ud560 \uc218 \uc788\ub2e4.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><code>docker-compose.yml<\/code><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>services:\n  game-server:\n    build: .\n    container_name: game-server\n    init: true\n    ports:\n      - \"3000:3000\"\n    environment:\n      LOG_LEVEL: info\n    restart: unless-stopped\n\n  loki:\n    image: grafana\/loki:3.6.0\n    command: -config.file=\/etc\/loki\/local-config.yaml\n    volumes:\n      - loki-data:\/loki\n    restart: unless-stopped\n\n  alloy:\n    image: grafana\/alloy:latest\n    command:\n      - run\n      - --server.http.listen-addr=0.0.0.0:12345\n      - \/etc\/alloy\/config.alloy\n    volumes:\n      - .\/monitoring\/config.alloy:\/etc\/alloy\/config.alloy:ro\n      - \/var\/run\/docker.sock:\/var\/run\/docker.sock\n    depends_on:\n      - loki\n    restart: unless-stopped\n\n  grafana:\n    image: grafana\/grafana:latest\n    ports:\n      - \"3001:3000\"\n    volumes:\n      - grafana-data:\/var\/lib\/grafana\n    depends_on:\n      - loki\n    restart: unless-stopped\n\nvolumes:\n  loki-data:\n  grafana-data:<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\uc704 \uc124\uc815\uc740 \ub85c\uceec \ud14c\uc2a4\ud2b8\uc6a9 \uae30\ubcf8 \uc608\uc2dc\ub2e4. \uc2e4\uc81c \ubc30\ud3ec \uc804\uc5d0\ub294 Alloy\uc640 Grafana\uc758 \uc774\ubbf8\uc9c0 \ubc84\uc804\ub3c4 \uac80\uc99d\ud574 \uace0\uc815\ud558\uace0, \uac01 \uc11c\ube44\uc2a4\uc758 \uc800\uc7a5\uc18c \uad8c\ud55c\uacfc \ub124\ud2b8\uc6cc\ud06c \uc811\uadfc \uc815\ucc45\uc744 \ud655\uc778\ud574\uc57c \ud55c\ub2e4.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\uc2e4\ud589<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>docker compose up -d --build<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\uac01 \uc11c\ube44\uc2a4\ub294 \ub2e4\uc74c \uc8fc\uc18c\uc5d0\uc11c \ud655\uc778\ud560 \uc218 \uc788\ub2e4.<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>\uc11c\ube44\uc2a4<\/th><th>\uc8fc\uc18c<\/th><\/tr><\/thead><tbody><tr><td>\uac8c\uc784 \uc11c\ubc84<\/td><td><code>http:\/\/localhost:3000<\/code><\/td><\/tr><tr><td>Grafana<\/td><td><code>http:\/\/localhost:3001<\/code><\/td><\/tr><tr><td>Alloy \uc0c1\ud0dc \ud398\uc774\uc9c0<\/td><td><code>http:\/\/localhost:12345<\/code><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Grafana\uc5d0 \ub85c\uadf8\uc778\ud55c \ud6c4 \ub370\uc774\ud130 \uc18c\uc2a4\ub97c \ucd94\uac00\ud55c\ub2e4.<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Connections \u2192 Data sources\ub85c \uc774\ub3d9\ud55c\ub2e4.<\/li>\n\n\n\n<li>Add data source\ub97c \uc120\ud0dd\ud55c\ub2e4.<\/li>\n\n\n\n<li>Loki\ub97c \uc120\ud0dd\ud55c\ub2e4.<\/li>\n\n\n\n<li>URL\uc5d0 <code>http:\/\/loki:3100<\/code>\uc744 \uc785\ub825\ud55c\ub2e4.<\/li>\n\n\n\n<li>Save &amp; test\ub97c \uc2e4\ud589\ud55c\ub2e4.<\/li>\n\n\n\n<li>Explore \uba54\ub274\uc5d0\uc11c <code>{job=\"game-server\"}<\/code> \ucffc\ub9ac\ub97c \uc2e4\ud589\ud55c\ub2e4.<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">\uc815\uc0c1\uc801\uc73c\ub85c \uad6c\uc131\ub418\uc5c8\ub2e4\uba74 \uac8c\uc784 \uc11c\ubc84\uc5d0\uc11c \ubc1c\uc0dd\ud55c \ub85c\uadf8\ub97c \uc6f9 UI\uc5d0\uc11c \uac80\uc0c9\ud560 \uc218 \uc788\ub2e4.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\uc6b4\uc601 \ud658\uacbd\uc5d0\uc11c \uace0\ub824\ud560 \uc0ac\ud56d<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\ub85c\uadf8 \uc804\uc1a1\uacfc \uac8c\uc784 \ub85c\uc9c1 \ubd84\ub9ac<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\ub85c\uadf8 \uc218\uc9d1 \uc2dc\uc2a4\ud15c\uc758 \uc7a5\uc560\uac00 \uac8c\uc784 \ud50c\ub808\uc774\ub97c \uc911\ub2e8\uc2dc\ud0a4\uc9c0 \uc54a\ub3c4\ub85d \ud574\uc57c \ud55c\ub2e4. \ub85c\uadf8 \uc218\uc9d1\uacfc \uc804\uc1a1\uc744 \ube44\ub3d9\uae30\uc801\uc73c\ub85c \uad6c\uc131\ud558\uace0, \uc7a5\uc560 \uc2dc \ub85c\uadf8\uac00 \uc5b4\ub5bb\uac8c \ucc98\ub9ac\ub418\ub294\uc9c0\ub3c4 \uac80\ud1a0\ud574\uc57c \ud55c\ub2e4.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\ub85c\uadf8 \ubcf4\uad00 \uae30\uac04<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\ub85c\uadf8\uac00 \uacc4\uc18d \ub204\uc801\ub418\uba74 \ub514\uc2a4\ud06c \uc0ac\uc6a9\ub7c9\uc774 \uc99d\uac00\ud55c\ub2e4. Loki\uc758 \ubcf4\uad00 \uc815\ucc45\uacfc \uc800\uc7a5\uc18c \uc6a9\ub7c9\uc744 \uad00\ub9ac\ud574\uc57c \ud55c\ub2e4.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\ubbfc\uac10\ud55c \uc815\ubcf4 \uc81c\uac70<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\ube44\ubc00\ubc88\ud638, \uc778\uc99d \ud1a0\ud070, \uc138\uc158 \ud0a4 \ub4f1 \ubbfc\uac10\ud55c \uc815\ubcf4\ub97c \ub85c\uadf8\uc5d0 \uae30\ub85d\ud558\uc9c0 \uc54a\ub294\ub2e4. IP \uc8fc\uc18c\uc640 \uc720\uc800 \uc2dd\ubcc4 \uc815\ubcf4 \uc5ed\uc2dc \ud544\uc694\ud55c \ubc94\uc704\uc5d0\uc11c\ub9cc \uae30\ub85d\ud55c\ub2e4.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\uc911\uc694\ud55c \uac8c\uc784 \ub370\uc774\ud130\ub294 \ubcc4\ub3c4 \uc800\uc7a5<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\uc7ac\ud654 \ubcc0\uacbd, \uacb0\uc81c, \uac70\ub798\ucc98\ub7fc \uc815\ud569\uc131\uacfc \uac10\uc0ac \ucd94\uc801\uc774 \uc911\uc694\ud55c \ub370\uc774\ud130\ub294 \uc77c\ubc18\uc801\uc778 \uc6b4\uc601 \ub85c\uadf8\ub9cc\uc73c\ub85c \uad00\ub9ac\ud558\uc9c0 \uc54a\ub294\ub2e4. \ud2b8\ub79c\uc7ad\uc158\uacfc \uc601\uc18d\uc131\uc744 \uace0\ub824\ud55c \ubcc4\ub3c4\uc758 \uc800\uc7a5 \uad6c\uc870\uac00 \ud544\uc694\ud558\ub2e4.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\uc815\ub9ac<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Pino, Alloy, Loki, Grafana\ub294 \uc11c\ub85c \ub2e4\ub978 \ucc45\uc784\uc744 \uac00\uc9c4\ub2e4.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Pino\ub294 \uc560\ud50c\ub9ac\ucf00\uc774\uc158 \ub85c\uadf8\ub97c \uc0dd\uc131\ud55c\ub2e4.<\/li>\n\n\n\n<li>Docker\ub294 \ucee8\ud14c\uc774\ub108\uc758 \ucd9c\ub825 \ub85c\uadf8\ub97c \uc218\uc9d1\ud55c\ub2e4.<\/li>\n\n\n\n<li>Alloy\ub294 \ub85c\uadf8\ub97c \uc77d\uace0 Loki\ub85c \uc804\ub2ec\ud55c\ub2e4.<\/li>\n\n\n\n<li>Loki\ub294 \ub85c\uadf8\ub97c \uc800\uc7a5\ud558\uace0 \uac80\uc0c9\ud560 \uc218 \uc788\uac8c \ud55c\ub2e4.<\/li>\n\n\n\n<li>Grafana\ub294 \ub85c\uadf8\ub97c \uc2dc\uac01\uc801\uc73c\ub85c \uc870\ud68c\ud560 \uc218 \uc788\uac8c \ud55c\ub2e4.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">\uc774 \uad6c\uc870\uc758 \ud575\uc2ec\uc740 <strong>\uac8c\uc784 \uc11c\ubc84\uc5d0\uc11c \ub85c\uadf8\ub97c \uc0dd\uc131\ud558\ub294 \uc791\uc5c5\uacfc \ub85c\uadf8\ub97c \uc800\uc7a5\u00b7\uac80\uc0c9\ud558\ub294 \uc791\uc5c5\uc744 \ubd84\ub9ac\ud558\ub294 \uac83<\/strong>\uc774\ub2e4.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\uac1c\ubc1c \ucd08\uae30\uc5d0\ub294 Pino\uc640 \ucf58\uc194 \ub85c\uadf8\ub9cc\uc73c\ub85c \uc2dc\uc791\ud574\ub3c4 \ucda9\ubd84\ud558\ub2e4. \uc11c\ubc84\uac00 \uc5ec\ub7ec \ub300\ub85c \ub298\uc5b4\ub098\uac70\ub098 \uc6b4\uc601 \uc911 \uc7a5\uc560\ub97c \ube60\ub974\uac8c \ucd94\uc801\ud574\uc57c \ud560 \ub54c Alloy, Loki, Grafana\ub97c \ucd94\uac00\ud558\uba74 \ub41c\ub2e4.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\ucc38\uace0 \uc790\ub8cc:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/getpino.io\/\">Pino \uacf5\uc2dd \ubb38\uc11c<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/grafana.com\/docs\/alloy\/latest\/\">Grafana Alloy \uacf5\uc2dd \ubb38\uc11c<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/grafana.com\/docs\/loki\/latest\/\">Loki \uacf5\uc2dd \ubb38\uc11c<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/grafana.com\/docs\/grafana\/latest\/\">Grafana \uacf5\uc2dd \ubb38\uc11c<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>\uac8c\uc784 \uc11c\ubc84\ub97c \uc6b4\uc601\ud560 \ub54c \ub85c\uadf8\ub294 \ub2e8\uc21c\ud788 \ucf58\uc194\uc5d0 \ucd9c\ub825\ud558\ub294 \ub514\ubc84\uae45 \uc815\ubcf4\uac00 \uc544\ub2c8\ub2e4. \uc11c\ubc84 \uc624\ub958\ub97c \ucd94\uc801\ud558\uace0, \uc720\uc800 \uc811\uc18d \ubb38\uc81c\ub97c \ubd84\uc11d\ud558\uace0, \uc5ec\ub7ec \uc11c\ubc84\uc5d0\uc11c \ubc1c\uc0dd\ud55c \ubb38\uc81c\ub97c \ud1b5\ud569\uc801\uc73c\ub85c \uc870\uc0ac\ud558\uae30 \uc704\ud55c \uc6b4\uc601 \ub370\uc774\ud130\ub2e4. Node.js \uac8c\uc784 \uc11c\ubc84\uc5d0\uc11c Pino\ub85c \ub85c\uadf8\ub97c \uc0dd\uc131\ud558\uace0, Grafana Alloy\ub85c \uc218\uc9d1\ud55c \ub4a4, Loki\uc5d0 \uc800\uc7a5\ud558\uace0 Grafana\uc5d0\uc11c \uac80\uc0c9\ud558\ub294 \ub85c\uadf8 \uc2dc\uc2a4\ud15c\uc744 \uad6c\ucd95\ud574 \ubcf4\uc790. \ub85c\uadf8 \uc2dc\uc2a4\ud15c\uc758 \uc804\uccb4 \uad6c\uc870 \uac01 \uad6c\uc131 \uc694\uc18c\ub294 \uba85\ud655\ud558\uac8c \uc5ed\ud560\uc774 \ubd84\ub9ac\ub418\uc5b4 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-2622","post","type-post","status-publish","format-standard","hentry","category-dev-logs"],"_links":{"self":[{"href":"https:\/\/wayhope.kro.kr\/index.php?rest_route=\/wp\/v2\/posts\/2622","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wayhope.kro.kr\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wayhope.kro.kr\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wayhope.kro.kr\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wayhope.kro.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2622"}],"version-history":[{"count":1,"href":"https:\/\/wayhope.kro.kr\/index.php?rest_route=\/wp\/v2\/posts\/2622\/revisions"}],"predecessor-version":[{"id":2623,"href":"https:\/\/wayhope.kro.kr\/index.php?rest_route=\/wp\/v2\/posts\/2622\/revisions\/2623"}],"wp:attachment":[{"href":"https:\/\/wayhope.kro.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2622"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wayhope.kro.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2622"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wayhope.kro.kr\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2622"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}