Comments (6)
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.
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.
Hi, I'll look into this shortly
from prometheus_rabbitmq_exporter.
@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.
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.
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)
- Crash on "flow" queue state
- "flow" (or any other) state is not showing up in metrics & "connections_total_enabled" was set to "true". rabbitmq v3.8.8
- prometheus-rabbitme-exporter vs rabbitmq3.7.14 HOT 4
- label name "node" is not unique: invalid sample
- no case clause matching: {:plugin_module_unloadable} HOT 1
- Unable to filter results bases on queue param for rabbitmq_queue_messages
- Grafana dashboard for this exporter
- Detect "stuck" queues
- Crashing on scraping HOT 4
- Error running as exporter for helm chart
- Server Cowboy is not blacklisted
- Which plugin version should be used for Rabbit 3.7.17? HOT 1
- No stats for exchange to exchange bindings HOT 1
- prometheus_rabbitmq_exporter only running in one node HOT 1
- Update plugin for RabbitMQ Managment 3.8.0 HOT 5
- Message Rates per Queue HOT 1
- Detection partitions are not supported
- /api/metrics shows "Internal Server Error" HOT 1
- manual ack and auto ack
- Unable to fetch metrics from Rabbit exporter
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from prometheus_rabbitmq_exporter.