grafana

package
v1.7.2 Latest Latest
Warning

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

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

Documentation

Overview

Copyright 2022 Nethermind

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrConfigNotFound = errors.New("configuration file not found")
	ErrInvalidOptions = errors.New("invalid options for grafana setup")
)

Functions

This section is empty.

Types

type GrafanaService

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

GrafanaService implements the ServiceAPI interface for a Grafana service.

func NewGrafana

func NewGrafana() *GrafanaService

NewGrafana creates a new GrafanaService.

func (*GrafanaService) AddTarget

func (g *GrafanaService) AddTarget(target types.MonitoringTarget, labels map[string]string, jobName string) error

func (*GrafanaService) ContainerName

func (g *GrafanaService) ContainerName() string

func (*GrafanaService) DotEnv

func (g *GrafanaService) DotEnv() map[string]string

DotEnv returns the dotenv variables and default values for the Grafana service.

func (*GrafanaService) Endpoint

func (g *GrafanaService) Endpoint() string

func (*GrafanaService) Init

func (g *GrafanaService) Init(opts types.ServiceOptions) error

Init initializes the Grafana service with the given options.

func (*GrafanaService) Name

func (g *GrafanaService) Name() string

func (*GrafanaService) RemoveTarget

func (g *GrafanaService) RemoveTarget(instanceId string) (string, error)

func (*GrafanaService) SetContainerIP

func (g *GrafanaService) SetContainerIP(ip net.IP)

func (*GrafanaService) Setup

func (g *GrafanaService) Setup(options map[string]string) error

Setup sets up the Grafana service provisioning and configuration with the given dotenv values.

Jump to

Keyboard shortcuts

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