-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add logs assets * Update README * Fix logs assets * Add test results * Add logs to spec.yaml * Update manifest * Add saved views * Add changelog * Improve message_rule * Add second parsing rule * Replace data with regex in parsing rule 1 * Add quotes to samples * Fix rules in yaml * Add test results for rule2 * Use regex in message_rule * Update parsing rules * Update test results
- Loading branch information
Showing
9 changed files
with
290 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
id: milvus | ||
metric_id: milvus | ||
backend_only: false | ||
facets: null | ||
pipeline: | ||
type: pipeline | ||
name: Milvus | ||
enabled: true | ||
filter: | ||
query: source:milvus | ||
processors: | ||
- type: grok-parser | ||
name: Grok Parser | ||
enabled: true | ||
source: message | ||
samples: | ||
- '[2024/11/27 14:07:51.849 +00:00] [INFO] [datacoord/handler.go:341] | ||
["channel seek position set from channel checkpoint meta"] | ||
[channel=by-dev-rootcoord-dml_2_453764875273209568v0] | ||
[posTs=454221223538458625] [posTime=2024/11/27 14:07:39.421 +00:00]' | ||
- '[2024/11/27 14:07:01.849 +00:00] [INFO] [datacoord/services.go:833] | ||
["datacoord append channelInfo in GetRecoveryInfo"] | ||
[traceID=ed216b196edf0589f281c4ad800f6565] | ||
[collectionID=453764875273209568] [partitionIDs="[]"] | ||
[channel=by-dev-rootcoord-dml_2_453764875273209568v0] ["# of unflushed | ||
segments"=0] ["# of flushed segments"=1] ["# of dropped segments"=0] | ||
["# of indexed segments"=0] ["# of l0 segments"=0]' | ||
- '[2024/11/27 14:06:51.852 +00:00] [INFO] [datacoord/services.go:818] | ||
["get recovery info request received"] | ||
[traceID=54cda8d3229d00982db785351a12ea7a] | ||
[collectionID=453764875273212700] [partitionIDs="[]"]' | ||
- '[2024/11/18 15:15:45.120 +00:00] [INFO] [roles/roles.go:282] [setupPrometheusHTTPServer]' | ||
grok: | ||
supportRules: message_rule | ||
\["?%{regex("[^]^\"]+"):message.body}"?](\s+%{data:message.details:array("[]","] [")})? | ||
matchRules: | | ||
rule1 \[%{date("yyyy/MM/dd HH:mm:ss.SSS ZZ"):date}]\s+\[%{word:level}\]\s+\[%{word:component}/%{regex("[^:]+"):file}:%{integer:lineno}\]\s+%{message_rule} | ||
rule2 %{regex("[IWE]"):level}%{date("yyyyMMdd HH:mm:ss.SSSSSS"):date}\s+%{integer:pid}\s+%{regex("[^:]+"):file}:%{integer:lineno}]\s+%{data:message.details:array("[]","][")}\s+%{data:message.body} | ||
- type: status-remapper | ||
name: Define `level` as the official status of the log | ||
enabled: true | ||
sources: | ||
- level | ||
- type: message-remapper | ||
name: Define `message.body` as the official message of the log | ||
enabled: true | ||
sources: | ||
- message.body | ||
- type: date-remapper | ||
name: Define `date` as the official date of the log | ||
enabled: true | ||
sources: | ||
- date |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,117 @@ | ||
id: milvus | ||
tests: | ||
- | ||
sample: "[2024/11/27 14:07:51.849 +00:00] [INFO] [datacoord/handler.go:341] [\"channel seek position set from channel checkpoint meta\"] [channel=by-dev-rootcoord-dml_2_453764875273209568v0] [posTs=454221223538458625] [posTime=2024/11/27 14:07:39.421 +00:00]" | ||
result: | ||
custom: | ||
component: "datacoord" | ||
date: 1732716471849 | ||
file: "handler.go" | ||
level: "INFO" | ||
lineno: 341 | ||
message: | ||
details: | ||
- "channel=by-dev-rootcoord-dml_2_453764875273209568v0" | ||
- "posTs=454221223538458625" | ||
- "posTime=2024/11/27 14:07:39.421 +00:00" | ||
message: "channel seek position set from channel checkpoint meta" | ||
status: "info" | ||
tags: | ||
- "source:LOGS_SOURCE" | ||
timestamp: 1732716471849 | ||
- | ||
sample: "[2024/11/27 14:07:01.849 +00:00] [INFO] [datacoord/services.go:833] [\"datacoord append channelInfo in GetRecoveryInfo\"] [traceID=ed216b196edf0589f281c4ad800f6565] [collectionID=453764875273209568] [partitionIDs=\"[]\"] [channel=by-dev-rootcoord-dml_2_453764875273209568v0] [\"# of unflushed segments\"=0] [\"# of flushed segments\"=1] [\"# of dropped segments\"=0] [\"# of indexed segments\"=0] [\"# of l0 segments\"=0]" | ||
result: | ||
custom: | ||
component: "datacoord" | ||
date: 1732716421849 | ||
file: "services.go" | ||
level: "INFO" | ||
lineno: 833 | ||
message: | ||
details: | ||
- "traceID=ed216b196edf0589f281c4ad800f6565" | ||
- "collectionID=453764875273209568" | ||
- "partitionIDs=\"[]\"" | ||
- "channel=by-dev-rootcoord-dml_2_453764875273209568v0" | ||
- "\"# of unflushed segments\"=0" | ||
- "\"# of flushed segments\"=1" | ||
- "\"# of dropped segments\"=0" | ||
- "\"# of indexed segments\"=0" | ||
- "\"# of l0 segments\"=0" | ||
message: "datacoord append channelInfo in GetRecoveryInfo" | ||
status: "info" | ||
tags: | ||
- "source:LOGS_SOURCE" | ||
timestamp: 1732716421849 | ||
- | ||
sample: "[2024/11/27 14:06:51.852 +00:00] [INFO] [datacoord/services.go:818] [\"get recovery info request received\"] [traceID=54cda8d3229d00982db785351a12ea7a] [collectionID=453764875273212700] [partitionIDs=\"[]\"]" | ||
result: | ||
custom: | ||
component: "datacoord" | ||
date: 1732716411852 | ||
file: "services.go" | ||
level: "INFO" | ||
lineno: 818 | ||
message: | ||
details: | ||
- "traceID=54cda8d3229d00982db785351a12ea7a" | ||
- "collectionID=453764875273212700" | ||
- "partitionIDs=\"[]\"" | ||
message: "get recovery info request received" | ||
status: "info" | ||
tags: | ||
- "source:LOGS_SOURCE" | ||
timestamp: 1732716411852 | ||
- | ||
sample: "[2024/11/18 15:15:45.120 +00:00] [INFO] [roles/roles.go:282] [setupPrometheusHTTPServer]" | ||
result: | ||
custom: | ||
component: "roles" | ||
date: 1731942945120 | ||
file: "roles.go" | ||
level: "INFO" | ||
lineno: 282 | ||
message: "setupPrometheusHTTPServer" | ||
status: "info" | ||
tags: | ||
- "source:LOGS_SOURCE" | ||
timestamp: 1731942945120 | ||
- | ||
sample: "I20241118 15:15:45.622637 26 thread_pool.h:178] [KNOWHERE][InitGlobalBuildThreadPool][milvus] Init global build thread pool with size 7" | ||
result: | ||
custom: | ||
date: 1731942945622 | ||
file: "thread_pool.h" | ||
level: "I" | ||
lineno: 178 | ||
message: | ||
details: | ||
- "KNOWHERE" | ||
- "InitGlobalBuildThreadPool" | ||
- "milvus" | ||
pid: 26 | ||
message: "Init global build thread pool with size 7" | ||
status: "info" | ||
tags: | ||
- "source:LOGS_SOURCE" | ||
timestamp: 1731942945622 | ||
- | ||
sample: "I20241118 15:15:45.626205 33 MmapChunkManager.cpp:302] [SERVER][MmapChunkManager][milvus] Init MappChunkManager with: Path /var/lib/milvus/data/mmap/mmap_chunk_manager, MaxDiskSize 121418772 MB, FixedFileSize 1 MB." | ||
result: | ||
custom: | ||
date: 1731942945626 | ||
file: "MmapChunkManager.cpp" | ||
level: "I" | ||
lineno: 302 | ||
message: | ||
details: | ||
- "SERVER" | ||
- "MmapChunkManager" | ||
- "milvus" | ||
pid: 33 | ||
message: "Init MappChunkManager with: Path /var/lib/milvus/data/mmap/mmap_chunk_manager, MaxDiskSize 121418772 MB, FixedFileSize 1 MB." | ||
status: "info" | ||
tags: | ||
- "source:LOGS_SOURCE" | ||
timestamp: 1731942945626 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{ | ||
"name": "Milvus Error Logs Overview", | ||
"type": "logs", | ||
"page": "stream", | ||
"query": "source:milvus -status:(warn OR info)", | ||
"timerange": { | ||
"interval_ms": 3600000 | ||
}, | ||
"visible_facets": [ | ||
"source", | ||
"host", | ||
"service" | ||
], | ||
"options": { | ||
"columns": [ | ||
"host", | ||
"service" | ||
], | ||
"show_date_column": true, | ||
"show_message_column": true, | ||
"message_display": "inline", | ||
"show_timeline": true | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{ | ||
"name": "Milvus Logs Overview", | ||
"type": "logs", | ||
"page": "stream", | ||
"query": "source:milvus", | ||
"timerange": { | ||
"interval_ms": 3600000 | ||
}, | ||
"visible_facets": [ | ||
"source", | ||
"host", | ||
"service" | ||
], | ||
"options": { | ||
"columns": [ | ||
"host", | ||
"service" | ||
], | ||
"show_date_column": true, | ||
"show_message_column": true, | ||
"message_display": "inline", | ||
"show_timeline": true | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Add Milvus logs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters