Metrics Explore And Query
A 3-step recipe with Logz.io. We can help you get access.
Recipe · 3 steps
Metrics Explore And Query
with Logz.io
List label names, list matching series, then run an instant query.
- Retrieve all label names over the supplied time window to discover what can be queried.
- List the time series that match the supplied selector within the time window.
- Evaluate the supplied Prometheus expression query at a single point in time.
What you'll need to have ready
- apiToken: Logz.io API token sent in the X-API-TOKEN header.
- start: Start timestamp (RFC3339 or Unix) for label and series lookups.
- end: End timestamp (RFC3339 or Unix) for label and series lookups.
- matchSelector: Prometheus series selector, e.g. up or {job="api"}.
- promQuery: Prometheus expression query string to evaluate at an instant.
For your developer
Arazzo workflow logz-io:explore-metrics, 3 operations: GetLabelNames → GetSeriesByLabels → GetInstantQuery. Specs on APIs.io.