fix: make helm use grpc for compactor address - #17454
Conversation
|
Hi @rurod I looked into the code where It is used in loki/production/helm/loki/values.yaml Lines 354 to 357 in 01065da and according docs, |
|
Hi @jkroepke, thanks for having a look at my PR and catching this. What do you think about replacing the Is there any specific reason to use http for the compacto rather than grpc ? |
Looking through the git history, I cant find any valid reason. However, I found #7804 which advertise gRPC over HTTP. Generally, I would say that the Helm chart should prefer gRPC as well. But I feel that the theoretical breaking change is an edge which can be covered by an fair warning in https://github.com/grafana/loki/blob/main/production/helm/loki/CHANGELOG.md |
|
hi @rurod the PR will be discussed internally next week. |
|
Hi @jkroepke, thanks for letting me know. In the meantime, I updated the PR with your suggestions. By the way, to avoid the breaking change, there is another implementation that could work :
This way, administrators would have the option to switch to grpc when it best suits them and Helm chart maintainers could switch to grpc as default config when they'd like. Let me know what you think and the output of your internal meeting, thanks. |
Signed-off-by: Jay Clifford <45856600+Jayclifford345@users.noreply.github.com>
|
Hi @rurod I got feedback from the internal team. The breaking change is fine in that context, because if someone customize the compacter address, it's an edge-case scenario. You suggestion is fine as well, but I would like to keep it simple for now. |
|
@rurod could you please take note of my comments and resolve conflicts? |
|
Hi @jkroepke, couldn't work on this earlier. |
|
Hi, thanks for your changes. I looks good to me. Would you resolve the conflicts? And I guess, since we are changing the values, |
Signed-off-by: Ruben <48444553+rurod@users.noreply.github.com>
|
Done, thanks a lot for taking the time to guide me during this PR! |
|
LGTM - just one nit.
No problem, always welcome! |
Co-authored-by: Jan-Otto Kröpke <mail@jkroepke.de> Signed-off-by: Ruben <48444553+rurod@users.noreply.github.com>
Signed-off-by: J Stickler <julie.stickler@grafana.com>
|
@rurod could you please re-generate the Helm Chart reference by running 'make -C docs sources/setup/install/helm/reference.md'. |
|
Hi @JStickler, done |
Signed-off-by: Jay Clifford <45856600+Jayclifford345@users.noreply.github.com>
Jayclifford345
left a comment
There was a problem hiding this comment.
LGTM -> @JStickler I will create a PR to document the potential breaking change.
Signed-off-by: J Stickler <julie.stickler@grafana.com>
Signed-off-by: Jay Clifford <45856600+Jayclifford345@users.noreply.github.com> Signed-off-by: Ruben <48444553+rurod@users.noreply.github.com> Signed-off-by: J Stickler <julie.stickler@grafana.com> Co-authored-by: Jay Clifford <45856600+Jayclifford345@users.noreply.github.com> Co-authored-by: Jan-Otto Kröpke <mail@jkroepke.de> Co-authored-by: J Stickler <julie.stickler@grafana.com>
What this PR does / why we need it:
Align the computation logic of the compactor address with how other address are computed.
Moreover, it makes use of grpc, as according to the Loki codebase, it's the preferred way :
https://github.com/grafana/loki/blob/46b2271aacd26734979667da61d5c9d24a8efb2b/pkg/loki/modules.go#L1256C1-L1274C2
Which issue(s) this PR fixes:
Kind of fixes #17100, as using the full hostname of the service rather than the short name helps comply with the no_proxy instruction, even if not mandatory
Checklist
CONTRIBUTING.mdguide (required)featPRs are unlikely to be accepted unless a case can be made for the feature actually being a bug fix to existing behavior.docs/sources/setup/upgrade/_index.mddeprecated-config.yamlanddeleted-config.yamlfiles respectively in thetools/deprecated-config-checkerdirectory. Example PR