-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature/splunk configuration #292
Merged
Merged
Changes from 17 commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
f2e64a8
feat: Added splunk configuration.
f6db3c7
feat: Added splunk configuration.
ec9686e
feat: Added splunk configuration.
446ae7e
feat: Added splunk configuration.
9813756
feat: Added splunk configuration.
1cc20bb
feat: Added splunk configuration.
ad206f1
feat: Added splunk configuration.
d3db697
feat: Added splunk configuration.
5652b2d
feat: Added splunk configuration.
a9b6c8a
feat: Added splunk configuration.
de4c22c
feat: Added splunk configuration.
36604fa
feat: Added splunk configuration.
2bc3ef2
feat: Added splunk configuration.
984626e
feat: Added splunk configuration.
516a0b0
feat: Added splunk configuration. working
d597729
feat: Added Health Checks
e2ec510
feat: Added Health Checks
8d912e4
feat: Added Health Checks
c737075
feat: Added Variables.md
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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 |
---|---|---|
|
@@ -67,11 +67,20 @@ | |
} | ||
], | ||
"logConfiguration": { | ||
"logDriver": "awslogs", | ||
"options": { | ||
"logDriver": "${enable_splunk_logging ? "splunk" : "awslogs"}", | ||
"options": ${enable_splunk_logging ? | ||
jsonencode({ | ||
"splunk-token": "${splunk_hec_token}", | ||
"splunk-url": "${splunk_hec_host}", | ||
"splunk-source": "apiary-hms-readonly-logs", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. readwrite |
||
"splunk-sourcetype": "hms-logs", | ||
"splunk-index": "${splunk_hec_index}" | ||
}) : | ||
jsonencode({ | ||
"awslogs-group": "${loggroup}", | ||
"awslogs-region": "${region}", | ||
"awslogs-stream-prefix": "/" | ||
}) | ||
} | ||
}, | ||
"dockerLabels": { | ||
|
@@ -93,6 +102,16 @@ | |
} | ||
], | ||
%{ endif } | ||
"healthCheck": { | ||
"command": [ | ||
"CMD-SHELL", | ||
"curl -f http://localhost:8080/actuator/health || exit 1" | ||
], | ||
"interval": 30, | ||
"timeout": 5, | ||
"retries": 3, | ||
"startPeriod": 10 | ||
}, | ||
"environment":[ | ||
{ | ||
"name": "MYSQL_DB_HOST", | ||
|
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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not a blocker but for future consider setting:
Then we avoid the ifs and we can also introduce additional logging solutions.