Metrics

Metrics is organized around who sends the data. The Sources screen lists every host and service with its health, a host or service page shows its resources and request signals, Explore queries any metric grouped the way you need, and the Catalog lists everything that is being sent. Rebuilt from scratch in LogTide 1.8.0.

Overview

Open Metrics in the sidebar (keyboard shortcut g m). The page has three views, and all of them follow the project scope and the time range at the top:

Sources

Every host and service that sends metrics, across all projects of the organization, with status and key signals.

Explore

Several metrics in one chart, filters, group by, formulas, comparison with an earlier period, and alerts.

Catalog

Every metric with its type, unit, description, attributes and the sources that send it.

Metrics are no longer averaged across hosts. Every chart can be split by host or by any other resource attribute, so three servers show as three lines instead of one mixed line.

What to Send

LogTide receives metrics over OTLP at POST /v1/otlp/metrics, with your project API key in the X-API-Key header. Setup, supported encodings and SDK examples are on the OpenTelemetry page. Hosts can also be covered without any instrumentation by the hardware agent, which sends system.* resource metrics (CPU, memory, disks, network, load) and hw.* health metrics through the same endpoint.

Two resource attributes decide what shows up on the Sources screen:

Resource attribute Becomes Notes
host.nameA hostSet by the hardware agent. For the OpenTelemetry Collector, the hostmetrics receiver with a resource detection processor sets it.
service.nameA serviceSet by every OpenTelemetry SDK. A service that only sends host-level metrics (system.* or hw.*, like the hardware agent) is not listed as a service.

One data point can carry both. An application running on a VPS sends service.name for the app and host.name for the machine, and LogTide links the two: the host page lists its services and the service page lists its hosts.

Metrics without a host.name

Data without host.name and without service.name does not appear on the Sources screen, but the metrics stay available in Explore and in the Catalog.

Sources

The first screen of Metrics lists every source in one table per kind, Hosts and Services. It covers all projects in the scope bar (every project of the organization when nothing is selected). The worst status sorts first, and every status other than healthy says why.

Kind Columns
HostsStatus, host name (with the operating system), Hardware status, CPU, Memory, Disk (the fullest filesystem), Network, Load 5m, CPU trend, Services, Last seen. CPU, memory and disk show a colored meter and a trend.
ServicesStatus, service name, Requests/s, Errors, p95, Hosts, RED source, Last seen. Requests, errors and p95 come with sparklines.

On narrow screens some columns (load, trend, services, hosts, RED source) are hidden. The same facts are on the host or service page.

Status and reasons

The status of a host is the worst of its signals. A service is judged on its error rate and on whether it still sends data.

Status Rule Reason shown
CriticalHost: CPU at 95% or more, memory at 95% or more, fullest disk at 90% or more, or hardware health critical. Service: error rate at 5% or more.For example "Disk at 93%", "CPU at 97%", "Error rate at 6.2%", "Hardware: ..." with the most severe finding.
WarningHost: CPU or memory at 85% or more, fullest disk at 80% or more, or hardware health warning. Service: error rate at 1% or more.Same format as above.
HealthySending data and no threshold is crossed.None.
No dataNo data point for more than 10 minutes."No data for 14 min", in minutes, hours or days.
UnknownA host that sends no CPU, memory or disk metrics and no healthy hardware status, so there is nothing to judge."No CPU, memory or disk metrics".

The thresholds are fixed. Stale or unknown hardware health never downgrades a host that is sending fresh data. A host that is also a hardware host shows its hardware status in the Hardware column, with a VM state for virtual machines that have no sensors.

Status tiles and filters

The tiles above the tables count the sources of the selected kind: All (or Hosts or Services), Critical, Warning, Healthy, No data and, when there is at least one, Unknown. Click a tile to filter the tables by that status, click it again to clear. The All / Hosts / Services chips pick the kind, and the search box filters by name, operating system or service. The kind and status filters are kept in the URL.

Host Page

