Skip to content

[RFC] [Remote Store] Remote Store Stats API #7153

@linuxpi

Description

@linuxpi

Is your feature request related to a problem? Please describe.
#6789 talks about adding stats related to Remote Store. This will help us identify how we are performing with Remote Store enabled indices. We need Rest API to expose these stats to provide visibility into how the Remote Store enabled indices are performing.

Scope of this issue is to add required API(s) for exposing Remote Store related stats

Describe the solution you'd like

GET /_remote_store/stats/<index>/<shardId>
{
      "shard_id" : "[my-index-1][0]",
      "local_refresh_timestamp_in_millis" : 196439653,
      "local_refresh_cumulative_count" : 0,
      "remote_refresh_timestamp_in_millis" : 196439653,
      "remote_refresh_cumulative_count" : 0,
      "bytes_lag" : 0,
      "rejection_count" : 0,
      "consecutive_failure_count" : 0,
      "total_remote_refresh" : {
        "started" : 0,
        "succeeded" : 0,
        "failed" : 0
      },
      "total_uploads_in_bytes" : {
        "started" : 0,
        "succeeded" : 0,
        "failed" : 0
      },
      "remote_refresh_size_in_bytes" : {
        "last_successful" : 0,
        "moving_avg" : 0.0
      },
      "upload_latency_in_bytes_per_sec" : {
        "moving_avg" : 0.0
      },
      "remote_refresh_latency_in_nanos" : {
        "moving_avg" : 0.0
      }
}

Index Level Stats

GET /_remote_store/stats/<index>
[
  {
     "shardId": <>,
     ...
  },
  {
     "shardId": <>,
     ...
  }
  ...
]

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

Metadata

Metadata

Assignees

Labels

RFCIssues requesting major changesStorage:DurabilityIssues and PRs related to the durability frameworkenhancementEnhancement or improvement to existing feature or request

Type

No type

Projects

Status

✅ Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions