prometheus/promql
newtonne 88675710f9 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.

Signed-off-by: Owen Williams <owen.williams@grafana.com>
2024-11-25 11:48:45 -05:00
..
fuzz-data
parser
promqltest Round function should ignore native histograms 2024-10-17 15:39:48 +11:00
bench_test.go
engine.go
engine_internal_test.go
engine_test.go
functions.go
functions_internal_test.go
functions_test.go
fuzz.go
fuzz_test.go
histogram_stats_iterator.go
histogram_stats_iterator_test.go
info.go [FEATURE] PromQL: Add experimental info function MVP (#14495) 2024-10-16 13:52:11 +01:00
info_test.go
promql_test.go Refactor engine creation in tests 2024-07-14 13:58:51 +02:00
quantile.go
quantile_test.go PromQL: ignore small errors for bucketQuantile (#13153) 2023-11-25 00:05:38 +01:00
query_logger.go chore!: adopt log/slog, remove go-kit/log 2024-10-07 15:58:50 -04:00
query_logger_test.go
value.go
value_test.go