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.
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.
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.
Index ¶
- Variables
- type NodeExporterService
- func (n *NodeExporterService) AddTarget(target types.MonitoringTarget, labels map[string]string, jobName string) error
- func (n *NodeExporterService) ContainerName() string
- func (n *NodeExporterService) DotEnv() map[string]string
- func (n *NodeExporterService) Endpoint() string
- func (n *NodeExporterService) Init(opts types.ServiceOptions) error
- func (n *NodeExporterService) Name() string
- func (n *NodeExporterService) RemoveTarget(instanceID string) (string, error)
- func (n *NodeExporterService) SetContainerIP(ip net.IP)
- func (n *NodeExporterService) Setup(options map[string]string) error
Constants ¶
This section is empty.
Variables ¶
var ErrInvalidOptions = errors.New("invalid options for node exporter setup")
Functions ¶
This section is empty.
Types ¶
type NodeExporterService ¶
type NodeExporterService struct {
// contains filtered or unexported fields
}
func NewNodeExporter ¶
func NewNodeExporter() *NodeExporterService
func (*NodeExporterService) AddTarget ¶
func (n *NodeExporterService) AddTarget(target types.MonitoringTarget, labels map[string]string, jobName string) error
func (*NodeExporterService) ContainerName ¶
func (n *NodeExporterService) ContainerName() string
func (*NodeExporterService) DotEnv ¶
func (n *NodeExporterService) DotEnv() map[string]string
func (*NodeExporterService) Endpoint ¶
func (n *NodeExporterService) Endpoint() string
func (*NodeExporterService) Init ¶
func (n *NodeExporterService) Init(opts types.ServiceOptions) error
func (*NodeExporterService) Name ¶
func (n *NodeExporterService) Name() string
func (*NodeExporterService) RemoveTarget ¶
func (n *NodeExporterService) RemoveTarget(instanceID string) (string, error)
func (*NodeExporterService) SetContainerIP ¶
func (n *NodeExporterService) SetContainerIP(ip net.IP)