#6415·opensre

[FEATURE] Support for SkyWalking integration.

Author: chenmortalCreated Sep 26, 2026Updated Sep 28, 2026
Labelsenhancementpending triage

Problem statement

OpenSRE has no native integration with Apache SkyWalking, a widely used APM platform for distributed systems (Java/Spring Cloud, Kubernetes, service mesh). Today OpenSRE can query other tracing backends such as Grafana Tempo, but teams standardized on SkyWalking must bridge the two systems with custom scripts or ad-hoc GraphQL calls — error-prone and hard to maintain. During incidents, engineers can't ask OpenSRE to search spans, fetch a trace by ID, or list instrumented services, so they fall back to the SkyWalking UI and rebuild context manually.

This aligns with the roadmap: scheduled tasks (polling SkyWalking services/traces), CI/CD skills (querying SkyWalking during deploy/rollback decisions), and parallelization (concurrent trace queries across services).

Proposed solution

Add a first-class SkyWalking integration that talks directly to the OAP GraphQL API — no UI instance or proxy needed. It should mirror the existing Grafana Tempo integration for consistency.

Setup

Interactive CLI

bash
opensre integrations setup skywalking

Environment variables (.env)

bash

SKYWALKING_URL=http://localhost:12800
SKYWALKING_USERNAME=<username>          # optional (basic auth)
SKYWALKING_PASSWORD=<token>             # optional (basic auth)
Variable Default Description
SKYWALKING_URL — Required. SkyWalking OAP base URL (GraphQL endpoint derived as <url>/graphql)
SKYWALKING_USERNAME (empty) Username for basic auth
SKYWALKING_PASSWORD (empty) Password for basic auth

Persistent store (~/.opensre/integrations.json)

json

{
  "version": 1,
  "integrations": [
    {
      "id": "skywalking-prod",
      "service": "skywalking",
      "status": "active",
      "credentials": {
        "url": "http://localhost:12800",
        "username": "",
        "password": ""
      }
    }
  ]
}

Tools

Expose a single query_skywalking tool with an action parameter:

Action Use it for
search Search traces by service, endpoint, instance, status, layer, and time range; one summary row per trace
get_trace Fetch a full trace by ID and flatten its spans
list_services List services registered in SkyWalking
list_span_names List span names registered in SkyWalking
list_instances List instances of a service

search

python

query_skywalking(action="search", service="agent::songs", endpoint="GET:/songs/top", status="error")
query_skywalking(action="search", layer="GENERAL", service="agent::songs", order_by="slowest")
Parameter Description
status all, success, error. Default all
order_by slowest, recent. Default recent
layer Filter by layer, e.g. GENERAL
service Filter by service name, e.g. agent::songs
endpoint Filter by endpoint, e.g. GET:/songs/top
instance Filter by instance, e.g. [email protected]...
from_time Start time (inclusive). Relative (-1h, -30m) or ISO 8601
to_time End time (inclusive). Same format as from_time; defaults to now
limit Max traces to return (default 20)

layer / service / endpoint / instance are cascading, matching the SkyWalking UI. from_time/ to_time define the query window; if omitted, the most recent period is used.

get_trace

query_skywalking(action="get_trace", trace_id="4f8c...e21")

list_services

query_skywalking(action="list_services")

list_span_names

query_skywalking(action="list_span_names")

list_instances

query_skywalking(action="list_instances", service="checkout-service")