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

Add RabbitMQ healthchecks in inputs.rabbitmq #3025

Closed
orlovds opened this issue Jul 18, 2017 · 6 comments · Fixed by #4308
Closed

Add RabbitMQ healthchecks in inputs.rabbitmq #3025

orlovds opened this issue Jul 18, 2017 · 6 comments · Fixed by #4308
Labels
area/rabbitmq feat Improvement on an existing feature such as adding a new setting/mode to an existing plugin

Comments

@orlovds
Copy link

orlovds commented Jul 18, 2017

Hi.

RabbitMQ has a url to call healthcheck: http://localhost:15672/api/healthchecks/node

Please add data from RabbitMQ healthcheck in inputs.rabbitmq.

Thank.

@danielnelson danielnelson added the feat Improvement on an existing feature such as adding a new setting/mode to an existing plugin label Jul 18, 2017
@orlovds
Copy link
Author

orlovds commented Feb 5, 2018

Also in /api/overview there is a parameter return_unroutable - сount of messages returned to publisher as unroutable.

It would be nice to implement it in the plugin...

@danielnelson
Copy link
Contributor

Can you make a new issue for return_ununroutable and add an example of the /api/overview output?

@elatov
Copy link

elatov commented May 3, 2018

any new developments on either the healthcheck

<> curl -u guest:guest http://localhost:15672/api/healthchecks/node
{"status":"ok"}

or the overview output:

<> curl -u guest:guest http://localhost:15672/api/overview | python -m json.tool
{
    "cluster_name": "rabbit@531a6aae224b",
    "contexts": [
        {
            "description": "RabbitMQ Management",
            "node": "rabbit@531a6aae224b",
            "path": "/",
            "port": "15672",
            "ssl": "false",
            "ssl_opts": []
        }
    ],
    "erlang_full_version": "Erlang/OTP 20 [erts-9.2.1] [source] [64-bit] [smp:4:4] [ds:4:4:10] [async-threads:64] [hipe] [kernel-poll:true]",
    "erlang_version": "20.2.4",
    "exchange_types": [
        {
            "description": "AMQP headers exchange, as per the AMQP specification",
            "enabled": true,
            "name": "headers"
        },
        {
            "description": "AMQP topic exchange, as per the AMQP specification",
            "enabled": true,
            "name": "topic"
        },
        {
            "description": "AMQP direct exchange, as per the AMQP specification",
            "enabled": true,
            "name": "direct"
        },
        {
            "description": "AMQP fanout exchange, as per the AMQP specification",
            "enabled": true,
            "name": "fanout"
        }
    ],
    "listeners": [
        {
            "ip_address": "::",
            "node": "rabbit@531a6aae224b",
            "port": 5672,
            "protocol": "amqp",
            "socket_opts": {
                "backlog": 128,
                "exit_on_close": false,
                "linger": [
                    true,
                    0
                ],
                "nodelay": true
            }
        },
        {
            "ip_address": "::",
            "node": "rabbit@531a6aae224b",
            "port": 25672,
            "protocol": "clustering",
            "socket_opts": []
        },
        {
            "ip_address": "::",
            "node": "rabbit@531a6aae224b",
            "port": 15672,
            "protocol": "http",
            "socket_opts": {
                "port": 15672,
                "ssl": false
            }
        }
    ],
    "management_version": "3.7.4",
    "message_stats": {
        "ack": 7043363,
        "ack_details": {
            "rate": 0.0
        },
        "confirm": 0,
        "confirm_details": {
            "rate": 0.0
        },
        "deliver": 7046674,
        "deliver_details": {
            "rate": 0.0
        },
        "deliver_get": 62857674,
        "deliver_get_details": {
            "rate": 0.0
        },
        "deliver_no_ack": 55811000,
        "deliver_no_ack_details": {
            "rate": 0.0
        },
        "disk_reads": 0,
        "disk_reads_details": {
            "rate": 0.0
        },
        "disk_writes": 7197521,
        "disk_writes_details": {
            "rate": 0.0
        },
        "get": 0,
        "get_details": {
            "rate": 0.0
        },
        "get_no_ack": 0,
        "get_no_ack_details": {
            "rate": 0.0
        },
        "publish": 62956148,
        "publish_details": {
            "rate": 0.0
        },
        "redeliver": 3873,
        "redeliver_details": {
            "rate": 0.0
        },
        "return_unroutable": 0,
        "return_unroutable_details": {
            "rate": 0.0
        }
    },
    "node": "rabbit@531a6aae224b",
    "object_totals": {
        "channels": 0,
        "connections": 0,
        "consumers": 0,
        "exchanges": 8,
        "queues": 2
    },
    "queue_totals": {
        "messages": 49314,
        "messages_details": {
            "rate": 0.0
        },
        "messages_ready": 49314,
        "messages_ready_details": {
            "rate": 0.0
        },
        "messages_unacknowledged": 0,
        "messages_unacknowledged_details": {
            "rate": 0.0
        }
    },
    "rabbitmq_version": "3.7.4",
    "rates_mode": "basic",
    "statistics_db_event_queue": 0
}

