Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type PrometheusBlocks ¶
type PrometheusBlocks struct { DiscoveryBlocks []prometheusBlock DiscoveryRelabelBlocks []prometheusBlock PrometheusScrapeBlocks []prometheusBlock PrometheusRelabelBlocks []prometheusBlock PrometheusRemoteWriteBlocks []prometheusBlock }
PrometheusBlocks is a type for categorizing Alloy blocks before appending them to an Alloy file. This gives control over the order they are written versus appending them in the order the Blocks are created.
func NewPrometheusBlocks ¶
func NewPrometheusBlocks() *PrometheusBlocks
func (*PrometheusBlocks) AppendToBody ¶
func (pb *PrometheusBlocks) AppendToBody(body *builder.Body)
AppendToBody attaches prometheus blocks in a specific order.
Order of blocks: 1. Discovery component(s) 2. Discovery relabel component(s) (if any) 3. Prometheus scrape component(s) 4. Prometheus relabel component(s) (if any) 5. Prometheus remote_write
func (*PrometheusBlocks) GetScrapeInfo ¶
func (pb *PrometheusBlocks) GetScrapeInfo() diag.Diagnostics
Click to show internal directories.
Click to hide internal directories.