Documentation
¶
Index ¶
- Constants
- Variables
- type Credentials
- type CredentialsSecret
- type Logger
- type Metrics
- type Target
- func (t *Target) Collect(ch chan<- prometheus.Metric)
- func (t *Target) Describe(ch chan<- *prometheus.Desc)
- func (t *Target) Equal(other *Target) bool
- func (t *Target) IsExporterStarted() bool
- func (t *Target) Labels() prometheus.Labels
- func (t *Target) StartExporter(reg *prometheus.Registry, credentials Credentials, ...) error
- func (t *Target) StopExporter(reg *prometheus.Registry)
- func (t *Target) String() string
- type TargetType
Constants ¶
View Source
const ( RemoteWriteTimeout = 30 * time.Second RemoteFlushDeadline = time.Minute )
View Source
const (
ExportersRecheckInterval = 10 * time.Second
)
Variables ¶
View Source
var ErrNotReady = errors.New("Scrape manager not ready")
Functions ¶
This section is empty.
Types ¶
type Credentials ¶ added in v1.2.0
type CredentialsSecret ¶ added in v1.2.0
type Metrics ¶
type Metrics struct {
// contains filtered or unexported fields
}
func (*Metrics) HttpHandler ¶
func (*Metrics) ListenConfigUpdates ¶
func (*Metrics) ListenPodEvents ¶ added in v1.2.0
type Target ¶ added in v1.2.0
type Target struct {
Type TargetType
Addr string
Credentials Credentials
CredentialsSecret CredentialsSecret
Params map[string]string
Description string
DiscoveredFromPodAnnotations bool
// contains filtered or unexported fields
}
func TargetFromConfig ¶ added in v1.2.0
func TargetFromConfig(i config.ApplicationInstrumentation) *Target
func TargetFromPod ¶ added in v1.2.0
func (*Target) Collect ¶ added in v1.2.0
func (t *Target) Collect(ch chan<- prometheus.Metric)
func (*Target) Describe ¶ added in v1.2.0
func (t *Target) Describe(ch chan<- *prometheus.Desc)
func (*Target) IsExporterStarted ¶ added in v1.2.0
func (*Target) Labels ¶ added in v1.2.0
func (t *Target) Labels() prometheus.Labels
func (*Target) StartExporter ¶ added in v1.2.0
func (t *Target) StartExporter(reg *prometheus.Registry, credentials Credentials, scrapeInterval, scrapeTimeout time.Duration, changeEmitter *emitter.ChangeEmitter, maxTablesPerDB int, trackSizes bool, excludeDatabases []string) error
func (*Target) StopExporter ¶ added in v1.2.0
func (t *Target) StopExporter(reg *prometheus.Registry)
type TargetType ¶ added in v1.2.0
type TargetType string
const ( TargetTypePostgres TargetType = "postgres" TargetTypeMysql TargetType = "mysql" TargetTypeRedis TargetType = "redis" TargetTypeMongodb TargetType = "mongodb" TargetTypeMemcached TargetType = "memcached" )
Click to show internal directories.
Click to hide internal directories.