-
Notifications
You must be signed in to change notification settings - Fork 53
#patch Cloudwatch FluentD #293
base: master
Are you sure you want to change the base?
Conversation
Signed-off-by: Azanul Haque <[email protected]>
Thank you for opening this pull request! 🙌 These tips will help get your PR across the finish line:
|
@EngHabu, is this the required change, or is there something else that needs to be done? |
Codecov Report
@@ Coverage Diff @@
## master #293 +/- ##
=======================================
Coverage 63.32% 63.32%
=======================================
Files 145 145
Lines 9311 9311
=======================================
Hits 5896 5896
Misses 2872 2872
Partials 543 543
Flags with carried forward coverage won't be shown. Click here to find out more.
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
Thank you for your help! I went through this exercise recently and what I see is missing at the moment is the hostname. By default, these logstreams include the name of the host they were connected from. There are no template values (e.g. {{.host}}) to use. The fix will involve adding that template like the other ones, populate it from the Pod spec and then use it in the log link. |
@EngHabu By host do you mean
|
Hostname should be provided by the flyteplugins/go/tasks/pluginmachinery/tasklog/plugin.go Lines 7 to 16 in b0684d9
|
That's correct, the hostname is not provided... that's the work needed |
From what I see the pods which Flyte create have local hostname, but what container insights log path expects is the node name, which is not available on the Flyte pod. I imagine that there should be another template parameter which will include node name or --hostname-override could be passed to the Flyte pods on creation to set it to the node hostname instead. |
There seems to be a |
I used this aws-for-fluent-bit chart recently which uses a default |
@ashrielbrian I don't plan working on this myself, locally we use Datadog, so the issue was solved for us by adding custom logging URL towards it, which didn't require a hostname |
Signed-off-by: Azanul Haque [email protected]
TL;DR
This PR fixes Log Links that do not work with CloudWatch FluentD out of the box
Type
Are all requirements met?
Complete description
Replaced the linking cloudwatch url template with correct one.
Tracking Issue
fixes flyteorg/flyte#2635
Follow-up issue
NA