Click a host to open it. The header shows the status and its reason and, from the data the host sends, the operating system, number of CPUs, memory, uptime, agent version and the projects it sends to. With hardware agent 1.2.0 or later the operating system is the pretty name from os-release (for example Debian GNU/Linux 12 (bookworm)) and the CPU count is shown. Older agents show the kernel version. Below the header, tiles show CPU, memory, 5 minute load, the fullest disk and network throughput.

Open in Explore opens the source's metrics in the explorer, and Customize saves the page as a dashboard. The tab is kept in the URL.

Tab Shows
ResourcesCPU by state, memory, load average, swap, filesystems by mountpoint, disk throughput and operations, and network throughput. Panels appear only for metrics the host actually sends.
HardwareThe hardware health view of the host: components, findings, collectors and events. This is the former Monitor → Hardware host page, see Hardware Health. A host without hardware data shows how to install the agent.
ServicesThe services running on the host.
LogsLogs of the host.
TracesRequests, errors and p95 of the entry spans that carry this host as host.name.
Metrics (n)A link to the Catalog filtered on this host, with the number of metrics it sends.

Hardware Health keeps its place in the navigation: Monitor → Hardware still lists every host with its hardware status, components and findings, now across all projects in scope, and a host there opens the Hardware tab of its page in Metrics.

Service Page

