Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting more metrics returned than I expected #77

Open
shaunokeefe opened this issue Mar 18, 2019 · 1 comment
Open

Getting more metrics returned than I expected #77

shaunokeefe opened this issue Mar 18, 2019 · 1 comment

Comments

@shaunokeefe
Copy link

shaunokeefe commented Mar 18, 2019

G'day. I'm having some trouble with performance so I'm looking at limiting the exporter a smaller subset of the default metrics. Currently I'm looking at only exporting rabbitmq_queue_messages_ready and rabbitmq_exchange_messages_published_out_total. I've got the following configuration:

 {rabbit, [
        ...
    ]},
    {prometheus, [
        {collectors, [
           prometheus_rabbitmq_queues_collector,
           prometheus_rabbitmq_exchanges_collector
        ]},
        {rabbitmq_exporter, [
            {path, "/metrics"},
            {queue_messages_stat, [
                rabbitmq_queue_messages_ready
            ]},
            {exchange_messages_stat, [
                rabbitmq_exchange_messages_published_out_total
            ]}
        ]}
    ]},
    {rabbitmq_management, [
      {listener, [
        {port, 15672},
        {ssl, false}
      ]}
    ]},

This excludes metrics from collectors that aren't prometheus_rabbitmq_queues_collector and prometheus_rabbitmq_exchanges_collector collectors (i.e. no mnesia table metrics etc), but I was hoping that the settings I had for exchange_messages_stat and queue_messages_stat would further limit the output from polling /metrics to the two metrics I was after. Instead it looks like pretty much all available metrics for the two collectors are returned when I query the metrics endpoint.

Any idea what I'm doing wrong?

@deadtrickster
Copy link
Owner

Hi, I think naming might be the problem here: please try something from here:

-define(DEFAULT_QUEUE_MESSAGES_STAT, [messages_published_total,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants