---
title: "Metrics | wasmCloud"
description: "How to get aggregate data on the availability and performance of a lattice"
canonical: "https://wasmcloud.com/docs/v1/deployment/observability/metrics/"
---

This is documentation for wasmCloud **v1**, which is no longer actively maintained.

For up-to-date documentation, see the **[latest version](https://wasmcloud.com/docs/)** (v2).

Version: v1

# Metrics

The wasmCloud host can export metrics using the [OpenTelemetry](https://opentelemetry.io/) (OTEL) specification.

For more information on wasmCloud's implementation of OpenTelemetry, including advanced configuration options, see [Observability with OpenTelemetry](https://wasmcloud.com/docs/v1/deployment/observability/observability-with-opentelemetry/).

### Configuration

By default, metrics are disabled in the wasmCloud host. The host can be configured using [environment variables or host config flags](https://wasmcloud.com/docs/v1/cli/wasmcloud/).

To enable all OTEL signals, including metrics, use the `WASMCLOUD_OBSERVABILITY_ENABLED` environment variable:

bash

```bash
WASMCLOUD_OBSERVABILITY_ENABLED="true"
```

To enable only metrics, use the `WASMCLOUD_METRICS_ENABLED` environment variable:

bash

```bash
WASMCLOUD_METRICS_ENABLED="true"
```

By default, wasmCloud hosts export signals via HTTP/OpenTelemetry Protocol (`otlp`) on port 4318.

The endpoint for metrics exports may be overwritten with the `OTEL_EXPORTER_OTLP_METRICS_ENDPOINT` environment variable:

bash

```bash
OTEL_EXPORTER_OTLP_METRICS_ENDPOINT=http://my-custom-host:4318
```

See the [host config](https://wasmcloud.com/docs/v1/cli/wasmcloud/) options for equivalent host configuration CLI flags.

# Format

Metrics are exported in [OpenTelemetry format](https://wasmcloud.com/docs/v1/deployment/observability/observability-with-opentelemetry/). The [OTEL collector](https://opentelemetry.io/docs/collector/) converts OTEL-formatted metrics to [Prometheus format](https://prometheus.io/docs/concepts/data_model/) for use with Prometheus systems.

### Metric options

The following specific metrics are included with wasmCloud:

- **Actors**:
  - Time to handle invocation in nanoseconds (`wasmcloud_host.handle_rpc_message.duration`)
  - Count of the number of invocations (`wasmcloud_host.actor.invocations`)
    - Count of errors (`wasmcloud_host.actor.errors`)

User feedback and proposals for specific metrics is encouraged—[join the Slack](https://slack.wasmcloud.com/) or [open an issue](https://github.com/wasmCloud/wasmCloud/issues) to discuss your ideas.

### Viewing metrics with Grafana and Prometheus

A set of sample configurations and Docker Compose files are available to help launch a local observability environment. After following the instructions to [**launch a wasmCloud observability ecosystem**](https://wasmcloud.com/docs/v1/deployment/observability/observability-with-opentelemetry/#launch-a-wasmcloud-observability-ecosystem), there are two different ways to query metrics emitted by the wasmCloud host:

- **Prometheus' built-in query interface** at [http://localhost:9090/graph](http://localhost:9090/graph).
- **Grafana's "Explore" interface** at [http://localhost:5050/explore](http://localhost:5050/explore). Once you are in the "View," select "Prometheus" from the dropdown on the top-left corner and under the "Metric" field select the metric you would like to explore.

Depending on what you are trying to accomplish with the metrics, one or the other interface may be a better fit for you.

- If you are in the process of emitting new metrics, or you are interested in exploring the metrics in a Prometheus-native interface, the Prometheus built-in query interface is probably the better fit.
- If you are interested in seeing how the metrics would look in an interface that you might use in production, or you are looking to develop a metrics dashboard, the Grafana interface is the better fit.

Refer to the environment variables in the [Docker Compose file](https://github.com/wasmCloud/wasmCloud/blob/main/examples/docker/docker-compose-otel.yml) for a complete example configuration. The example uses Grafana and Prometheus, but wasmCloud works with any OTEL-compatible backend.

Last updated on **Jun 10, 2026** by **Liam Randall**