The service page has the same header, and tiles for requests, errors, p95 latency, hosts and the number of metrics. Its tabs are Overview (requests, errors and latency charts, plus the service's other metrics), Hosts (the hosts it runs on), Logs, Traces, and the Metrics (n) link to the Catalog.

Where requests, errors and p95 come from

The three RED signals (requests per second, error rate, p95 duration) are computed from one of two places, and the RED source column says which one:

  • From traces. When the service has spans in the time window, the signals come from its entry spans (server and consumer spans, one per handled request). The error rate is the share of entry spans with an error.
  • From HTTP metrics. Without spans, the signals come from the http.server.request.duration histogram, or the older http.server.duration. Requests per second is the rate of the histogram count, p95 is its 95th percentile, and the error rate is the share of requests with a status code of 500 or more (http.response.status_code, or the older http.status_code).

A service with neither shows "No request data" and a hint to send traces or HTTP server metrics. Its other metrics are still available.

Explore

Explore queries any metric from any source. Pick a metric to start, or open the Catalog to see what is available. The help button next to the query builder lists the pieces of a query.

Queries and Filters

A chart holds up to 6 queries, lettered A to F (use Add query). Each query reads one metric, and the queries draw in the same chart. Every query has an optional label, can be hidden (it is still computed, which is useful for formulas), and can be removed.

A query can be narrowed with up to 10 filters and split with up to 3 group by attributes. Attributes come in two kinds, and the editor asks which one you mean:

  • Source attributes are the resource attributes: who sent the data, such as host.name, service.name or k8s.pod.name.
  • Data point attributes describe the value itself: the CPU state, a mountpoint, an HTTP route or status code.

Keys are literal, so host.name is one key and not a path. The filter operators are is, is not, is one of, is not one of, exists, does not exist, >= and <. The negative operators also match data points that do not have the attribute at all. When a metric has no group by yet, suggestions under the query offer one-click breakdowns by the attributes it carries.

When you group by a source attribute (host.name, service.name, service.instance.id, or any container.* or k8s.* key), the chart switches to Split by default: one small chart per source, on a shared y axis. Other groupings default to Lines. The display toggle also offers Area, Bars, Stat (the last value per series) and Table (min, avg, max and last per series). Your choice sticks.

Time and space aggregation

An aggregation happens in two steps, and you can set both:

  • Time aggregation combines the points of one series inside each interval: avg, sum, min, max, count, last, rate (per second change of a counter), and the percentiles p50, p95, p99 (for histograms).
  • Space aggregation combines the series that end up in the same group: avg, sum, min or max. It is under More options of the query, labelled Combine series with.

The default space aggregation follows the time aggregation: sum for sum, count and rate, min for min, max for max and the percentiles, and avg otherwise. So the network rate of a host is the sum of its interfaces, while the fullest disk is the max of its mountpoints.

The Interval is Auto by default, which picks 1 minute, 5 minutes, 15 minutes, 1 hour, 6 hours or 1 day to give roughly 60 to 120 points. An interval that would give too many points for the range falls back to Auto, with a warning.

Top N and Other

A grouped query keeps the top N series by average value, 10 by default and 50 at most (the Top N field of the query). The remaining series are folded into one series named Other, combined with the query's space aggregation. The result shows how many series there were before the cut.

If a query produces too many raw series, LogTide aggregates it in one step instead and adds a warning to the result. Narrow the query with a filter or a more specific group by if you see it.

Formulas

Add formula (up to 4, named F1 to F4) combines queries with numbers, the query letters, + - * / and parentheses. Series are joined on identical group labels, and a single ungrouped operand is applied to every series of the other one. A missing operand or a division by zero gives no value for that point.

For example, the share of failed requests per service, with query A as the request rate of http.server.request.duration filtered on http.response.status_code >= 500 and query B as the same metric without the filter, both grouped by service.name:

A / B * 100

A formula keeps a unit only when every operand has the same one. Hide A and B to chart only the result. A formula can be hidden, labelled and used by an alert like any query.

Compare, refresh and sharing

  • Compare to: No comparison, Previous hour, Previous day or Previous week. The earlier period is drawn as a dashed copy of each visible series, shifted onto the current window.
  • Auto refresh next to the refresh button: Off, 30s, 1m or 5m. It is off by default.
  • Copy link copies a URL that holds the whole query, including filters, formulas and display, and the project scope. Anyone with access to the project opens the same chart.
  • Add to dashboard saves the query as a metrics panel of a dashboard, see Custom Dashboards.
  • Create alert turns the query into an alert rule, see Metric Alerts.
  • Clicking a series in the chart drills down into that series.

Catalog

The Catalog lists every metric your sources send, one row each, with its Name, Type (gauge, sum, histogram, exponential histogram or summary), Unit, Projects, Last seen and Description. Search by name, filter by name prefix (system, http, hw and so on), or arrive from the Metrics (n) link of a host or service to see only that source's metrics.

Select a metric to open its details:

  • The type, unit, whether a sum is monotonic, the projects that send it, and when it was first and last seen.
  • Resource attributes and Metric attributes with sample values. These are the keys you can filter and group by in Explore.
  • Sources that send the metric.
  • Used in dashboards, the dashboards whose panels read it.

From the details you can open the metric in Explore. The catalog is filled as metrics arrive, so a new metric shows up shortly after its first batch.

Customize a Source View

The Resources tab of a host and the Overview tab of a service are built from the same panels as a custom dashboard. The Customize button in the page header saves that view as a real dashboard with one click and opens it:

  • It keeps every panel that applies to the source, so panels for metrics the source does not send are left out.
  • It gets a host or service selector at the top, set to the source you came from. The selection is stored in the URL, so a link opens the same host.
  • The dashboard is yours to edit: rearrange panels, change queries, and add panels from any other source. An app and its VPS can share one page.

Dashboards also support a project variable that scopes every panel reading all projects, and the metrics panel, which runs any Explore query across several projects and shows a live preview while you edit it. Existing metric chart and metric stat panels are converted to metrics panels automatically. Customizing counts toward the custom dashboard limit of your organization, see Usage & Metering.

Metric Alerts

A metric alert watches the result of an Explore query. Build the query, click Create alert, and fill in the dialog. The dialog is prefilled from the query: the name, a starting threshold from the current data and, when the query has several queries or formulas, a Watch selector to pick the one the rule follows. A chart of the last hour with the threshold line shows what the rule would see.

Field Meaning
Condition and thresholdAbove or below a number, in the unit of the metric (for example percent, bytes or milliseconds). The comparison is strict.
WindowLast 1 minute, 5 minutes, 15 minutes or 1 hour. The value that is compared is the average of the complete one-minute buckets in the window, using the aggregation of the query inside each bucket.
For (checks in a row)1 to 10. The alert fires after the condition holds for this many consecutive checks, and resolves on the first check where it does not. Checks run every minute.
SeverityThe severity of the alert and of its incident.
Re-notify while firingNever, or every 15 minutes, 30 minutes, 1 hour, 4 hours or 1 day.
Notification channelsThe channels that receive the alert, as for any other alert rule.

Per group

When the query is grouped, the condition applies to each group separately and each firing group is its own alert instance, labelled with its group. All groups of the query are evaluated before any ranking, so a breaching host is never hidden by the top N cut. A rule tracks at most 50 groups: when more are breaching, the most extreme ones (highest for above, lowest for below) get an instance. There is one incident per rule, named after the firing groups and resolved when the last group resolves. The incident shows the groups, their values and a chart.

When there is no data

A check where a group has no data is neither a breach nor a recovery. The alert keeps its state and nothing is sent. Data coming back resets the count. If a group sends nothing for at least 10 checks in a row and at least one hour, a firing alert is resolved with the reason "no data", and one that was only counting breaches is cleared. To be told when a machine stops sending, use a heartbeat monitor instead, as described in Hardware Health.

Same lifecycle as other alerts

  • Metric rules appear on the Alerts page with a Metric badge and a summary, and can be edited or copied.
  • Notifications, incidents, snooze, re-notify and webhooks work as for the other alert rules.
  • A metric rule counts toward the alert rule limit of your organization, see Usage & Metering.

Units and Semantics

Units

The unit and description a metric is sent with over OTLP are stored in the Catalog and used everywhere: axes, legends, tables, tiles and alert thresholds format bytes, byte rates, durations, temperatures, percentages and ratios accordingly. Units are UCUM-like strings such as By, By/s, s, ms, %, 1 and Cel. An unknown unit is shown as sent. If the same metric name arrives with different units from different projects, the first non-empty one is used.

Histograms

For histogram metrics, percentiles, averages, counts and rates are computed from the bucket counts, not from the running sum. The percentile is interpolated inside the bucket that holds the rank, so its precision is that of the bucket bounds your SDK uses. The overflow bucket reads as its lower bound. Space aggregation merges the histograms of the series in a group before the percentile is taken.

  • Cumulative histograms are turned into per-interval deltas. A drop in the counts is treated as a counter reset, and the new snapshot is used as the delta.
  • Delta histograms are summed per interval.
  • Exponential histograms are converted to a fixed bucket grid when they are received. Negative values are folded into the lowest bucket and read as 0 in percentiles.

Counters and temporality

LogTide reads the OTLP aggregation temporality of sums and histograms. A cumulative counter becomes a rate from the difference between consecutive points, divided by the seconds between them. A negative difference is a counter reset (a restart), and the new value is used as the increase, so a restart does not show as a negative rate. A delta counter is summed per interval and divided by the interval length. When the temporality is not known, a monotonic sum is read as cumulative and any other sum as delta.

Use the rate aggregation on counters such as requests, bytes or errors. The first point of a cumulative series has no rate, because there is nothing to subtract yet.

Troubleshooting

No hosts show up

  1. Hosts are listed by the resource attribute host.name. Check in Explore, grouping a metric by Source attribute host.name, that the value is there.
  2. Check the scope bar and the time range. Only the selected projects and a window that contains data are listed.
  3. For the hardware agent, run it once in the foreground as described in Hardware Health and read its output. A 401 means the API key is wrong.
  4. Allow a minute or two after the first batch.

A service is missing or shows no request data

Services are listed by service.name. A service that only sends system.* or hw.* metrics is treated as an agent and is not listed. For requests, errors and p95, send traces from the service or HTTP server metrics (http.server.request.duration), see above.

Everything is averaged into one line

A query without a group by returns one series for the whole query. Add a Group by on the Source attribute host.name or service.name, or click one of the suggested breakdowns. Check the Combine series with setting too: it decides whether the series of a group are averaged, summed, or reduced to their min or max.

Units are missing

The unit comes from the OTLP metric definition, so an SDK or collector that sends no unit gives a plain number. Set the unit in the instrumentation. The Catalog shows what was received. A metric that was sent before 1.8.0 has no unit until it arrives again with one.

A percentile looks too coarse

Percentiles of a histogram are interpolated inside its buckets. If the values fall into a few wide buckets, configure finer explicit bucket bounds in the SDK, or use exponential histograms.

Esc

Type to search across all documentation pages