Skip to content

Commit

Permalink
Add scrape timeout option in the prometheus configuration structure (#…
Browse files Browse the repository at this point in the history
…180)

* Add scrape timeout option in the prometheus configuration structure

* Add evaluation interval in config
  • Loading branch information
stylianosrigas committed Oct 19, 2020
1 parent 88d4b7e commit 98f5060
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lambda-functions/prometheus-dns-registration-service/main.go
Expand Up @@ -53,8 +53,10 @@ type config struct {
Match []string `yaml:"match[]"`
Module []string `yaml:"module"`
} `yaml:"params"`
ScrapeInterval string `yaml:"scrape_interval"`
StaticConfigs []struct {
ScrapeInterval string `yaml:"scrape_interval"`
ScrapeTimeout string `yaml:"scrape_timeout"`
EvaluationInterval string `yaml:"evaluation_interval"`
StaticConfigs []struct {
Targets []string `yaml:"targets"`
Labels struct {
ClusterID string `yaml:"clusterID"`
Expand Down

0 comments on commit 98f5060

Please sign in to comment.