lido_exporter

package
v1.7.1 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2024 License: Apache-2.0 Imports: 8 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 ErrInvalidOptions = errors.New("invalid options for lido exporter setup")

Functions

This section is empty.

Types

type LidoExporterParams

type LidoExporterParams struct {
	NodeOperatorID string
	RewardAddress  string
	Network        string
	RPCEndpoints   []string
	WSEndpoints    []string
	Port           uint16
	ScrapeTime     time.Duration
	LogLevel       string
}

type LidoExporterService

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

func NewLidoExporter

func NewLidoExporter(params LidoExporterParams) *LidoExporterService

func (*LidoExporterService) AddTarget

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

func (*LidoExporterService) ContainerName

func (l *LidoExporterService) ContainerName() string

func (*LidoExporterService) DotEnv

func (l *LidoExporterService) DotEnv() map[string]string

func (*LidoExporterService) Endpoint

func (l *LidoExporterService) Endpoint() string

func (*LidoExporterService) Init

func (*LidoExporterService) Name

func (l *LidoExporterService) Name() string

func (*LidoExporterService) RemoveTarget

func (l *LidoExporterService) RemoveTarget(instanceID string) (string, error)

func (*LidoExporterService) SetContainerIP

func (l *LidoExporterService) SetContainerIP(ip net.IP)

func (*LidoExporterService) Setup

func (l *LidoExporterService) Setup(options map[string]string) error

Jump to

Keyboard shortcuts

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