Since firefox portable did the trick that's a concern for later ;)
Now i face the issue that the prometheus data is not scraped by itself.
I get:
                "scrapePool": "prometheus",
                "scrapeUrl": "http://10.xx.x.2:9090/metrics";,
                "globalUrl": "http://10.x.x.2:9090/metrics";,
                "lastError": "server returned HTTP status 401 Unauthorized",
                "lastScrape": "2023-01-10T11:35:54.483356541+01:00",
                "lastScrapeDuration": 0.000457087,
                "health": "down",
                "scrapeInterval": "5s",
                "scrapeTimeout": "5s"
I did include basic_auth in the prometheus config.

scrape_configs:
  - job_name: 'prometheus'
    basic_auth:
      username: 'waardd'
      password: '$2a$12$A/andsometextwcqYNREaAIIill2'
    scrape_interval: 5s
    static_configs:
      - targets: ['10.x.x.2:9090']
        labels:
          host: 'lspe000397'
          srvrole: 'prometheus'
          env: 'management'

The return message is of course:  server returned HTTP status 401 
Unauthorized
Op dinsdag 10 januari 2023 om 10:39:32 UTC+1 schreef Julien Pivotto:

> You could try to use http://user@myprometheushost:9090 in your browser
> to force the authentication.
>
> It would help to see what the debug tools of the browser have to say.
>
> On 09 Jan 23:13, Danny de Waard wrote:
> > For my prometheus setup i put in basic auth.
> > This works fine and in grafana i can get the data when putting in the 
> > credentials.
> > But when i enter the GUI on http://myprometheushost:9090 it states 
> > Unauthorized
> > 
> > I would expect at least a sign in message.
> > 
> > What am i missing?
> > 
> > -- 
> > 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/46093d6e-906d-4cb6-a215-3eb9c871dc28n%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/a0f7ef30-1b35-4c2e-b2a6-d2ca372a5992n%40googlegroups.com.

Reply via email to