Skip to main content

Create the configuration file

For configuration of Zookoo, you need to create a configuration file where you will describe your targets, and where you want to send the data generated from the scrapping.

This is a simple configuration file to scrape a single target.

# config.hcl
defaults {
log_level = "info"
}

probe "http" "default" {
targets = [
{
url = "https://google.com/",
labels = { "env" = "test", "service_name" = "google" }, scrap_interval = "10s"
}
]

forward_to = [exporter.otlp.default]
}

exporter "otlp" "default" {
url = "http://localhost:4317"
}