@danielnelson
Copy link
Contributor

@elatov Thanks for posting the example output. I am not aware of anyone who is working on this feature right now, is this something you would like to work on?

mcdoker18 added a commit to mcdoker18/telegraf that referenced this issue Jun 17, 2018
* new metrics:
  * unroutable messages
  * node uptime
  * gc metrics
  * mnesia metrics
  * node healthcheck
  * IO metrics
* refactoring tests:
  * moved the json examples to a separate files
  * check metric values

Signed-off-by: Vitalii Solodilov <mcdkr@yandex.ru>
mcdoker18 added a commit to mcdoker18/telegraf that referenced this issue Jun 17, 2018
* new metrics:
  * unroutable messages
  * node uptime
  * gc metrics
  * mnesia metrics
  * node healthcheck
  * IO metrics
* refactoring tests:
  * moved the json examples to a separate files
  * check metric values

Signed-off-by: Vitalii Solodilov <mcdkr@yandex.ru>
mcdoker18 added a commit to mcdoker18/telegraf that referenced this issue Jun 19, 2018
* new metrics:
  * unroutable messages
  * node uptime
  * gc metrics
  * mnesia metrics
  * node healthcheck
  * IO metrics
* refactoring tests:
  * moved the json examples to a separate files
  * check metric values

Signed-off-by: Vitalii Solodilov <mcdkr@yandex.ru>
mcdoker18 added a commit to mcdoker18/telegraf that referenced this issue Jun 19, 2018
* new metrics:
  * unroutable messages
  * node uptime
  * gc metrics
  * mnesia metrics
  * node healthcheck
  * IO metrics
* refactoring tests:
  * moved the json examples to a separate files
  * check metric values

Signed-off-by: Vitalii Solodilov <mcdkr@yandex.ru>
mcdoker18 added a commit to mcdoker18/telegraf that referenced this issue Jun 19, 2018
* new metrics:
  * unroutable messages
  * node uptime
  * gc metrics
  * mnesia metrics
  * node healthcheck
  * IO metrics
* refactoring tests:
  * moved the json examples to a separate files
  * check metric values

Signed-off-by: Vitalii Solodilov <mcdkr@yandex.ru>
mcdoker18 added a commit to mcdoker18/telegraf that referenced this issue Jun 19, 2018
* new metrics:
  * unroutable messages
  * node uptime
  * gc metrics
  * mnesia metrics
  * node healthcheck
  * IO metrics
* refactoring tests:
  * moved the json examples to a separate files
  * check metric values

Signed-off-by: Vitalii Solodilov <mcdkr@yandex.ru>
@zaharcelac
Copy link

Any plans to merge improvements by @mcdoker18 ?

@hanej
Copy link

hanej commented Jan 4, 2019

Bump

otherpirate pushed a commit to otherpirate/telegraf that referenced this issue Mar 15, 2019
* new metrics:
  * unroutable messages
  * node uptime
  * gc metrics
  * mnesia metrics
  * node healthcheck
  * IO metrics
* refactoring tests:
  * moved the json examples to a separate files
  * check metric values

Signed-off-by: Vitalii Solodilov <mcdkr@yandex.ru>
otherpirate pushed a commit to otherpirate/telegraf that referenced this issue Mar 15, 2019
* new metrics:
  * unroutable messages
  * node uptime
  * gc metrics
  * mnesia metrics
  * node healthcheck
  * IO metrics
* refactoring tests:
  * moved the json examples to a separate files
  * check metric values

Signed-off-by: Vitalii Solodilov <mcdkr@yandex.ru>
dupondje pushed a commit to dupondje/telegraf that referenced this issue Apr 22, 2019
* new metrics:
  * unroutable messages
  * node uptime
  * gc metrics
  * mnesia metrics
  * node healthcheck
  * IO metrics
* refactoring tests:
  * moved the json examples to a separate files
  * check metric values

Signed-off-by: Vitalii Solodilov <mcdkr@yandex.ru>
bitcharmer pushed a commit to bitcharmer/telegraf that referenced this issue Oct 18, 2019
* new metrics:
  * unroutable messages
  * node uptime
  * gc metrics
  * mnesia metrics
  * node healthcheck
  * IO metrics
* refactoring tests:
  * moved the json examples to a separate files
  * check metric values

Signed-off-by: Vitalii Solodilov <mcdkr@yandex.ru>
athoune pushed a commit to bearstech/telegraf that referenced this issue Apr 17, 2020
* new metrics:
  * unroutable messages
  * node uptime
  * gc metrics
  * mnesia metrics
  * node healthcheck
  * IO metrics
* refactoring tests:
  * moved the json examples to a separate files
  * check metric values

Signed-off-by: Vitalii Solodilov <mcdkr@yandex.ru>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/rabbitmq feat Improvement on an existing feature such as adding a new setting/mode to an existing plugin
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants