Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions conf/docker/conf/mc-observability/manager/.env
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,14 @@ DISCORD_AVATAR_URL=
#TEAMS_WEBHOOK_BASEURL=
##########################################################################

########## AGENT ENDPOINTS ##########
# Optional overrides for the hosts VM agents reach back to. Normally leave these unset: the
# manager auto-derives the host from the InfluxDB endpoint each VM already uses (same host as
# Loki/Tempo, already VM-reachable). Set them only when Loki/Tempo is NOT co-located with
# InfluxDB. Loki listens on port 3100; Tempo OTLP on 4317.
#LOKI_AGENT_HOST=
#BEYLA_AGENT_HOST=

########## FEIGN ##########
#TUMBLEBUG_URL=http://mc-infra-manager:1323
#TUMBLEBUG_ID=default
Expand Down
23 changes: 20 additions & 3 deletions conf/docker/conf/mc-observability/mariadb/maria_init.sql
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ USE mc_observability;
CREATE TABLE `mc_o11y_insight_anomaly_setting` (
`SEQ` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`NAMESPACE_ID` varchar(100) NOT NULL,
`MCI_ID` varchar(100) NOT NULL,
`VM_ID` varchar(100) DEFAULT NULL,
`INFRA_ID` varchar(100) NOT NULL,
`NODE_ID` varchar(100) DEFAULT NULL,
`MEASUREMENT` varchar(100) NOT NULL,
`EXECUTION_INTERVAL` varchar(100) NOT NULL,
`LAST_EXECUTION` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
Expand All @@ -24,7 +24,8 @@ CREATE TABLE `mc_o11y_insight_anomaly_setting` (
CREATE TABLE `mc_o11y_insight_llm_api_key` (
`SEQ` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`PROVIDER` varchar(20) NOT NULL,
`API_KEY` text NOT NULL,
`API_KEY` text DEFAULT NULL,
`BASE_URL` text DEFAULT NULL,
PRIMARY KEY (`SEQ`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8mb4;

Expand All @@ -37,3 +38,19 @@ CREATE TABLE `mc_o11y_insight_chat_session` (
`REGDATE` timestamp NOT NULL DEFAULT current_timestamp(),
PRIMARY KEY (`SEQ`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8mb4;

CREATE TABLE `mc_o11y_insight_server_error_analysis` (
`ID` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`TRACE_ID` varchar(64) DEFAULT NULL COMMENT '대표 trace_id, NULL이면 unique dedup 미적용',
`SESSION_ID` varchar(100) NOT NULL COMMENT '연결된 채팅 세션 ID',
`STATUS` varchar(20) NOT NULL DEFAULT 'PENDING' COMMENT 'PENDING, RUNNING, SUCCEEDED, FAILED, PARTIAL',
`SUMMARY` text DEFAULT NULL COMMENT '목록/상세 화면에 표시할 최종 요약',
`DETAIL_JSON` json DEFAULT NULL COMMENT '위험도, 근거 요약, trace/log 요약, 추천 조치, 오류 정보',
`CREATED_AT` timestamp NOT NULL DEFAULT current_timestamp(),
`UPDATED_AT` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
PRIMARY KEY (`ID`),
UNIQUE KEY `uk_server_error_trace_id` (`TRACE_ID`),
KEY `idx_server_error_session_id` (`SESSION_ID`),
KEY `idx_server_error_status` (`STATUS`),
KEY `idx_server_error_updated_at` (`UPDATED_AT`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8mb4;