Configure instances
Environment variable
Set<SERVICE>_INSTANCES to a JSON array:
When
<SERVICE>_INSTANCES is set, the legacy single-instance variables for that
service (for example GRAFANA_INSTANCE_URL, GRAFANA_READ_TOKEN) are ignored.
If the JSON is invalid, OpenSRE logs a warning and falls back to the legacy
variables.
Store file
You can also define instances in~/.opensre/integrations.json (schema v2):
Select an instance during an investigation
Alert hint (Grafana)
Grafana alerts can include agrafana_instance field at the top level or in
annotations:
Default for other providers
Other multi-instance providers use the default (first) instance unless a selector is applied in code. Extending alert-based selection beyond Grafana is planned.Provider support
Limitations
- Only Grafana honors an alert-provided instance hint in this release.
- The CLI setup wizard is not instance-aware yet. Configure multi-instance via env vars or by editing the store JSON.
opensre integrations verifyvalidates only the default instance of a multi-instance record.