Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CollectJobInfos ¶ added in v0.4.0
func CollectJobInfos(ch chan<- prometheus.Metric, f *Fetcher)
func CollectMaster ¶ added in v0.4.0
func CollectMaster(ch chan<- prometheus.Metric, f *Fetcher)
func CollectMinions ¶ added in v0.4.0
func CollectMinions(ch chan<- prometheus.Metric, f *Fetcher)
Types ¶
type Exporter ¶
type Exporter struct {
// contains filtered or unexported fields
}
func (*Exporter) Collect ¶
func (e *Exporter) Collect(ch chan<- prometheus.Metric)
func (*Exporter) Describe ¶
func (e *Exporter) Describe(ch chan<- *prometheus.Desc)
type Fetcher ¶
type Fetcher struct {
// contains filtered or unexported fields
}
func NewFetcher ¶
* Builder of new Fetcher pseudo-object * Get the saltstack url, user, password * Return the fetch structure initialized
func (*Fetcher) Jobs ¶ added in v0.2.1
* Functions that retrieve the lasts terminated jobs * Returning Job list with : * - id: the job id * - function: state.apply, state.single, ... * - target_type: (grains, pcre, ...) * - user: the user that run the job * - startTime: the date of the beginning of the job
func (*Fetcher) Login ¶
func (f *Fetcher) Login() error
* Function associated to the Fetcher pseudo-object to login into the saltstack API * Return an error if it's occuring, nil otherwise
Click to show internal directories.
Click to hide internal directories.