skywalking

package
v1.6.6 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ProviderType indicates the provider is skywalking
	ProviderType = "skywalking"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Provider

type Provider struct {
	// contains filtered or unexported fields
}

func NewSkyWalkingProvider

func NewSkyWalkingProvider(client SkyWalkingClientAPI, logCtx log.Entry) *Provider

NewSkyWalkingProvider creates a new SkyWalking provider

func (*Provider) GarbageCollect

func (p *Provider) GarbageCollect(run *v1alpha1.AnalysisRun, metric v1alpha1.Metric, i int) error

GarbageCollect should not be used the SkyWalking provider since all the work should occur in the Run method

func (*Provider) GetMetadata

func (p *Provider) GetMetadata(metric v1alpha1.Metric) map[string]string

GetMetadata returns any additional metadata which needs to be stored & displayed as part of the metrics result.

func (*Provider) Resume

func (p *Provider) Resume(run *v1alpha1.AnalysisRun, metric v1alpha1.Metric, measurement v1alpha1.Measurement) v1alpha1.Measurement

Resume should not be used the SkyWalking provider since all the work should occur in the Run method

func (*Provider) Run

Run queries SkyWalking for the metric

func (*Provider) Terminate

func (p *Provider) Terminate(run *v1alpha1.AnalysisRun, metric v1alpha1.Metric, measurement v1alpha1.Measurement) v1alpha1.Measurement

Terminate should not be used the SkyWalking provider since all the work should occur in the Run method

func (*Provider) Type

func (p *Provider) Type() string

type SkyWalkingClient

type SkyWalkingClient struct {
	*graphql.Client
	Interval time.Duration
}

func NewSkyWalkingClient

func NewSkyWalkingClient(metric v1alpha1.Metric, kubeclientset kubernetes.Interface) (*SkyWalkingClient, error)

NewSkyWalkingClient creates a new GraphQL API client from metric configuration

func (SkyWalkingClient) Query

func (n SkyWalkingClient) Query(query string) (interface{}, error)

Query executes a GraphQL query against the given SkyWalking backend

type SkyWalkingClientAPI

type SkyWalkingClientAPI interface {
	Query(query string) (interface{}, error)
}

Jump to

Keyboard shortcuts

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