Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Store command flag parsing and run args refactoring (#4061)
* Refactored store cmd Adds `storeConfig` struct which contains all necessary params for store component. Registers flags to this config and replaces all params in runStore with single conf struct Signed-off-by: someshkoli <[email protected]> * adds missing prom/common/model package Signed-off-by: someshkoli <[email protected]> * removes duplicate min-time flag Signed-off-by: someshkoli <[email protected]> * Updates docs and fixes failing e2e test - Updated docs - fixes typo -> `app` to `cmd` which caused duplicate flag declaration - changed indexCacheSizeBytes type from uint64 to model.bytes - replaced maxconcurrent with max concurrency Signed-off-by: someshkoli <[email protected]> * changed chunkpoolsize and indexcachesuzebytes from to bytes Signed-off-by: someshkoli <[email protected]> * fixes nil store component passing Signed-off-by: someshkoli <[email protected]> * fixes improper cachebytes variable type Signed-off-by: someshkoli <[email protected]> * Adds register flag func for all flags Signed-off-by: someshkoli <[email protected]> * Update cmd/thanos/store.go fix str formatting on min/max time Co-authored-by: Kemal Akkoyun <[email protected]> Signed-off-by: someshkoli <[email protected]> * renames grpclogging import Co-authored-by: Bartlomiej Plotka <[email protected]> Signed-off-by: someshkoli <[email protected]> * renames commonmodel import Co-authored-by: Bartlomiej Plotka <[email protected]> Signed-off-by: someshkoli <[email protected]> * updates grpclogging and commommodel imports Signed-off-by: someshkoli <[email protected]> Co-authored-by: Kemal Akkoyun <[email protected]> Co-authored-by: Bartlomiej Plotka <[email protected]>
- Loading branch information