influxdata / influxdata/influxdb

scraper: add scraper interval option

Open
#12,963 15 comments 12 reactions 0 assignees View on GitHub
area/api team/ui
Dominant language
Rust
Stars
31.7k
Forks
3.7k
Avg merge
13h 37m
Merged PRs (30d)
8

Description

https://github.com/influxdata/influxdb/blob/a64c4fd138ef11336de84b4bd42bc0f49b7d8d1d/cmd/influxd/launcher/launcher.go#L587-L591

Currently, scraper scheduler interval hard code to `10*time.Second`, and all scrapers share the same interval.

Should each scraper has an interval option?

cc @russorat

Contributor guide

Open the contributing guide

Research direction

Start with cmd/influxd/launcher/launcher.go at lines 587-591 and trace how the scraper scheduler is configured and shared by scrapers. Determine how an interval option could be represented per scraper, then verify that different scrapers can run on distinct schedules instead of one hard-coded interval.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
backend, databases
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.