Skip to main content

discovery.file

Arguments

You can use the following arguments with discovery.file:

NameTypeDescriptionDefaultRequired
pathlist(string)List of file paths to discover targets from. Supports JSON format.yes
labelsmap(string)Static labels to attach to all discovered targets.no
scrape_intervaldurationInterval at which targets should be scraped.1mno
probe_typestringType of probe (http or icmp) for discovered targets.no

Example

discovery "file" "json_targets" {
path = ["./targets.json"]
}