collector

package
v0.0.0-...-7d1d179 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2018 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CheckpointMetrics

type CheckpointMetrics struct {
	JobName  string
	Count    int64
	Duration int
	Size     int64
}

type ExceptionMetrics

type ExceptionMetrics struct {
	JobName string
	Count   int
}

type Job

type Job struct{}

func (*Job) GetMetrics

func (j *Job) GetMetrics(flinkJobManagerUrl string) JobMetrics

type JobMetrics

type JobMetrics struct {
	JobStatusMetrics      []JobStatusMetrics
	ReadWriteTotalMertics ReadWriteTotalMertics
	CheckpointMetrics     []CheckpointMetrics
	ExceptionMetrics      []ExceptionMetrics
}

type JobStatusMetrics

type JobStatusMetrics struct {
	JobName    string
	Created    int
	Running    int
	Failing    int
	Failed     int
	Cancelling int
	Canceled   int
	Finished   int
	Restarting int
	Suspended  int
	Unknown    int
}

see https://github.com/apache/flink/blob/release-1.1.1/flink-runtime/src/main/java/org/apache/flink/runtime/jobgraph/JobStatus.java TODO It's maybe need modify, After Flink version up.

type Overview

type Overview struct {
	TaskManagers   int
	SlotsTotal     int
	SlotsAvailable int
	JobsRunning    int
	JobsFinished   int
	JobsCancelled  int
	JobsFailed     int
	FlinkVersion   string
}

func (*Overview) GetMetrics

func (o *Overview) GetMetrics(flinkJobManagerUrl string) Overview

type ReadWriteMertics

type ReadWriteMertics struct {
	JobName      string
	ReadBytes    int64
	WriteBytes   int64
	ReadRecords  int64
	WriteRecords int64
}

type ReadWriteTotalMertics

type ReadWriteTotalMertics struct {
	ReadBytesTotal    int64
	WriteBytesTotal   int64
	ReadRecordsTotal  int64
	WriteRecordsTotal int64
	Details           []ReadWriteMertics
}

Jump to

Keyboard shortcuts

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