Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

analyse: consider add ability to pass --time-range (or --from, --to) flag #234

Open
Dentrax opened this issue Jan 18, 2022 · 0 comments
Open

Comments

@Dentrax
Copy link

Dentrax commented Jan 18, 2022

Currently, we can't set the default time range (window) between start and end times.

$ cortextool analyse prometheus --address http://10.10.10.10:30090 --log.level="debug"

INFO[0000] log level set to debug
cortextool: error: error querying for metric names: Get "http://10.10.10.10:30090/api/v1/label/__name__/values?end=1642510924.832703&start=1642510324.832703": dial tcp 10.10.10.10:30090: connect: operation timed out, try --help

The default duration between two times is 10 minutes: end=1642510924.832703&start=1642510324.832703

prometheusAnalyseCmd.Flag("time-range", "duration time range").
		Default("10m").
		DurationVar(&paCmd.timeRange)

// same for grafana and ruler?

@eminaktas @yasintahaerol

@Dentrax Dentrax changed the title analyse: consider add ability to pass --duration flag analyse: consider add ability to pass --time-range (or --from, --to) flag Jan 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant