Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Exporter ¶
type Exporter struct {
// contains filtered or unexported fields
}
Exporter collects Terraform cloud stats for the given organization and exports them using the prometheus metrics package.
func New ¶
func New(organization string, token string, healthSummary bool, logger log.Logger) (*Exporter, error)
New returns an initialized Exporter.
func (*Exporter) Collect ¶
func (e *Exporter) Collect(ch chan<- prometheus.Metric)
Collect fetches the stats from configured Terraform Cloud location and delivers them as Prometheus metrics. It implements prometheus.Collector.
func (*Exporter) Describe ¶
func (e *Exporter) Describe(ch chan<- *prometheus.Desc)
Describe describes all the metrics ever exported by the Terraform Cloud exporter. It implements prometheus.Collector.
Click to show internal directories.
Click to hide internal directories.