Giter VIP home page Giter VIP logo

Comments (6)

deadtrickster avatar deadtrickster commented on September 15, 2024

Currently it's not possible to reuse management auth. However, you can still configure authentication via prometheus app prometheus_http env key:

{prometheus,
 [{prometheus_http, [{authorization,
                      {basic, "qwe", "qwa"}}]}]}

from prometheus_rabbitmq_exporter.

cookandy avatar cookandy commented on September 15, 2024

Hello,

I'm having some trouble using basic auth. I have tried

  {prometheus, [
    {prometheus_http, [{authorization, {basic, "user", "pass"}}]},
    {rabbitmq_exporter, [
      {path, "/prometheus"},
      {connections_total_enabled, true}
    ]}
  ]}

as well as

  {prometheus, [
    {rabbitmq_exporter, [
      {path, "/prometheus"},
      {connections_total_enabled, true}
    ]},
    {prometheus_http, [{authorization, {basic, "user", "pass"}}]}
  ]}

But they both result in a 403 Forbidden when trying to connect with basic auth

❯  curl -v -k https://rabbitmq.myhost.mydomain:15671/api/prometheus --user user:pass
*   Trying ...
........
........
*  SSL certificate verify ok.
* Server auth using Basic with user 'user'
> GET /api/prometheus HTTP/1.1
> Host: rabbitmq.myhost.mydomain:15671
> Authorization: Basic dXNlcjpwYXNz
> User-Agent: curl/7.54.0
> Accept: */*
>
< HTTP/1.1 403 Forbidden
< server: Cowboy
< date: Fri, 13 Jul 2018 15:54:49 GMT
< content-length: 0
<
* Connection #0 to host rabbitmq.myhost.mydomain left intact

Can you please tell me what I'm doing wrong? Thanks!

from prometheus_rabbitmq_exporter.

deadtrickster avatar deadtrickster commented on September 15, 2024

Hi, I'll look into this shortly

from prometheus_rabbitmq_exporter.

deadtrickster avatar deadtrickster commented on September 15, 2024

@cookandy hi, can't reproduce it there:

00:01 $ curl --user user:pass http://localhost:15672/api/metrics
# TYPE rabbitmq_mnesia_table_read_only untyped
# HELP rabbitmq_mnesia_table_read_only Access mode of the table, 1 if table is read_only or 0 otherwise.

maybe path is wrong somehow?

from prometheus_rabbitmq_exporter.

cookandy avatar cookandy commented on September 15, 2024

Hi @deadtrickster - thanks for the reply!

I'm using https for my RMQ mgmt port - not sure if that matters.

  {rabbitmq_management, [
    {listener, [{port, 15671},
                {ssl, true},
                {ssl_opts, [{cacertfile,"/etc/ssl/server.crt"},
                    {certfile,"/etc/ssl/server.crt"},
                    {keyfile,"/etc/ssl/server.key"}


                    ]}
              ]}
  ]},

I'm also using RMQ version 3.6.8. Are you able to reproduce using these settings?

from prometheus_rabbitmq_exporter.

deadtrickster avatar deadtrickster commented on September 15, 2024

added in master and here https://github.com/deadtrickster/prometheus_rabbitmq_exporter/releases/tag/v3.7.2.3

from prometheus_rabbitmq_exporter.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.