Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
55 commits
Select commit Hold shift + click to select a range
6eba63b
feat(promql): PromQL as a dashboard widget data source
Makisuo Nov 15, 2026
1cc5170
Merge branch 'promql/5-prometheus-api' into promql/6-widgets
Makisuo Nov 15, 2026
db7030b
Merge branch 'promql/5-prometheus-api' into promql/6-widgets
Makisuo Nov 15, 2026
bc9fd7b
fix(promql): widgets ask for range mode explicitly
Makisuo Nov 15, 2026
62c3af5
Merge branch 'promql/5-prometheus-api' into promql/6-widgets
Makisuo Nov 15, 2026
2ee077f
fix(promql): variables cannot change a query's structure, and widget …
Makisuo Nov 15, 2026
626b8bc
Merge branch 'promql/5-prometheus-api' into promql/6-widgets
Makisuo Nov 15, 2026
62f0291
test(promql): provide PromqlQueryService to the widget data harnesses
Makisuo Nov 15, 2026
3ee8643
Merge branch 'promql/5-prometheus-api' into promql/6-widgets
Makisuo Nov 15, 2026
6e85a68
Merge branch 'promql/5-prometheus-api' into promql/6-widgets
Makisuo Nov 15, 2026
78db5ed
Merge branch 'promql/5-prometheus-api' into promql/6-widgets
Makisuo Nov 15, 2026
8f7d468
Merge branch 'promql/5-prometheus-api' into promql/6-widgets
Makisuo Nov 15, 2026
3a30bf2
Merge branch 'promql/5-prometheus-api' into promql/6-widgets
Makisuo Nov 15, 2026
ab18b2f
Merge branch 'promql/5-prometheus-api' into promql/6-widgets
Makisuo Nov 15, 2026
d4a9fd6
fix(promql): a name or value label keeps its value in table rows
Makisuo Nov 15, 2026
0d930ca
Merge branch 'promql/5-prometheus-api' into promql/6-widgets
Makisuo Nov 15, 2026
c8e3fc9
Merge branch 'promql/5-prometheus-api' into promql/6-widgets
Makisuo Nov 15, 2026
3bd7a23
Merge branch 'promql/5-prometheus-api' into promql/6-widgets
Makisuo Nov 15, 2026
2296e08
Merge branch 'promql/5-prometheus-api' into promql/6-widgets
Makisuo Nov 15, 2026
73b5f5e
Merge branch 'promql/5-prometheus-api' into promql/6-widgets
Makisuo Nov 15, 2026
dd06df8
Merge branch 'promql/5-prometheus-api' into promql/6-widgets
Makisuo Nov 15, 2026
898f310
Merge branch 'promql/5-prometheus-api' into promql/6-widgets
Makisuo Nov 15, 2026
c2af635
Merge branch 'promql/5-prometheus-api' into promql/6-widgets
Makisuo Nov 15, 2026
39b93f3
Merge branch 'promql/5-prometheus-api' into promql/6-widgets
Makisuo Nov 15, 2026
a714b1f
Merge branch 'promql/5-prometheus-api' into promql/6-widgets
Makisuo Nov 15, 2026
c5b02e4
Merge branch 'promql/5-prometheus-api' into promql/6-widgets
Makisuo Nov 15, 2026
d85c1e6
Merge branch 'promql/5-prometheus-api' into promql/6-widgets
Makisuo Nov 15, 2026
638306c
Merge branch 'promql/5-prometheus-api' into promql/6-widgets
Makisuo Nov 15, 2026
0d43703
Merge branch 'promql/5-prometheus-api' into promql/6-widgets
Makisuo Nov 15, 2026
749aa8a
Merge branch 'promql/5-prometheus-api' into promql/6-widgets
Makisuo Nov 15, 2026
80d600e
Merge branch 'promql/5-prometheus-api' into promql/6-widgets
Makisuo Nov 15, 2026
0d1e88e
Merge branch 'promql/5-prometheus-api' into promql/6-widgets
Makisuo Nov 15, 2026
1070aa8
Merge branch 'promql/5-prometheus-api' into promql/6-widgets
Makisuo Nov 15, 2026
e695e46
Merge branch 'promql/5-prometheus-api' into promql/6-widgets
Makisuo Nov 15, 2026
a0c147d
Merge branch 'promql/5-prometheus-api' into promql/6-widgets
Makisuo Nov 15, 2026
cc205bc
Merge branch 'promql/5-prometheus-api' into promql/6-widgets
Makisuo Nov 15, 2026
8e800ae
fix(promql): widget variables skip # comments and place only whole to…
Makisuo Nov 15, 2026
fee6531
fix(promql): widget rows keep a __proto__ series column and never ove…
Makisuo Nov 15, 2026
fd19f38
fix(promql): one query and legend length limit at every widget boundary
Makisuo Nov 15, 2026
23146b3
fix(promql): table Row limit persists, a scalar never reads line-orde…
Makisuo Nov 15, 2026
dca6a33
test(promql): a table's Row limit survives Apply and reopen
Makisuo Nov 15, 2026
13ff0a1
fix(promql): an absent PromQL displayType is checked as line against …
Makisuo Nov 15, 2026
5d4e335
Merge branch 'promql/5-prometheus-api' into promql/6-widgets
Makisuo Nov 15, 2026
02af9e2
chore(ios): regenerate the OpenAPI spec for the PromQL legend limit
Makisuo Nov 15, 2026
ff50afe
chore(promql): comment skip uses a plain character loop
Makisuo Nov 15, 2026
fa9a491
Merge branch 'promql/5-prometheus-api' into promql/6-widgets
Makisuo Nov 15, 2026
7050f86
Merge branch 'promql/5-prometheus-api' into promql/6-widgets
Makisuo Nov 15, 2026
7fe2426
chore(ai): regenerate MCP tool descriptors for the PromQL length limits
Makisuo Nov 15, 2026
da4d586
fix(promql): widget variables stay literal where they land, and the e…
Makisuo Nov 15, 2026
fefe19f
Merge branch 'promql/5-prometheus-api' into promql/6-widgets
Makisuo Nov 16, 2026
3c89e86
Merge branch 'promql/5-prometheus-api' into promql/6-widgets
Makisuo Nov 16, 2026
696f5f8
Merge branch 'promql/5-prometheus-api' into promql/6-widgets
Makisuo Nov 16, 2026
0e4e69b
Merge branch 'promql/5-prometheus-api' into promql/6-widgets
Makisuo Nov 16, 2026
d63b2e2
Merge branch 'promql/5-prometheus-api' into promql/6-widgets
Makisuo Nov 16, 2026
d1a0427
Merge branch 'promql/5-prometheus-api' into promql/6-widgets
Makisuo Nov 16, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion apps/ai/src/mcp/lib/dashboard-mutations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,9 @@ export const legacyDataSourceHint = (value: unknown): string | undefined => {
/** Every data-source arm with its minimal shape, for errors that would otherwise list union failures. */
export const DATA_SOURCE_VARIANTS =
'`{"kind":"query","resultShape":"timeseries"|"breakdown"|"list"|...,"queries":[...]}` (query builder), ' +
'`{"kind":"raw_sql","sql":"SELECT ... WHERE $__orgFilter AND $__timeFilter(Timestamp)"}`, `{"kind":"route","endpoint":"...","params":{...}}`, ' +
'`{"kind":"raw_sql","sql":"SELECT ... WHERE $__orgFilter AND $__timeFilter(Timestamp)"}`, ' +
'`{"kind":"promql","query":"sum(rate(...[$__rate_interval]))","legendFormat":"{{job}}","displayType":"line"}`, ' +
'`{"kind":"route","endpoint":"...","params":{...}}`, ' +
'or `{"kind":"static"}` (markdown note: panel_type markdown with display `{"markdown":{"content":"..."}}`)'

const decodeKindField = Schema.decodeUnknownResult(Schema.Struct({ kind: Schema.Unknown }))
Expand Down
21 changes: 20 additions & 1 deletion apps/ai/src/mcp/lib/dashboard-schema-doc.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { PANEL_TYPES, WIDGET_TYPES, WIDGET_UNITS, type WidgetTypeMeta } from "@maple/domain/http"
import {
makeProductEventsFunnelDataSource,
makePromqlDataSource,
makeQueryDataSource,
makeRawSqlDataSource,
makeStaticDataSource,
Expand Down Expand Up @@ -221,6 +222,24 @@ const dataSourcesSection = (): string =>
}),
),
"",
'### `kind: "promql"`: a PromQL query over the metrics',
"",
"Prometheus names: `http.server.request.duration` answers to",
"`http_server_request_duration_seconds_bucket`, a monotonic sum to `..._total`. Grafana",
"variables work (`$var`, `${var}`, `${var:regex}`, `[[var]]`, an All selection becomes",
"`(a|b)`), plus `$__interval`, `$__rate_interval`, `$__range` and `$__range_s`.",
"`legendFormat` names series with `{{label}}`; `minStepSeconds` floors the step;",
"`displayType` is the panel's raw-SQL display type (a stat reads the newest point of the",
"first series with the `first` reducer on field `value`; a table gets one row per series).",
"",
json(
makePromqlDataSource({
query: 'sum by (job) (rate(http_server_request_duration_seconds_count{job=~"$service"}[$__rate_interval]))',
legendFormat: "{{job}}",
displayType: "line",
}),
),
"",
'### `kind: "static"`: a markdown note, no request',
"",
json(makeStaticDataSource()),
Expand Down Expand Up @@ -584,7 +603,7 @@ const SECTION_RENDERERS = {

const SECTION_SUMMARIES = {
panel_types: "The 14 panel types, what each persists as, and which need a group-by or a reduction.",
data_sources: "The four `kind` arms of a widget data source, with a decodable example of each.",
data_sources: "The five `kind` arms of a widget data source, with a decodable example of each.",
units: "The unit vocabulary, and the percent-vs-percent_100 scale rule.",
queries: "Aggregations and group-by tokens per source, the whereClause grammar, formulas.",
display: "Display config keys per panel type, including the ones that are stored but inert.",
Expand Down
29 changes: 28 additions & 1 deletion apps/ai/src/mcp/lib/raw-sql-widget.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
import { describe, expect, it } from "vitest"
import { buildRawSqlDataSource, validateRawSql, visualizationToDisplayType } from "./raw-sql-widget"
import { makePromqlDataSource } from "@maple/widgets/dashboard"
import {
buildRawSqlDataSource,
validateRawSql,
visualizationToDisplayType,
withScalarReduction,
} from "./raw-sql-widget"

describe("visualizationToDisplayType", () => {
it("derives line/area/bar for chart based on chartId hint", () => {
Expand Down Expand Up @@ -115,3 +121,24 @@ describe("validateRawSql", () => {
).toBeNull()
})
})

describe("withScalarReduction on PromQL", () => {
it("gives a PromQL stat a stat display type, so `first` reads the newest point", () => {
const repaired = withScalarReduction(makePromqlDataSource({ query: "vector(time())" }), true)
expect(repaired).toMatchObject({
kind: "promql",
displayType: "stat",
transform: { reduceToValue: { field: "value", aggregate: "first" } },
})
})

it("keeps a display type the caller chose", () => {
const source = makePromqlDataSource({ query: "up", displayType: "gauge" })
expect(withScalarReduction(source, true)).toMatchObject({ displayType: "gauge" })
})

it("replaces a line display type on a scalar, whose rows would be oldest first", () => {
const source = makePromqlDataSource({ query: "up", displayType: "line" })
expect(withScalarReduction(source, true)).toMatchObject({ displayType: "stat" })
})
})
21 changes: 18 additions & 3 deletions apps/ai/src/mcp/lib/raw-sql-widget.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
import { rawSqlIssue } from "@maple/domain/raw-sql"
import { rawSqlDisplayTypeFor, widgetTypeByVisualization } from "@maple/domain/http"
import type { RawSqlDisplayType, WidgetDataSourceSchema } from "@maple/domain/http"
import { dataSourceQuerySet, dataSourceTransform, makeRawSqlDataSource } from "@maple/widgets/dashboard"
import {
dataSourcePromql,
dataSourceQuerySet,
dataSourceTransform,
makeRawSqlDataSource,
} from "@maple/widgets/dashboard"

// MCP-side mirror of the web's raw-SQL widget builder so agents can create
// raw-SQL widgets without hand-crafting the dataSource JSON. The display type
Expand Down Expand Up @@ -48,11 +53,21 @@ export function buildRawSqlDataSource(args: {
*/
export function withScalarReduction(dataSource: WidgetDataSource, isScalar: boolean): WidgetDataSource {
if (!isScalar) return dataSource
// A PromQL scalar needs its rows newest first, which only a stat or gauge display type gives;
// any other (absent, or a line chart's) is oldest first, and `first` would read the oldest.
if (
"kind" in dataSource &&
dataSource.kind === "promql" &&
dataSource.displayType !== "stat" &&
dataSource.displayType !== "gauge"
) {
return withScalarReduction({ ...dataSource, displayType: "stat" }, isScalar)
}
if (dataSourceTransform(dataSource)?.reduceToValue !== undefined) return dataSource
const querySet = dataSourceQuerySet(dataSource)
// Only the query arm: a route source owns its own response shape, and a
// Only the query and PromQL arms: a route source owns its own response shape, and a
// static source has no response at all.
if (querySet === null) return dataSource
if (querySet === null && dataSourcePromql(dataSource) === null) return dataSource
Comment thread
Makisuo marked this conversation as resolved.
Resolved

const existing = dataSourceTransform(dataSource)
return {
Expand Down
36 changes: 36 additions & 0 deletions apps/ai/src/mcp/lib/validate-widget-renderability.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { describe, expect, it } from "vitest"
import {
makeProductEventsFunnelDataSource,
makePromqlDataSource,
makeQueryDataSource,
makeRawSqlDataSource,
makeStaticDataSource,
Expand Down Expand Up @@ -272,3 +273,38 @@ describe("all three write paths agree on scalar repair", () => {
}
})
})

describe("a promql data source", () => {
it("renders on a line chart with no issues", () => {
const issues = validateWidgetRenderability(
widget("line", makePromqlDataSource({ query: "up", displayType: "line" })),
)
expect(issues.fatal).toEqual([])
expect(issues.warnings).toEqual([])
})

it("needs a query, a reduction on a stat, and is refused on a list", () => {
const empty = validateWidgetRenderability(widget("line", makePromqlDataSource({ query: " " })))
expect(Arr.join(empty.fatal, " ")).toContain("needs a `query`")
const stat = validateWidgetRenderability(
widget("stat", makePromqlDataSource({ query: "up", displayType: "stat" })),
)
expect(Arr.join(stat.fatal, " ")).toContain("reduceToValue")
const list = validateWidgetRenderability(widget("list", makePromqlDataSource({ query: "up" })))
expect(Arr.join(list.fatal, " ")).toContain("cannot draw PromQL")
})

it("warns when the display type does not match the panel", () => {
const { warnings } = validateWidgetRenderability(
widget("table", makePromqlDataSource({ query: "up", displayType: "line" })),
)
expect(Arr.join(warnings, " ")).toContain('displayType: "table"')
})

it("reads an absent display type as a line chart, so a table without one is warned", () => {
const table = validateWidgetRenderability(widget("table", makePromqlDataSource({ query: "up" })))
expect(Arr.join(table.warnings, " ")).toContain('displayType: "table"')
const line = validateWidgetRenderability(widget("line", makePromqlDataSource({ query: "up" })))
expect(line.warnings).toEqual([])
})
})
30 changes: 29 additions & 1 deletion apps/ai/src/mcp/lib/validate-widget-renderability.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,12 @@ import {
type DashboardWidgetSchema,
type PanelType,
} from "@maple/domain/http"
import { dataSourceQuerySet, dataSourceRawSql, dataSourceTransform } from "@maple/widgets/dashboard"
import {
dataSourcePromql,
dataSourceQuerySet,
dataSourceRawSql,
dataSourceTransform,
} from "@maple/widgets/dashboard"
import { FUNNEL_MAX_STEPS, PATHS_MAX_BRANCHES, PATHS_MAX_DEPTH } from "@maple/query-model"
import { isGroupByRequested } from "./inspect-widget"
import { stringifyJson } from "./json"
Expand Down Expand Up @@ -111,6 +116,29 @@ export const validateWidgetRenderability = (input: ValidateWidgetRenderabilityIn
)
}

const promql = dataSourcePromql(widget.dataSource)
if (promql !== null) {
if (Str.trim(promql.query) === "") fatal.push('A `kind: "promql"` data source needs a `query`.')
if (panelType === "list") {
fatal.push(
'`panel_type: "list"` cannot draw PromQL. Use `panel_type: "table"` for one row per series.',
)
}
const expected = meta.rawSqlDisplayType
// An absent displayType shapes rows for a line chart, so it is checked as "line".
const rowsFor = promql.displayType ?? "line"
if (expected !== undefined && rowsFor !== expected) {
warnings.push(
`The PromQL \`displayType\` is \`${promql.displayType ?? "unset (line)"}\` but a \`${panelType}\` panel draws \`${expected}\` rows; set \`displayType: "${expected}"\`.`,
)
}
if (meta.isScalar && transform?.reduceToValue === undefined) {
fatal.push(
`\`panel_type: "${panelType}"\` needs \`transform: { "reduceToValue": { "field": "value", "aggregate": "first" } }\` on a PromQL source (\`first\` is the newest point).`,
)
}
}

// A scalar tile reads `data[0].value`; without the reduction it receives a row
// object and renders `[object Object]`.
if (meta.isScalar && querySet !== null && transform?.reduceToValue === undefined) {
Expand Down
2 changes: 1 addition & 1 deletion apps/ai/src/mcp/tool-descriptors.generated.ts

Large diffs are not rendered by default.

58 changes: 58 additions & 0 deletions apps/api/src/routes/internal/query-engine.http.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ import {
CurrentTenant,
MapleInternalApi,
RawSqlExecuteResponse,
PromqlExecuteResponse,
QueryEngineValidationError,
SpanHierarchyResponse,
ProfileSampleTypesResponse,
ProfileStacksResponse,
Expand Down Expand Up @@ -157,6 +159,7 @@ import {
import type { QueryEngineDirectError } from "@maple/query-engine/runtime"
import { makeRunAuditedRawSql } from "@maple/backend/services/warehouse/audited-raw-sql"
import { WarehouseQueryService } from "@maple/backend/services/warehouse/WarehouseQueryService"
import { PromqlQueryService } from "@maple/backend/services/promql/PromqlQueryService"
import {
alignServiceApiBucketSeconds,
CH,
Expand Down Expand Up @@ -374,6 +377,7 @@ export const HttpQueryEngineLive = HttpApiBuilder.group(MapleInternalApi, "query
Effect.gen(function* () {
const queryEngine = yield* QueryEngineService
const warehouse = yield* WarehouseQueryService
const promql = yield* PromqlQueryService
const runtimeReleases = yield* RuntimeReleaseCatalog
const runtimeAdvisories = yield* RuntimeAdvisoryCatalog
const reads = makeDashboardReads({ warehouse, queryEngine })
Expand Down Expand Up @@ -2715,6 +2719,60 @@ export const HttpQueryEngineLive = HttpApiBuilder.group(MapleInternalApi, "query
"productEventTraceSamples",
serve.rows(Queries.productEventTraceSamples, ProductEventTraceSamplesResponse),
)
.handle("executePromql", ({ payload }) =>
Effect.gen(function* () {
const tenant = yield* CurrentTenant.Context
const result = yield* mapExecError(
promql.widget(tenant, {
query: payload.query,
startTime: payload.startTime,
endTime: payload.endTime,
...(payload.legendFormat === undefined
? undefined
: { legendFormat: payload.legendFormat }),
...(payload.minStepSeconds === undefined
? undefined
: { minStepSeconds: payload.minStepSeconds }),
...(payload.maxDataPoints === undefined
? undefined
: { maxDataPoints: payload.maxDataPoints }),
...(payload.displayType === undefined
? undefined
: { displayType: payload.displayType }),
}),
"promql query failed",
).pipe(
// A query that does not parse or cannot run is the author's to fix: a 400 with the reason.
Effect.catchTags({
"@maple/backend/promql/PromqlBadQueryError": (error) =>
Effect.fail(
new QueryEngineValidationError({
message: `Invalid PromQL: ${error.message}`,
details:
error.position === undefined
? []
: [`position ${error.position}`],
}),
),
"@maple/backend/promql/PromqlExecutionError": (error) =>
Effect.fail(
new QueryEngineValidationError({
message: error.message,
details: [],
}),
),
}),
)
return new PromqlExecuteResponse({
data: result.rows,
meta: {
resultType: result.resultType,
seriesCount: result.seriesCount,
stepSeconds: result.stepSeconds,
},
})
}),
)
.handle("executeRawSql", ({ payload }) =>
Effect.gen(function* () {
const tenant = yield* CurrentTenant.Context
Expand Down
8 changes: 7 additions & 1 deletion apps/api/src/routes/v2/alchemy-provider.integration.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ import { InvestigationService } from "@maple/backend/services/errors/Investigati
import { compiledQueryOf } from "@maple/query-engine/execution"
import { InvestigationStarter } from "@maple/backend/services/errors/InvestigationStarter"
import { SloReadService } from "@maple/backend/services/slos/SloReadService"
import { PromqlQueryService } from "@maple/backend/services/promql/PromqlQueryService"

const createdDbs: TestDb[] = []
afterEach(() => cleanupTestDbs(createdDbs))
Expand Down Expand Up @@ -237,7 +238,12 @@ const makeHarness = () => {
Layer.provide(
Layer.mergeAll(
HttpV2DashboardsLive.pipe(
Layer.provide(Layer.effect(DashboardWidgetDataService, DashboardWidgetDataService.make)),
Layer.provide(
Layer.effect(DashboardWidgetDataService, DashboardWidgetDataService.make).pipe(
// Over the inert warehouse, not the real one `PromqlQueryService.layer` brings.
Layer.provide(Layer.effect(PromqlQueryService, PromqlQueryService.make)),
),
),
),
HttpV2AlertDestinationsLive,
HttpV2AlertRulesLive,
Expand Down
8 changes: 7 additions & 1 deletion apps/api/src/routes/v2/dashboards.http.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ import {
WarehouseServiceStubLayer,
} from "./v2-test-support"
import { DashboardWidgetDataService } from "@maple/backend/services/dashboards/DashboardWidgetDataService"
import { PromqlQueryService } from "@maple/backend/services/promql/PromqlQueryService"
import { HttpV2DashboardsLive } from "./dashboards.http"
import { HttpV2SharePublicLive } from "./share.http"
import { OrganizationService } from "@maple/backend/services/org/OrganizationService"
Expand Down Expand Up @@ -152,7 +153,12 @@ const makeHarness = () => {
Layer.mergeAll(
// Real widget evaluation over the inert warehouse and query engine below.
HttpV2DashboardsLive.pipe(
Layer.provide(Layer.effect(DashboardWidgetDataService, DashboardWidgetDataService.make)),
Layer.provide(
Layer.effect(DashboardWidgetDataService, DashboardWidgetDataService.make).pipe(
// Over the inert warehouse below, not the real one `PromqlQueryService.layer` brings.
Layer.provide(Layer.effect(PromqlQueryService, PromqlQueryService.make)),
),
),
),
SharePublicLive,
),
Expand Down
2 changes: 2 additions & 0 deletions apps/api/src/runtime/query-http-graph.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import { OrganizationRegionService } from "@maple/backend/services/org/Organizat
import { OrganizationFeatureFlagsService } from "@maple/backend/services/org/OrganizationFeatureFlagsService"
import { AuditLogService } from "@maple/backend/services/audit/AuditLogService"
import { QueryEngineService } from "@maple/backend/services/warehouse/QueryEngineService"
import { PromqlQueryService } from "@maple/backend/services/promql/PromqlQueryService"
import { RuntimeAdvisoryCatalog } from "@maple/backend/services/security/RuntimeAdvisoryCatalog"
import { RuntimeReleaseCatalog } from "@maple/backend/services/security/RuntimeReleaseCatalog"

Expand All @@ -40,6 +41,7 @@ export const QueryRoutes = Layer.mergeAll(
Layer.mergeAll(
QueryEngineService.layer,
WarehouseQueryService.layer,
PromqlQueryService.layer,
AuditLogService.layer,
OrganizationRegionService.layer,
RuntimeReleaseCatalog.layer,
Expand Down
4 changes: 2 additions & 2 deletions apps/api/src/runtime/service-graph.ts
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 +139,8 @@ import { AuditDetectionsService } from "@maple/backend/services/audit-trail/Audi
import { IntegrationInventoryService } from "@maple/backend/services/integrations/IntegrationInventoryService"
import { WarehouseQueryService } from "@maple/backend/services/warehouse/WarehouseQueryService"
import { QueryEngineService } from "@maple/backend/services/warehouse/QueryEngineService"
import { TelemetryReadService } from "@maple/backend/services/warehouse/TelemetryReadService"
import { PromqlQueryService } from "@maple/backend/services/promql/PromqlQueryService"
import { TelemetryReadService } from "@maple/backend/services/warehouse/TelemetryReadService"
import { OrgClickHouseSettingsService } from "@maple/backend/services/org/OrgClickHouseSettingsService"
import { VcsSourceService } from "@maple/backend/services/integrations/vcs/VcsSourceService"
import { CiAnalyticsService } from "@maple/backend/services/pr-review/CiAnalyticsService"
Expand Down Expand Up @@ -255,11 +255,11 @@ export const HttpServicesLive = Layer.mergeAll(
IntegrationInventoryService.layer,
WarehouseQueryService.layer,
QueryEngineService.layer,
PromqlQueryService.layer,
RuntimeReleaseCatalog.layer,
RuntimeAdvisoryCatalog.layer,
DependencyScanService.layer,
TelemetryReadService.layer,
PromqlQueryService.layer,
DashboardWidgetDataService.layer,
AlertDestinationsService.layer,
AlertReadModelsService.layer,
Expand Down
Loading
Loading