datasource

package
v0.7.0-beta.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 21, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const PluginKind = "PyroscopeDatasource"

Variables

This section is empty.

Functions

func Pyroscope

func Pyroscope(options ...Option) datasource.Option

func Selector

func Selector(datasourceName string) *datasource.Selector

Types

type Builder

type Builder struct {
	datasourceSpec.HTTPDatasourceSpec `json:",inline" yaml:",inline"`
	MinStep                           common.Duration `json:"minStep,omitempty" yaml:"minStep,omitempty"`
}

type Option

type Option func(plugin *Builder) error

func DirectURL

func DirectURL(url string) Option

func HTTPProxy

func HTTPProxy(url string, options ...http.Option) Option

func MinStep

func MinStep(step time.Duration) Option

MinStep sets the lower bound for the timeline resolution of profile queries.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL