hi, solved by investigating logs and noticing that token was missing a character
On Wed, Apr 15, 2020 at 6:09 PM Kalle Narinen <[email protected]> wrote: > hi, I'm getting 403 as a scrape result with following config > scrape config: > - job_name: federate > scheme: https > honor_labels: true > tls_config: > insecure_skip_verify: true > metrics_path: /federate > bearer_token: '<openshift service_acccount token' > params: > 'match[]': > - '{job="node-exporter"}' > static_configs: > - targets: > - 'prometheus-k8s-openshift-monitoring.<domain>' > > With curl from the same prometheus container works and metrics are seen. > curl -k -v -G --data-urlencode 'match[]={job="node-exporter"}' > https://prometheus-k8s-openshift-monitoring.<domain>/federate -H > 'Authorization: Bearer <openshift service_acccount token' > > -Kalle > > > -- 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/CAMfxma_EMyVP%2Bqg%2Btx5EHhh5vUAqasp-eSgK389hhqN8HKv0Ag%40mail.gmail.com.

