Documentation ¶
Index ¶
Constants ¶
View Source
const METADATA_ENDPOINT = "http://169.254.169.254/latest/meta-data/"
View Source
const TOKEN_ENDPOINT = "http://169.254.169.254/latest/api/token"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Collector ¶
type Collector struct { MetadataEndpoint string SpotScrapeSuccessful *prometheus.Desc SpotTerminationIndicator *prometheus.Desc SpotTerminationTime *prometheus.Desc ScheduledScrapeSuccessful *prometheus.Desc ScheduledActionIndicator *prometheus.Desc ScheduledActionStartTime *prometheus.Desc ScheduledActionEndTime *prometheus.Desc }
func NewCollector ¶
func NewCollector() *Collector
func (*Collector) Collect ¶
func (c *Collector) Collect(ch chan<- prometheus.Metric)
func (*Collector) Describe ¶
func (c *Collector) Describe(ch chan<- *prometheus.Desc)
type InstanceAction ¶
Click to show internal directories.
Click to hide internal directories.