How to see how many times a shard has failed to be allocated currently

I want to see how many times a shard has failed to be allocated, so I can speculate whether the unsuccessful allocation of previous shards is related to the index.allocation.max_retries limit being reached.