Question: how to use tag_limit for one specific metric?

I am using telegraf to export redis metrics, but I noticed ‘redis_total_commands_processed’ has too many label (see below), how can I reserve few of labels only? I discovered function ‘tag_limit’, but it is seems a global settings.

Is it possible to restrict redis_total_commands_processed return few labels only? Or Is it possible to do similar thing when prometheus scraping it?

Thank you

redis_total_commands_processed{aof_last_bgrewrite_status="ok",aof_last_write_status="ok",errorstat_ASK="count=89",errorstat_ERR="count=206272770",errorstat_MOVED="count=86950",errorstat_NOAUTH="count=321",errorstat_WRONGPASS="count=3",host="redis-c2-10.plat.jpa",latency_percentiles_usec_asking="p50=0.001,p99=4.015,p99.9=14.015",latency_percentiles_usec_auth="p50=3.007,p99=37.119,p99.9=99.327",latency_percentiles_usec_cluster_getkeysinslot="p50=2.007,p99=31.103,p99.9=94.207",latency_percentiles_usec_cluster_info="p50=30.079,p99=30.079,p99.9=30.079",latency_percentiles_usec_cluster_meet="p50=11.007,p99=11.007,p99.9=11.007",latency_percentiles_usec_cluster_nodes="p50=199.679,p99=473.087,p99.9=679.935",latency_percentiles_usec_cluster_replicate="",latency_percentiles_usec_cluster_setslot="p50=4.015,p99=544.767,p99.9=1155.071",latency_percentiles_usec_cluster_slots="p50=272.383,p99=696.319,p99.9=58458.111",latency_percentiles_usec_command="",latency_percentiles_usec_config_rewrite="p50=1794.047,p99=3145.727,p99.9=3145.727",latency_percentiles_usec_config_set="p50=7.007,p99=11.007,p99.9=11.007",latency_percentiles_usec_dbsize="p50=1.003,p99=18.047,p99.9=49.151",latency_percentiles_usec_del="p50=2.007,p99=31.103,p99.9=72.191",latency_percentiles_usec_exec="",latency_percentiles_usec_expire="p50=3.007,p99=30.079,p99.9=70.143",latency_percentiles_usec_function_list="p50=1.003,p99=1.003,p99.9=1.003",latency_percentiles_usec_function_restore="p50=4.015,p99=4.015,p99.9=4.015",latency_percentiles_usec_get="p50=1.003,p99=24.063,p99.9=59.135",latency_percentiles_usec_incr="p50=4.015,p99=32.127,p99.9=74.239",latency_percentiles_usec_info="p50=466.943,p99=4685.823,p99.9=13828.095",latency_percentiles_usec_latency_doctor="p50=28311.551,p99=64749.567,p99.9=64749.567",latency_percentiles_usec_migrate="p50=250.879,p99=851.967,p99.9=5373.951",latency_percentiles_usec_multi="",latency_percentiles_usec_pexpireat="",latency_percentiles_usec_ping="p50=1.003,p99=17.023,p99.9=51.199",latency_percentiles_usec_psync="p50=72.191,p99=72.191,p99.9=72.191",latency_percentiles_usec_publish="p50=327.679,p99=917.503,p99.9=1376.255",latency_percentiles_usec_quit="p50=1.003,p99=21.119,p99.9=61.183",latency_percentiles_usec_readonly="",latency_percentiles_usec_replconf="p50=1.003,p99=15.039,p99.9=43.007",latency_percentiles_usec_restore_asking="p50=2.007,p99=20.095,p99.9=46.079",latency_percentiles_usec_select="p50=0.001,p99=1.003,p99.9=1.003",latency_percentiles_usec_set="p50=7.007,p99=54.015,p99.9=124.415",latency_percentiles_usec_setex="p50=5.023,p99=45.055,p99.9=97.279",latency_percentiles_usec_setnx="p50=3.007,p99=37.119,p99.9=82.431",latency_percentiles_usec_subscribe="",master_failover_state="no-failover",master_host="",master_link_status="",maxmemory_policy="allkeys-lru",port="6382",rdb_last_bgsave_status="ok",redis_version="7.0.12",replication_role="master",server="localhost"} 6.6106576953e+10