I have a metric which has a tag with lots of different values (the value is a file name). How can I create a query that determines the number of different values of that tag exist on a metric?
For example if 4 metrics are received during a time frame, with the following tags "file_name:dir/file1", "file_name:dir/file2", "file_name:dir/file3", "file_name:dir/file1"
I want the query to return the value 3, since of all the metrics received during this timeframe there were 3 distinct values for the file_name tag.