types

package
v0.0.0-...-12c1823 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2023 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Parameters

type Parameters struct {
	JobName string            `json:"job_name"`
	Targets []string          `json:"targets"`
	Labels  map[string]string `json:"labels"`
}

Parameters represents the paramaters of a Puppet resource

type Resource

type Resource struct {
	Certname   string     `json:"certname"`
	Parameters Parameters `json:"parameters"`
}

Resource represents a Puppet resource

type ScrapeConfig

type ScrapeConfig struct {
	JobName       string          `yaml:"job_name"`
	ProxyURL      string          `yaml:"proxy_url,omitempty"`
	StaticConfigs []*StaticConfig `yaml:"static_configs"`
}

ScrapeConfig represents a Prometheus scrape_config See https://prometheus.io/docs/prometheus/latest/configuration/configuration/#scrape_config

type StaticConfig

type StaticConfig struct {
	Targets []string          `yaml:"targets"`
	Labels  map[string]string `yaml:"labels"`
}

StaticConfig represents a Prometheus static_config See https://prometheus.io/docs/prometheus/latest/configuration/configuration/#static_config

Jump to

Keyboard shortcuts

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