mirror of
https://github.com/floci-io/floci.git
synced 2026-12-02 09:47:56 -05:00
Part 1 of #7030. GetSeries (/api/v1/series) and GetLabels (/api/v1/labels, /api/v1/label/<name>/values) answer over the metrics the OTLP endpoint ingests, with the labels, selector syntax, limits and Prometheus envelope the CloudWatch user guide's PromQL pages give. Regular expressions are RE2's, as Prometheus's are. The guide's "IAM permissions for PromQL" table is vendored by a new fetcher and read by the authorized-actions generator, so the operations are checked as cloudwatch:ListMetrics, and QueryMetrics carries cloudwatch:ListMetrics as a companion every request needs, which the enforcement filter checks. @IamOperation can name a method's operation. The OTLP 40 KB metadata limit counts the resource and scope schema URLs, which PromQL reads as labels of the series.