Help about setting the GOGC environment variable on promstack helm chart

81 views
Skip to first unread message

David B G.

unread,
Nov 21, 2023, 5:53:51 PM11/21/23
to Prometheus Users
Greetings !,

Hi everyone hope you are doing great, Today I am trying to improve my prometheus performance by playing with the GOGC environment variable , Right now I am using the promstack helm values.yaml definition and I was trying the set the value here:

  prometheusSpec:
    additionalArgs:
    - name: "set GOGC"
      value: "60"

but it seems that the value is not supported, Where I can put that environment variable on prometheus  configuration ?

Thank you !

David B G.

unread,
Nov 21, 2023, 5:55:36 PM11/21/23
to Prometheus Users

The error I got was:

Error parsing command line arguments: unknown long flag '--set GOGC'
prometheus: error: unknown long flag '--set GOGC'
on the prometheus log pod

Bjoern Rabenstein

unread,
Dec 13, 2023, 7:20:37 AM12/13/23
to David B G., Prometheus Users
I'm not a Helm expert, but it looks like you are adding a command line
argument. GOGC has to be set as an environment variable. So you have
to find out how to do that with Helm.
> --
> You received this message because you are subscribed to the Google Groups "Prometheus Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-use...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/e921947b-7c8d-401f-95b3-0f35971eedcdn%40googlegroups.com.


--
Björn Rabenstein
[PGP-ID] 0x851C3DA17D748D03
[email] bjo...@rabenste.in
Reply all
Reply to author
Forward
0 new messages