-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Configuration: add a common config section for object storage (#4473)
* add common config for object storage Signed-off-by: Trevor Whitney <trevorjwhitney@gmail.com> * wip Signed-off-by: Trevor Whitney <trevorjwhitney@gmail.com> * add test to compactor config override Signed-off-by: Trevor Whitney <trevorjwhitney@gmail.com> * update changelog Signed-off-by: Trevor Whitney <trevorjwhitney@gmail.com> * changes from PR review * rename object_store -> storage * add local/filesytem support to common object storage config
- Loading branch information
1 parent
d8e6deb
commit 2427fab
Showing
9 changed files
with
619 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,23 @@ | ||
package common | ||
|
||
import ( | ||
"github.com/grafana/loki/pkg/storage/chunk/aws" | ||
"github.com/grafana/loki/pkg/storage/chunk/azure" | ||
"github.com/grafana/loki/pkg/storage/chunk/gcp" | ||
"github.com/grafana/loki/pkg/storage/chunk/local" | ||
"github.com/grafana/loki/pkg/storage/chunk/openstack" | ||
) | ||
|
||
// Config holds common config that can be shared between multiple other config sections | ||
type Config struct { | ||
PathPrefix string `yaml:"path_prefix"` | ||
PathPrefix string `yaml:"path_prefix"` | ||
Storage Storage `yaml:"storage"` | ||
} | ||
|
||
type Storage struct { | ||
S3 *aws.S3Config `yaml:"s3"` | ||
GCS *gcp.GCSConfig `yaml:"gcs"` | ||
Azure *azure.BlobStorageConfig `yaml:"azure"` | ||
Swift *openstack.SwiftConfig `yaml:"swift"` | ||
FSConfig *local.FSConfig `yaml:"filesystem"` | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.