On 16 Apr 01:57, Anoop Maurya wrote:
> Hi Julien,
>
> Thanks for your response, I'm using the *prometheus, version 2.24.1*, This
> seems almost latest version and documentation is also available.
> However I'll try with "bearer_token" field and let you know. Please let me
> know where to use this bearer_token ??
>
> authorization:
> type: 'bearer_token'
> credentials: 'xxxxxxxxxxxxxx'
>
> OR
>
> authorization:
> bearer_token : 'xxxxxxxxxxxxxx'
>
> OR
>
> bearer_token : 'xxxxxxxxxxxxxx'
This one.
The latest is Prometheus 2.26. 2.24 does not support authorization:.
>
>
> On Friday, 16 April, 2021 at 12:54:28 pm UTC+5:30 Julien Pivotto wrote:
>
> > You are probably using an older version of prometheus. Please upgrade or
> > use the older bearer_token field.
> >
> > Now that the documentation in the website is versionned so your can look
> > at the specific documentation of your release.
> >
> > Le ven. 16 avr. 2021 ą 09:22, Anoop Maurya <
anoopmau...@gmail.com> a
> > écrit :
> >
> >> Hi All,
> >>
> >> added the authorization section in the below config and it's getting
> >> failed on configuration reload:
> >>
> >> *Configuration Section:*
> >> - job_name: 'kube-metrics'
> >> scrape_interval: 10s
> >> metrics_path: /metrics
> >> scheme: https
> >> tls_config:
> >> insecure_skip_verify: true
> >> authorization:
> >> type: 'Bearer'
> >> credentials: 'xxxxxxxxxxxxxx'
> >> static_configs:
> >> - targets: ['ip:port','ip:port']
> >>
> >> *Error:*
> >>
> >> *______________________________________________________________________________________*
> >> <
https://groups.google.com/d/msgid/prometheus-users/c7b857d4-1f73-4716-990b-8de3bf855540n%40googlegroups.com?utm_medium=email&utm_source=footer>
> >> .
> >>
> >
>
> --
> 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/fe9174b2-9f92-43f7-b108-014dd926c20bn%40googlegroups.com.
--
Julien Pivotto
@roidelapluie