Skip to content

question: how promtail code and agent are synchronized #3842

Answered by mattdurham
eraac asked this question in Q&A
Discussion options

You must be logged in to vote

There are currently two paths to getting promtail code into the Agent.

The first is for static mode in which we import github.com/grafana/loki, if you look at our go.mod file you will see a line github.com/grafana/loki v1.6.2-0.20230414223651-220cbdd4f172 // k146 branch this specifies we have pulled in the k146 branch. Normally we update this every few months or whenever requests for features start to accumulate.

The second way for Flow mode is we are lift and shifting the promtail code directly into the Agent. If you look at component/loki/source/docker/internal/dockertarget/target.go you will notice a disclaimer where we are copying the code with light edits.

If you wanted to create a P…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by eraac
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #3779 on May 10, 2023 16:59.