prometheus/web
newtonne 54930e0698 Add support for utf8 names on /v1/label/:name/values endpoint
Previously, the api was evaluating this regex to determine if the label
name was valid or not:

14bac55a99/model/labels.go (L94)

However, I believe that the `IsValid()` function is what ought to be
used in the brave new utf8 era.

**Before**

```
$ curl localhost:9090/api/v1/label/host.name/values
{"status":"error","errorType":"bad_data","error":"invalid label name: \"host.name\""}
```

**After**

```
$ curl localhost:9090/api/v1/label/host.name/values
{"status":"success","data":["localhost"]}
```

It's very likely that I'm missing something here or you were already
planning to do this at some point but I just encountered this issue and
figured I'd give it a go.
2024-09-19 19:47:36 +01:00
..
api/v1 Add support for utf8 names on /v1/label/:name/values endpoint 2024-09-19 19:47:36 +01:00
ui Merge pull request #14931 from prometheus/nexucis/autocomplete-topl 2024-09-19 18:12:59 +02:00
federate.go Move from golang.org/x/exp/slices into slices now that we only support Go >= 1.21 2024-02-28 14:54:53 +01:00
federate_test.go Enable perfsprint linter and fix up code 2024-05-15 17:51:05 +03:00
web.go mantine UI: Distinguish between Not Ready and Stopping 2024-09-17 16:02:16 +02:00
web_test.go mantine UI: Distinguish between Not Ready and Stopping 2024-09-17 16:02:16 +02:00