Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsExecutionFailed ¶
IsExecutionFailed asserts executionFailedError.
func IsNoTokenExpiration ¶
IsNoTokenExpiration asserts noTokenExpirationError.
Types ¶
type Exporter ¶
type Exporter struct {
// contains filtered or unexported fields
}
Exporter implements metrics exporter for Vault tokens.
func (*Exporter) Collect ¶
func (e *Exporter) Collect(ch chan<- prometheus.Metric)
Collect implements metric collection by reading Vault token from files and checking ttl of this token by calling Vault API /auth/token/lookup-self. Only first line in every file is read. Files expected to contain either just a uuid token or VAULT_TOKEN=<token> string.
func (*Exporter) Describe ¶
func (e *Exporter) Describe(ch chan<- *prometheus.Desc)
Describe returns metric metadata.
Click to show internal directories.
Click to hide internal directories.