You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I had a look at the source code and it appears that metrics have four common labels and some unique, per-check labels. These do not appear to be customizable.
// GrafanaCloud loki limits log entries to 15 labels.
Logs have seven common labels. Labels added to a check are passed to logs generated by the check in label_NAME format. For example, if I add env=dev to an HTTP check, logs produced by that check will have a label_env=dev label.
Would it be possible to extend the same functionality to metrics?
As is, we're unable to intelligently query any of the metrics generated by checks beyond what is available via the built-in labels. We can't group or filter by region, environment, etc.
I had a look at the source code and it appears that metrics have four common labels and some unique, per-check labels. These do not appear to be customizable.
synthetic-monitoring-agent/internal/scraper/scraper.go
Line 369 in 24dfd70
synthetic-monitoring-agent/internal/scraper/scraper.go
Line 328 in 24dfd70
Logs have seven common labels. Labels added to a check are passed to logs generated by the check in
label_NAME
format. For example, if I addenv=dev
to an HTTP check, logs produced by that check will have alabel_env=dev
label.Would it be possible to extend the same functionality to metrics?
As is, we're unable to intelligently query any of the metrics generated by checks beyond what is available via the built-in labels. We can't group or filter by region, environment, etc.
Example metric labels:
probe_http_duration_seconds{}
Example log labels:
The text was updated successfully, but these errors were encountered: