-
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.
[AI-4929] [LOI-381] Add logs for octopus_deploy (#19543)
* Add logs * fix integration id and name * update tests and readme * fix timestamp and update readme * fix timestamp * Update octopus_deploy/assets/logs/octopus_deploy.yaml Co-authored-by: Thibault Krebs <[email protected]> * update source in config * add changelog * fix changelog --------- Co-authored-by: Thibault Krebs <[email protected]>
- Loading branch information
1 parent
2468ca5
commit 679238b
Showing
7 changed files
with
169 additions
and
2 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,51 @@ | ||
id: octopus_deploy | ||
metric_id: octopus-deploy | ||
backend_only: false | ||
facets: [] | ||
pipeline: | ||
type: pipeline | ||
name: "Octopus Deploy" | ||
enabled: true | ||
filter: | ||
query: source:octopus_deploy | ||
processors: | ||
- type: grok-parser | ||
name: Octopus Parser | ||
enabled: true | ||
source: message | ||
samples: | ||
- > | ||
2024-08-23 18:47:15.8732 7 1 INFO Octopus.Server version | ||
2024.2.9409 (2024.2.9409) instance OctopusServer | ||
- 2024-08-23 18:47:24.0518 7 1 INFO Defaulting server node | ||
name to '"08c3dfcac5a3"'. | ||
- > | ||
2025-01-29 21:32:16.7923 1 75 INFO "HTTP" "GET" to | ||
"localhost:8080""/api/octopusservernodes/ping" "completed" with 200 in | ||
00:00:00.0224869 (22ms) by "<anonymous>" | ||
- > | ||
2025-01-28 19:34:47.9679 1 111 ERROR Executing task "Check | ||
target health for Default Machine Policy" "abandoned" after 290ms. | ||
- > | ||
2025-01-27 21:00:40.7777 1 101 WARN Ignoring incompatible | ||
step package "kustomize 1.0.12": "kustomize step package is | ||
deprecated" | ||
grok: | ||
supportRules: "" | ||
matchRules: octopus_default %{date("yyyy-MM-DD | ||
HH:mm:ss.SSSS"):timestamp}\s+%{number:tid}\s+%{number:pid}\s+%{word:level}\s+%{data:message} | ||
- type: message-remapper | ||
name: Define `message` as the official message of the log | ||
enabled: true | ||
sources: | ||
- message | ||
- type: status-remapper | ||
name: Define `level` as the official status of the log | ||
enabled: true | ||
sources: | ||
- level | ||
- type: date-remapper | ||
name: Define `timestamp` as the official date of the log | ||
enabled: true | ||
sources: | ||
- timestamp |
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,71 @@ | ||
id: "octopus_deploy" | ||
tests: | ||
- | ||
sample: |- | ||
2025-01-28 18:47:24.0518 7 1 INFO Defaulting server node | ||
name to '"08c3dfcac5a3"'. | ||
result: | ||
custom: | ||
level: "INFO" | ||
pid: 1.0 | ||
tid: 7.0 | ||
timestamp: 1738090044051 | ||
message: |- | ||
Defaulting server node | ||
name to '"08c3dfcac5a3"'. | ||
status: "info" | ||
tags: | ||
- "source:LOGS_SOURCE" | ||
timestamp: 1738090044051 | ||
- | ||
sample: "2025-01-28 18:47:15.8732 7 1 INFO Octopus.Server version 2024.2.9409 (2024.2.9409) instance OctopusServer" | ||
result: | ||
custom: | ||
level: "INFO" | ||
pid: 1.0 | ||
tid: 7.0 | ||
timestamp: 1738090035873 | ||
message: "Octopus.Server version 2024.2.9409 (2024.2.9409) instance OctopusServer" | ||
status: "info" | ||
tags: | ||
- "source:LOGS_SOURCE" | ||
timestamp: 1738090035873 | ||
- | ||
sample: "2025-01-29 21:32:16.7923 1 75 INFO \"HTTP\" \"GET\" to \"localhost:8080\"\"/api/octopusservernodes/ping\" \"completed\" with 200 in 00:00:00.0224869 (22ms) by \"<anonymous>\"" | ||
result: | ||
custom: | ||
level: "INFO" | ||
pid: 75.0 | ||
tid: 1.0 | ||
timestamp: 1738186336792 | ||
message: "\"HTTP\" \"GET\" to \"localhost:8080\"\"/api/octopusservernodes/ping\" \"completed\" with 200 in 00:00:00.0224869 (22ms) by \"<anonymous>\"" | ||
status: "info" | ||
tags: | ||
- "source:LOGS_SOURCE" | ||
timestamp: 1738186336792 | ||
- | ||
sample: "2025-01-28 19:34:47.9679 1 111 ERROR Executing task \"Check target health for Default Machine Policy\" \"abandoned\" after 290ms." | ||
result: | ||
custom: | ||
level: "ERROR" | ||
pid: 111.0 | ||
tid: 1.0 | ||
timestamp: 1738092887967 | ||
message: "Executing task \"Check target health for Default Machine Policy\" \"abandoned\" after 290ms." | ||
status: "error" | ||
tags: | ||
- "source:LOGS_SOURCE" | ||
timestamp: 1738092887967 | ||
- | ||
sample: "2025-01-27 21:00:40.7777 1 101 WARN Ignoring incompatible step package \"kustomize 1.0.12\": \"kustomize step package is deprecated\"" | ||
result: | ||
custom: | ||
level: "WARN" | ||
pid: 101.0 | ||
tid: 1.0 | ||
timestamp: 1738011640777 | ||
message: "Ignoring incompatible step package \"kustomize 1.0.12\": \"kustomize step package is deprecated\"" | ||
status: "warn" | ||
tags: | ||
- "source:LOGS_SOURCE" | ||
timestamp: 1738011640777 |
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 @@ | ||
Update logs configuration example. |
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