Skip to content
Concepts · Integrations Intermediate

Environments

One integration, read and alerted on per environment - where the environment comes from, which environments are production, the environment picker, dashboards for a set of environments, declaring the environments an integration runs in, checks evaluated per environment, and routing production and test alerts to different places.

SLSluicio team 9 min read Updated Oct 2026

An integration often runs in more than one environment: the same flow in test, in staging and in production. From v0.11.178 it is still one integration in Sluicio. You define it once, and everything it shows can be read for all environments or for one, and its checks alert per environment.

OpenTelemetry carries the environment as a resource attribute. Sluicio reads deployment.environment.name, and deployment.environment (its name before semantic conventions v1.27) where only that is sent. Where the resource has neither, the same attributes are read from the span, log record or metric data point: a collector that scrapes one cloud account for several environments, such as Azure Monitor across a Service Bus namespace per environment, can often only label each data point. Telemetry with none of them shows as (no environment), never dropped: a service that has not set the attribute yet stays in its integration.

Set it on your services, for example with the SDK’s resource or an environment variable:

Terminal window
OTEL_RESOURCE_ATTRIBUTES=deployment.environment.name=production

Two cell settings change how it is read (Settings → System settings → Environments, operators):

  • Another attribute. For installations that put the environment elsewhere (env, environment, a Kubernetes namespace), name the attribute to read. It is read first, on the resource and then on the span, log record or data point, and the default attributes still apply where it is absent, so naming the key your metrics carry does not take the environment away from traces that use the default.
  • Aliases. Fold several spellings into one name, for example prd = production and prod = production. Case does not matter.

They apply when telemetry is read, so a change takes effect everywhere at once and no data is rewritten.

An environment’s name is free text: one team’s production is production, another’s prd-eu-1, a third’s something no rule could guess. So in Sluicio, production is a role an environment has, not a name.

Under Settings → System settings → Environments → Production environments, operators see every environment seen in the last week, each marked Production or Not production. Until you decide, a name with a word such as prod, production, prd or live in it is suggested as production (prod-eu, eu_prd_1, Live), and everything else as not (preprod, staging, test); a suggestion is labelled as one. Confirm suggestions accepts them all, and you can mark any environment either way, or add one before it sends.

The role is used in four places, and follows the list as environments come and go:

  • an integration’s page opens on its production environments;
  • a dashboard can show production environments;
  • a check can watch only production environments;
  • a notification profile can apply to only, or all except, production environments.

So when prod-us starts sending next to prod-eu, it joins the dashboards, checks and paging rules that name production environments without any of them being edited.

When an integration’s telemetry comes from more than one environment, its page gets an Environment picker beside its name: All environments, Production when the integration has several production environments (all of them together), then each environment with its status, production first. Every tab follows it (Overview, Messages, Logs, Metrics, Services, Errors), and it is kept in the link (?env=prod-eu&env=prod-us, or ?env=* for all), so a shared link opens on the same environments.

The environment is not a matcher condition. Matchers say what belongs to the integration, and the environment says where a given piece of it ran. An integration that already uses an environment condition in its matchers keeps working exactly as before.

On the Integrations list:

  • each row’s status shows one chip per environment, worst first, linking to the integration in that environment;
  • a list-wide picker narrows the whole list (status, counts and errors) to one environment.

A service’s page has the same picker beside its name, opens on its production environments the same way, and every tab follows it: its traces, logs, metrics, flow and figures.

The Services list works the same way: each service’s status shows one chip per environment it ran in, worst first, and the list-wide picker narrows every service’s traffic, errors and status to one environment. A service with nothing in that environment reads as quiet there. A service’s own checks are not evaluated per environment, so a firing check marks every environment the service runs in.

An integration whose telemetry carries no environment shows no picker at all: nothing changes until environments appear.

An integration’s page opens on its production environments, so the first thing you read is production rather than production and test mixed together. Only those its messages run in, or that it declares: an environment that only logs or metrics come from would open on an empty Messages tab. Pick All environments or another environment in the picker to read something else; the choice follows you across the integration’s tabs.

From v0.11.207 the choice also follows you through the menus: what you last picked in any environment picker, including All environments, is remembered for the browser tab, and a page opened without ?env opens on it. The Services and Integrations lists and the dashboard take a single environment; a choice of several (Production with several production environments) leaves them on their defaults. Choosing the dashboard’s own environments forgets the choice. A link that names its environments always wins.

An integration without messages in a production environment, or without environments at all, opens on all of them. Operators can set Open an integration on → all environments to open every page on all of them.

The Integrations list is not narrowed this way: it shows every environment until you pick one.

A dashboard can read a set of environments: under edit dashboard, tick production environments (the role, which follows the list) or the environments it shows by name, for example production and test. Every number on its cards is then read in those environments alone, and each card adds one row per environment with its status and traffic. None ticked reads all environments. A new dashboard starts on production environments.

Beside edit dashboard, the Environment switch narrows the dashboard to one of its environments for now, without changing what it saves.

To build a dashboard for, say, Sweden production, combine the environments with which integrations it shows: tick show every integration and add a condition such as Country = Sweden on an integration metadata field (Configure → Metadata fields) or a tag. Integrations that get the value later appear on it by themselves.

An integration’s environments are, by default, the ones its telemetry came from. Under Edit integration → Alerting → Environments you can also declare the environments it is expected to run in. A declared environment with no traffic reads as quiet on the list and the Overview, where an undeclared one would simply not appear, and checks set to each environment watch it for silence.

A health check bound to an integration has an Environments setting:

  • Each environment separately (the default). The check is evaluated once per environment of the integration, including (no environment), and each environment gets its own alert. A backlog in test neither pages as production nor hides behind an empty production queue, and the two resolve independently. The alert’s summary names its environment, for example Queue depth breaching [test].
  • Only these environments: production environments (the role, so a new production environment is watched without editing the check) or environments by name.

This applies to every kind of check bound to an integration: metric, log, failed messages, span attribute, response time and low traffic. A low-traffic check per environment is also how a declared environment is watched for going silent.

An integration whose telemetry carries no environment is evaluated exactly as before, once, with one alert. When environments first appear, an alert that was open over the whole integration is closed without a notification and replaced by the per-environment ones.

In notification templates, {{ alert.environment }} is the environment the alert is about (empty for a check that is not evaluated per environment). It is not org.environment, which names the Sluicio instance.

A notification profile can apply to only some environments or to all except some. An alert about an environment the profile does not apply to passes it over for the next profile down: the integration’s profile, then the team’s default, then the org’s default.

So production pages, test posts to Slack from the same check is:

  1. a profile with the PagerDuty channel, only production environments, assigned to the integration;
  2. the team or org default profile with the Slack channel, applying to every environment (or all except production environments).

Alerts that are not about an environment are routed as before.

The label naming the Sluicio instance itself (production, staging) sits beside the organization name at the top left, so it is not confused with the environment picker. On a non-production instance it is a warning chip.

  • MCP: sluicio_list_integrations returns each integration’s status per environment, and sluicio_list_integrations, sluicio_get_integration and sluicio_search_logs take an optional environment.
  • Configuration transfer carries declared environments, check environment scopes and profile environment filters.
  • State export: besides sluicio.integration.state, the OTLP state export sends sluicio.integration.environment.state, one point per environment with the attribute sluicio.integration.environment, on the same scale (-1 quiet, 0 ok, 1 errors, 2 unhealthy).