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

Serve broker diagnostics over HTTP #2525

Merged
merged 3 commits into from
May 8, 2015
Merged

Serve broker diagnostics over HTTP #2525

merged 3 commits into from
May 8, 2015

Conversation

otoolep
Copy link
Contributor

@otoolep otoolep commented May 8, 2015

Add diagnostic endpoint to broker.

@otoolep
Copy link
Contributor Author

otoolep commented May 8, 2015

Example output:

{
    "isLeader": true,
    "clusterID": 2845091057032640500,
    "path": "/home/philip/.influxdb/broker",
    "index": 22,
    "topics": {
        "/home/philip/.influxdb/broker/0": {
            "id": 0,
            "path": "/home/philip/.influxdb/broker/0",
            "open": true,
            "truncated": false,
            "index": 17,
            "indexByURL": {
                "http://localhost:8086": 17
            },
            "maxSegmentSize": 10485760
        },
        "/home/philip/.influxdb/broker/1": {
            "id": 1,
            "path": "/home/philip/.influxdb/broker/1",
            "open": true,
            "truncated": false,
            "index": 18,
            "indexByURL": {
                "http://localhost:8086": 18
            },
            "maxSegmentSize": 10485760
        }
    },
    "maxTopicSize": 52428800
}

@otoolep
Copy link
Contributor Author

otoolep commented May 8, 2015

These numbers will allow us to determine how many messages have been written to each broker, and where each subscriber is within each topic.

@toddboom
Copy link
Contributor

toddboom commented May 8, 2015

+1

otoolep added a commit that referenced this pull request May 8, 2015
Serve broker diagnostics over HTTP
@otoolep otoolep merged commit 934a5be into master May 8, 2015
@otoolep otoolep deleted the broker_stats branch May 8, 2015 23:57
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

Successfully merging this pull request may close these issues.

2 participants