On 25 Nov 07:39, 'Fabian Säglitz' via Prometheus Users wrote: > Hi, > > we use the blackbox exporter to probe our services which use OAuth2 (client > credentials flow). > The probing works fine but it is sometimes flaky and I could see that > sometimes the response seems to be a non valid token. > > How does the blackbox exporter work? For each new probe will it get a fresh > token or is the token stored and it only gets a new one after it has > expired? > > Thank you for your support.
The token should be stored and we should get a new one after expiry. We are using https://pkg.go.dev/golang.org/x/[email protected]/clientcredentials ``` TokenSource returns a TokenSource that returns t until t expires, automatically refreshing it as necessary using the provided context and the client ID and client secret. ``` > > -- > 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 [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/prometheus-users/86e3054d-54da-45de-a599-707b248329e3n%40googlegroups.com. -- Julien Pivotto @roidelapluie -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/Y4Kg9wJk5wE%2BMvsf%40nixos.

