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

[FEATURE] Add leader_alias to autofollower status #1423

Open
tmanninger opened this issue Aug 1, 2024 · 1 comment
Open

[FEATURE] Add leader_alias to autofollower status #1423

tmanninger opened this issue Aug 1, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@tmanninger
Copy link

Is your feature request related to a problem?
The output auf the "API" '_plugins/_replication/autofollow_stats' does not return the name of the leader_alias

What solution would you like?
See "leader_alias"

curl -XGET -u 'admin:<custom-admin-password>' -k 'https://localhost:9200/_plugins/_replication/autofollow_stats'

{
   "num_success_start_replication": 1,
   "num_failed_start_replication": 0,
   "num_failed_leader_calls": 0,
   "failed_indices":[
      
   ],
   "autofollow_stats":[
      {
         "name":"my-replication-rule",
         "pattern":"movies*",
         "leader_alias": "my-connection-alias"   <--- add this line to the API output
         "num_success_start_replication": 1,
         "num_failed_start_replication": 0,
         "num_failed_leader_calls": 0,
         "failed_indices":[
            
         ]
      }
   ]
}
@tmanninger tmanninger added enhancement New feature or request untriaged labels Aug 1, 2024
@ankitkala
Copy link
Member

Thanks for the issue. Should be a small change. Please feel free to open a PR.

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

No branches or pull requests

2 participants