VictoriaLogs Field Names Variable Go SDK#
Constructor#
import "github.com/perses/perses-plugins/victorialogs/sdk/go/v1/variable"
var options []variable.Option
variable.FieldNames(options...)
Need a list of options.
Default options#
- None
Available options#
Datasource#
import "github.com/perses/perses-plugins/victorialogs/sdk/go/v1/variable"
variable.Datasource("MyVictoriaLogsDatasource")
Define the datasource the variable will use.
Query#
import "github.com/perses/perses-plugins/victorialogs/sdk/go/v1/variable"
variable.Query(`_stream:{environment="production"}`)
Define an optional LogsQL query to filter the results.