Skip to content

Authentication for loki exporter #21165

Answered by mar4uk
Chinwendu20 asked this question in Q&A
Discussion options

You must be logged in to vote

you should use basicauth extension:

extensions:
    basicauth:
      client_auth:
        username: "${LOGS_USER_ID}"
        password: "${API_KEY}" 
exporters:
    loki:
       endpoint: "http://localhost:3100/loki/api/v1/push"
       auth:
          authenticator: basicauth
service:
  extensions: [basicauth]
  pipelines:
     logs: [loki]

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by Chinwendu20
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
exporter/loki Loki Exporter
2 participants