prometheus target down (401 unauthorized)

tbarthelemy 19/11/2024
RÉSOLU
tbarthelemy
Auteur Actif
Avatar de tbarthelemy
tbarthelemy
Auteur Actif

hello j'ai ajouté un exporteur custom sur prometheus mais il apparaît en down avec une 401

scrape_configs:
  - job_name: 'my-app'
    static_configs:
      - targets: ['app:8080']
19/11/2024 à 03:05

2 commentaires

ton app doit avoir une auth activée. faut passer les credentials dans la conf prometheus

basic_auth:
  username: admin
  password: password
19/11/2024 à 23:25
tbarthelemy
Auteur Actif
Avatar de tbarthelemy
tbarthelemy
Auteur Actif

exact j'avais zappé que le middleware d'auth bloquait aussi /metrics. thx

20/11/2024 à 18:35

Laisser une réponse

Vous devez être connecté pour poster un message !

Rejoindre la communauté

Recevoir les derniers articles gratuitement en créant un compte !

S'inscrire
An Error Occurred: Internal Server Error

Oops! An Error Occurred

The server returned a "500 Internal Server Error".

Something is broken. Please let us know what you were doing when this error occurred. We will fix it as soon as possible. Sorry for any inconvenience caused.