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

feat: add getting cluster collection stats api #27

Merged
merged 4 commits into from
Dec 13, 2024
Merged

Conversation

silenceqi
Copy link
Contributor

What does this PR do

  • add api collection stats to visit current cluster metric collection stats
    GET /elasticsearch/:cluster_id/_collection_stats
    {
    "cluster_health": {
    "last_active_at": 1734008183649,
    "status": "ok"
    },
    "cluster_id": "infini_default_system_cluster",
    "cluster_stats": {
    "last_active_at": 1734008183707,
    "status": "ok"
    },
    "index_stats": {
    "last_active_at": 1734008183743,
    "status": "ok"
    },
    "metric_collection_mode": "agentless",
    "node_stats": {
    "last_active_at": 1734008183698,
    "status": "ok"
    }
    }

  • fix empty index metrics in overview info api when collection mode is agentless

Rationale for this change

Standards checklist

  • The PR title is descriptive
  • The commit messages are semantic
  • Necessary tests are added
  • Performance tests checked, no obvious performance degradation
  • Necessary documents have been added if this is a new feature

Copy link
Contributor

@luohoufu luohoufu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@luohoufu luohoufu merged commit 5a02966 into main Dec 13, 2024
3 checks passed
@luohoufu luohoufu deleted the fix-overview branch December 13, 2024 06:30
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