Skip to content

Provide zones and endpoints (ex local) stats via /v1/status - #6499

Open
Al2Klimov wants to merge 3 commits into
masterfrom
feature/cluster-stats
Open

Provide zones and endpoints (ex local) stats via /v1/status#6499
Al2Klimov wants to merge 3 commits into
masterfrom
feature/cluster-stats

Conversation

@Al2Klimov

Copy link
Copy Markdown
Member

No description provided.

@Al2Klimov
Al2Klimov force-pushed the feature/cluster-stats branch 2 times, most recently from 379efe5 to 3f0f133 Compare August 1, 2018 13:25
@Al2Klimov
Al2Klimov requested a review from dnsmichi August 1, 2018 14:22
@dnsmichi

dnsmichi commented Aug 2, 2018

Copy link
Copy Markdown
Contributor

Windows builds are failing with

"C:\projects\icinga2\build\PACKAGE.vcxproj" (default target) (1) ->
"C:\projects\icinga2\build\ALL_BUILD.vcxproj" (default target) (3) ->
"C:\projects\icinga2\build\test\boosttest-test-base.vcxproj" (default target) (8) ->
"C:\projects\icinga2\build\lib\icinga\icinga.vcxproj" (default target) (10) ->
"C:\projects\icinga2\build\lib\remote\remote.vcxproj" (default target) (12) ->
(ClCompile target) -> 
  c:\projects\icinga2\lib\remote\statsreporter.cpp(45): error C2280: 'std::atomic_flag::atomic_flag(const std::atomic_flag &)': attempting to reference a deleted function [C:\projects\icinga2\build\lib\remote\remote.vcxproj]

@Al2Klimov
Al2Klimov force-pushed the feature/cluster-stats branch 4 times, most recently from 3d64536 to 30016a6 Compare August 2, 2018 12:38
@Al2Klimov

Copy link
Copy Markdown
Member Author
$ curl .../v1/status/ClusterStats |python -mjson.tool
{
    "results": [
        {
            "name": "ClusterStats",
            "perfdata": [],
            "status": {
                "cluster": {
                    "node1": {
                        "endpoints": {
                            "node2": {
                                "connected": true,
                                "last_message_received": 1533213463.691841
                            }
                        },
                        "mtime": 1533213470.259481,
                        "uptime": 117.08613300323486,
                        "version": "v2.9.1-40-g30016a662"
                    },
                    "node2": {
                        "endpoints": {
                            "node1": {
                                "connected": true,
                                "last_message_received": 1533213453.690339
                            },
                            "node3": {
                                "connected": true,
                                "last_message_received": 1533213463.13135
                            }
                        },
                        "mtime": 1533213463.690132,
                        "uptime": 110.51873183250427,
                        "version": "v2.9.1-40-g30016a662"
                    },
                    "node3": {
                        "endpoints": {
                            "node2": {
                                "connected": true,
                                "last_message_received": 1533213453.69121
                            }
                        },
                        "mtime": 1533213463.129759,
                        "uptime": 110.31669497489929,
                        "version": "v2.9.1-40-g30016a662"
                    }
                }
            }
        }
    ]
}

Comment thread lib/remote/statsreporter.cpp Outdated
Comment thread lib/remote/statsreporter.cpp Outdated
Comment thread lib/remote/zone.cpp Outdated
Comment thread lib/remote/zone.cpp
@Al2Klimov
Al2Klimov force-pushed the feature/cluster-stats branch 3 times, most recently from 9f0735b to 86fe578 Compare August 6, 2018 07:23
@Al2Klimov
Al2Klimov requested a review from dnsmichi August 6, 2018 07:44
@dnsmichi dnsmichi added the TBD To be defined - We aren't certain about this yet label Feb 11, 2019
@dnsmichi

Copy link
Copy Markdown
Contributor

@lippserd this was considered for IcingaDB a while ago, needs a decision on proceeding.

@dnsmichi dnsmichi added area/api REST API area/distributed Distributed monitoring (master, satellites, clients) stalled Blocked or not relevant yet labels May 10, 2019
@Al2Klimov Al2Klimov added this to the 2.13.0 milestone Nov 23, 2020
@Al2Klimov
Al2Klimov requested review from lippserd and removed request for dnsmichi December 14, 2020 18:10
@lippserd
lippserd removed their request for review January 13, 2021 09:12
@julianbrost julianbrost modified the milestones: 2.13.0, 2.14.0 May 31, 2021
@Al2Klimov

Copy link
Copy Markdown
Member Author

@cla-bot check

@cla-bot cla-bot Bot added the cla/signed label Aug 4, 2021
@Al2Klimov Al2Klimov added the enhancement New feature or request label Aug 10, 2021
@julianbrost julianbrost removed this from the 2.14.0 milestone Jan 12, 2023
@Al2Klimov
Al2Klimov force-pushed the feature/cluster-stats branch 3 times, most recently from 16def46 to 663916c Compare May 22, 2023 11:18
@Al2Klimov
Al2Klimov force-pushed the feature/cluster-stats branch from 663916c to 9f1541c Compare January 31, 2025 15:58
@Al2Klimov

Copy link
Copy Markdown
Member Author

Just trivially rebasing some PRs allowing to do so (regardless of their status!) to run GHA at all for the green checkmark. Please don't wonder. It's weekend after all soon, so no one gets blocked...

@Al2Klimov
Al2Klimov force-pushed the feature/cluster-stats branch from 9f1541c to 78c26f0 Compare May 28, 2025 15:35
@Al2Klimov
Al2Klimov force-pushed the feature/cluster-stats branch 2 times, most recently from 3b81d1c to 6ff45b1 Compare November 7, 2025 12:16
@Al2Klimov Al2Klimov changed the title WIP: Provide zones and endpoints (ex local) stats via /v1/status Provide zones and endpoints (ex local) stats via /v1/status Aug 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/api REST API area/distributed Distributed monitoring (master, satellites, clients) cla/signed enhancement New feature or request stalled Blocked or not relevant yet TBD To be defined - We aren't certain about this yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants