mirror of
https://github.com/sourcegraph/sourcegraph.git
synced 2026-02-06 19:21:50 +00:00
Movin enterprise codeintel stuff (and ~two others that had to be dragged
along) out of `enterprise/internal` and into `internal` as part of the
shift towards enterprise-only
## Test plan
Successfully built frontend with bazel, CI will check the rest
😎 no logic changed, just shufflin things around
37 lines
1.2 KiB
Go
37 lines
1.2 KiB
Go
package definitions
|
|
|
|
import (
|
|
"github.com/sourcegraph/sourcegraph/monitoring/definitions/shared"
|
|
"github.com/sourcegraph/sourcegraph/monitoring/monitoring"
|
|
)
|
|
|
|
func CodeIntelRanking() *monitoring.Dashboard {
|
|
groups := []monitoring.Group{
|
|
shared.CodeIntelligence.NewRankingServiceGroup("${source:regex}"),
|
|
shared.CodeIntelligence.NewRankingStoreGroup("${source:regex}"),
|
|
shared.CodeIntelligence.NewRankingLSIFStoreGroup("${source:regex}"),
|
|
}
|
|
groups = append(groups, shared.CodeIntelligence.NewRankingPipelineTaskGroups("${source:regex}")...)
|
|
groups = append(groups, shared.CodeIntelligence.NewRankingJanitorTaskGroups("${source:regex}")...)
|
|
|
|
return &monitoring.Dashboard{
|
|
Name: "codeintel-ranking",
|
|
Title: "Code Intelligence > Ranking",
|
|
Description: "The service at `internal/codeintel/ranking`.",
|
|
Variables: []monitoring.ContainerVariable{
|
|
{
|
|
Label: "Source",
|
|
Name: "source",
|
|
OptionsLabelValues: monitoring.ContainerVariableOptionsLabelValues{
|
|
Query: "src_codeintel_ranking_total{}",
|
|
LabelName: "app",
|
|
ExampleOption: "frontend",
|
|
},
|
|
WildcardAllValue: true,
|
|
Multi: false,
|
|
},
|
|
},
|
|
Groups: groups,
|
|
}
|
|
}
|