sourcegraph/monitoring/definitions/codeintel_ranking.go
Noah S-C 9333f8f283
codeintel: consolidate enterprise & oss codeintel packages (#54431)
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
2023-07-05 14:58:41 +01:00

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,
}
}