In this code here: https://github.com/redis/redis-py/blob/v7.1.0/redis/commands/core.py#L4738-L4778 This can only be done if start/end are passed as a string or as ...
as a relabel config to the corresponding scrape config. As per the regex value, only pods with "redis" in their name will be relabelled as such. Similar approaches can be taken with other role types ...