tests
for each backend exposed by the grafana-stack module.Installation
dagger install github.com/z5labs/devex/daggerverse/grafana-stack/tests@9ebfb29b95cb654ed5d00d1e595bcf710c2a7318Entrypoint
Return Type
Tests Example
dagger -m github.com/z5labs/devex/daggerverse/grafana-stack/tests@9ebfb29b95cb654ed5d00d1e595bcf710c2a7318 call \
func (m *MyModule) Example() *dagger.Tests {
return dag.
Tests()
}@function
def example() -> dagger.Tests:
return (
dag.tests()
)@func()
example(): Tests {
return dag
.tests()
}Types
Tests 🔗
all() 🔗
All runs every grafana-stack round-trip test in parallel.
Return Type
Void ! Example
dagger -m github.com/z5labs/devex/daggerverse/grafana-stack/tests@9ebfb29b95cb654ed5d00d1e595bcf710c2a7318 call \
allfunc (m *MyModule) Example(ctx context.Context) {
return dag.
Tests().
All(ctx)
}@function
async def example() -> None:
return await (
dag.tests()
.all()
)@func()
async example(): Promise<void> {
return dag
.tests()
.all()
}lokiAcceptsOtlpLogs() 🔗
LokiAcceptsOtlpLogs starts a Loki service, posts a single log record via the OTLP/HTTP receiver carrying a unique marker UUID, then queries Loki LogQL until the marker reappears in the query response. Verifies the default config wires up the OTLP HTTP ingester end-to-end.
Return Type
Void ! Example
dagger -m github.com/z5labs/devex/daggerverse/grafana-stack/tests@9ebfb29b95cb654ed5d00d1e595bcf710c2a7318 call \
loki-accepts-otlp-logsfunc (m *MyModule) Example(ctx context.Context) {
return dag.
Tests().
LokiAcceptsOtlpLogs(ctx)
}@function
async def example() -> None:
return await (
dag.tests()
.loki_accepts_otlp_logs()
)@func()
async example(): Promise<void> {
return dag
.tests()
.lokiAcceptsOtlpLogs()
}mimirAcceptsOtlpMetrics() 🔗
MimirAcceptsOtlpMetrics starts a Mimir service, posts a single gauge sample via the OTLP/HTTP receiver under a uniquely-named metric, then queries Mimir’s Prometheus-compatible API until that metric appears. Verifies the default config wires up the OTLP HTTP ingester and the filesystem block store end-to-end.
Return Type
Void ! Example
dagger -m github.com/z5labs/devex/daggerverse/grafana-stack/tests@9ebfb29b95cb654ed5d00d1e595bcf710c2a7318 call \
mimir-accepts-otlp-metricsfunc (m *MyModule) Example(ctx context.Context) {
return dag.
Tests().
MimirAcceptsOtlpMetrics(ctx)
}@function
async def example() -> None:
return await (
dag.tests()
.mimir_accepts_otlp_metrics()
)@func()
async example(): Promise<void> {
return dag
.tests()
.mimirAcceptsOtlpMetrics()
}tempoAcceptsOtlpTraces() 🔗
TempoAcceptsOtlpTraces starts a Tempo service, posts a single span via the OTLP/HTTP receiver carrying a unique 16-byte trace ID, then polls /api/traces/ until Tempo returns the trace. Verifies the default config wires up the OTLP HTTP receiver and the local trace store end-to-end.
Return Type
Void ! Example
dagger -m github.com/z5labs/devex/daggerverse/grafana-stack/tests@9ebfb29b95cb654ed5d00d1e595bcf710c2a7318 call \
tempo-accepts-otlp-tracesfunc (m *MyModule) Example(ctx context.Context) {
return dag.
Tests().
TempoAcceptsOtlpTraces(ctx)
}@function
async def example() -> None:
return await (
dag.tests()
.tempo_accepts_otlp_traces()
)@func()
async example(): Promise<void> {
return dag
.tests()
.tempoAcceptsOtlpTraces()
}