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

Fork cortex chunk storage into Loki. #3842

Merged
merged 757 commits into from
Jul 27, 2021
Merged
Show file tree
Hide file tree
Changes from 250 commits
Commits
Show all changes
757 commits
Select commit Hold shift + click to select a range
7910fa4
Refactor enocding.Chunk.Add (#1706)
codesome Oct 18, 2019
41ba1b4
Removed unused code (#1740)
pracucci Oct 22, 2019
265f37d
Remove redundant info in log
codesome Oct 24, 2019
351377d
Adds v11 schema (#1538)
cyriltovena Oct 25, 2019
7b2510c
Feat/blocks (#1695)
thorfour Oct 30, 2019
1f078de
Fix chunk reading from ancient v3 schema
bboreham Nov 4, 2019
d5ac02f
Use session.NewSession in order to use AssumeRoleWithWebIdentity
adamjohnson01 Nov 9, 2019
4bed557
removed dynamo option, to make storage client names consistent for al…
rsteneteg Nov 10, 2019
213b8d1
Improve reporting of some chunk errors (#1789)
bboreham Nov 11, 2019
3c7f46b
Fixes store duplicate label names and values. (#1790)
cyriltovena Nov 14, 2019
5bca3b3
Merge pull request #1803 from adamjohnson01/aws-session
jtlisi Nov 22, 2019
60d4dfd
Lower log level for query time range validation (#1860)
pracucci Dec 2, 2019
41684a5
Removed chunk.metadataInIndex because unused (#1836)
pracucci Dec 3, 2019
9a6cfd2
Doing an initial synch and then sleep to space out subsequent cycles.…
tcl00taco Dec 11, 2019
df0e467
Adding Microsoft Azure Blob storage support for chunks
khaines Oct 25, 2019
2d87c9f
yaml naming style update & readme edit
khaines Dec 16, 2019
2c3e541
adding TLS and password options to RedisCache config
khaines Dec 17, 2019
2855375
documentation corrections from PR feedback
khaines Jan 6, 2020
388b79f
Added KV Store client that mirrors one backend to another (#1749)
pstibrany Jan 7, 2020
8b08f15
Added tool to automatically generate config file documentation (#1952)
pracucci Jan 16, 2020
efbeecd
fix calculation of expected tables and create tables from upcoming sc…
sandeepsukhani Jan 22, 2020
d666947
Remove error return from Cache.Stop() (#2030)
bboreham Jan 24, 2020
ef477f8
querier: move chunk stores MinChunkAge to QueryStoreAfter (#1893)
thorfour Jan 28, 2020
2fcaaa5
adding retry options for cassandra and updating docs (#2054)
khaines Feb 1, 2020
2dd8efd
fix typos (#2067)
yeya24 Feb 3, 2020
14f8736
Refactor: change index key markers from slice to single byte (#1786)
bboreham Feb 4, 2020
dd7fabe
Bump Cassandra default connect and query timeouts (#2076)
gouthamve Feb 5, 2020
031709a
Fixing & Simplifying Azure Blob Download (#2074)
khaines Feb 6, 2020
7279221
support for registering custom index clients, added new methods to ob…
sandeepsukhani Feb 7, 2020
b17042f
Remove usage of "golang.org/x/net/context" (#2099)
pstibrany Feb 10, 2020
a633c1c
goimports -local github.com/cortexproject/cortex -w pkg/ cmd/ tools/ …
pstibrany Feb 10, 2020
20395b4
In practice bigtable latency is often more than 1 s, adding more buck…
Feb 11, 2020
187ad97
don't exec create keyspace if it exists (#2032)
Wing924 Feb 11, 2020
d0e5ecb
Remove extra newlines in imports and document Cortex formatting (#2111)
pstibrany Feb 11, 2020
b440866
Stop table-manager loop early, if it is done (#2121)
pstibrany Feb 13, 2020
6d667ec
add option to configure approved password authenticators in Cassandra…
jtlisi Feb 14, 2020
2d12832
Fix default_validity cache setting typo (#2140)
taharah Feb 17, 2020
1218ac8
Rename chunk.ObjectClient and implement generic object store chunk cl…
jtlisi Feb 17, 2020
107d24a
added `password_file` configuration options to enable reading Cassand…
Wing924 Feb 18, 2020
b8c71bc
chunk slice support (#2157)
sandeepsukhani Feb 20, 2020
31d12a9
Upgrade gogo/protobuf to 1.3.0 (#2055)
cyriltovena Feb 20, 2020
1247427
Distributing sum queries (#1878)
owen-d Feb 21, 2020
72cc4ac
delete chunk and seriesIDs (#2168)
sandeepsukhani Feb 21, 2020
5dc7611
Update code to fix almost all pre-existing lint errors (#2008)
zendern Feb 24, 2020
547efd2
Hide secretes on the /config endpoint. (#2176)
tomwilkie Feb 25, 2020
874ded1
Break background cache writes into batches of 100 (#2135)
bboreham Feb 28, 2020
e4a94bc
delete series api and purger to purge data requested for deletion (#2…
sandeepsukhani Mar 3, 2020
31a7eb4
Convert Cortex components to services (#2166)
pstibrany Mar 4, 2020
981a04e
Upgrade Prometheus client to 1.5.0 (#2205)
pracucci Mar 4, 2020
11fe44b
add metrics for number of failures in creation and deletion of tables…
gouthamve Mar 5, 2020
1a8abfd
services: add failure case to Stopping function (#2231)
pstibrany Mar 9, 2020
c84d0fb
Update the default configs for spread flush and bigchunks (#2207)
tomwilkie Mar 9, 2020
a2ba001
Remove support schema flags, only use config file. (#2221)
gouthamve Mar 9, 2020
21516ad
404 handling and DeleteObject implementations (GCS & S3) (#2260)
jtlisi Mar 12, 2020
906efdd
e2e: Fixed WaitSumMetrics to fail on non existing metric (#2256)
bwplotka Mar 12, 2020
a389d1d
Support 1w, 1y for retention and table period take 2 (#2252)
gouthamve Mar 12, 2020
1e7749d
added FIFO cache metrics for current number of entries and memory usa…
Mar 13, 2020
bca670f
query time filtering of chunks for pending delete requests (#2214)
sandeepsukhani Mar 13, 2020
1c13de1
Allow more connection reuse for DynamoDB and S3 calls (#2268)
bboreham Mar 16, 2020
f880416
Attach memcached span logs to the correct span (#2282)
bboreham Mar 17, 2020
d2512c7
Removes all the occurences of omitempty (#2209)
jaybatra26 Mar 19, 2020
a23676c
Allow usage of host lookups for memcache discovery (#2281)
gouthamve Mar 19, 2020
88ee167
Make each DNS provider register a diff metric (#2303)
gouthamve Mar 20, 2020
a09490d
Ruler API and ObjectStore Backend (#2269)
jtlisi Mar 20, 2020
8181398
Fix issues around multiple registrations (#2309)
gouthamve Mar 20, 2020
72132b6
Prefix chunks cache flags. (#2241)
gouthamve Mar 24, 2020
5d22b3a
enforce sharding defaults in period configs (#2332)
owen-d Mar 26, 2020
00249e9
Saner and consistent YAML fields in config (#2273)
gouthamve Mar 26, 2020
bdcc96e
Remove deprecated flags from months ago (#2339)
gouthamve Mar 28, 2020
1411021
Add metric for deprecated flags set. (#2341)
gouthamve Mar 30, 2020
cf0ae92
Renamed table-manager metrics to remove cortex_dynamo prefix (#2307)
pracucci Mar 30, 2020
6413dbc
Remove AWS based autoscaler code (#2328)
gouthamve Mar 30, 2020
e27b797
Saner defaults for configs (#2344)
gouthamve Mar 30, 2020
3faf820
Rename rest of the dynamodb flags (#2359)
gouthamve Mar 31, 2020
38b009c
Print a warning when using an experimental feature (#2361)
gouthamve Mar 31, 2020
65133a5
add delete index support for dynamodb, cassandra and bigtable (#2363)
sandeepsukhani Apr 1, 2020
42c3b3c
stop index client while stopping store (#2377)
sandeepsukhani Apr 1, 2020
ed818d0
FIFO cache to support eviction based on memory usage (#2319)
Apr 3, 2020
c4c5d40
Cassandra: Fix TLS host verification (#2109)
joshmue Apr 3, 2020
9b34a8a
Generalize client pool (#2394)
pracucci Apr 6, 2020
728ca9a
add support for creating more ObjectClient types and flush file immed…
sandeepsukhani Apr 7, 2020
81746a8
support for registering custom table client with index client (#2408)
sandeepsukhani Apr 8, 2020
a06352b
API Implementation (#2372)
jtlisi Apr 8, 2020
5a08b8a
Define store-gateway protobuf and client (#2433)
pracucci Apr 10, 2020
b3c3a2c
Refactor Schema to make code more explicit about interface usage (#2444)
pstibrany Apr 10, 2020
558b877
Allow 1w and 1y when setting store.* (#2454)
Wing924 Apr 14, 2020
1041ed8
Move validation code into schema creation (#2451)
pstibrany Apr 15, 2020
5dc91ea
Regex set optimization when querying for chunks in index (#2446)
pstibrany Apr 15, 2020
4a5cbd2
Regex set optimisation when looking series in ingester (#2475)
gouthamve Apr 17, 2020
c79e198
Add initial per tenant query and chunk metrics AND RENAME SOME EXISTI…
gouthamve Apr 17, 2020
0302d22
metrics for monitoring delete requests (#2445)
sandeepsukhani Apr 17, 2020
1904b15
return directories in respose from List calls to object stores (#2494)
sandeepsukhani Apr 22, 2020
1ec4180
Shortcut DoParallelQueries for single-query case (#2280)
bboreham Apr 22, 2020
c681ee4
Add a counter to track chunks which were de-duplicated at store time.…
slim-bean Apr 22, 2020
8a9f4ff
Adds object storage client for Swift OpenStack (#2440)
cyriltovena Apr 24, 2020
a1d518d
cache invalidation using cache gen numbers to invalidate only specifi…
sandeepsukhani Apr 27, 2020
a55fd69
allow human-readable memory size in FifoCache config (#2527)
Apr 29, 2020
1221590
Handling of empty directories in filesystem object client (#2537)
sandeepsukhani Apr 29, 2020
c19ee03
Create index table from local table client for boltdb (#2441)
adityacs Apr 30, 2020
c323f72
Fixed tests (#2551)
pracucci Apr 30, 2020
024b44e
Add Redis cache options used by Redigo (#2550)
kwSeo May 2, 2020
ad60ede
Don't write empty values to the index. (#2557)
tomwilkie May 5, 2020
f1802ba
Add option to limit concurrent queries to Cassandra. (#2562)
tomwilkie May 7, 2020
f546383
Use newer AWS API for paginated queries (#2452)
bboreham May 11, 2020
bf07c77
Reduces allocation in `GetParallelChunks`. (#2581)
cyriltovena May 12, 2020
d146c37
support for cancellation of delete requests (#2555)
sandeepsukhani May 15, 2020
c7e8e27
Upgrade Thanos and Prometheus (#2604)
codesome May 22, 2020
df7481c
Translate internal store errors to prometheus API errors. (#2571)
pstibrany May 26, 2020
0afb1e2
Upgrade Thanos to master (#2634)
codesome May 27, 2020
9767b49
cassandra-cql-fixup (#2639)
storyicon May 28, 2020
d0b12c1
gRPC Storage Service (#2220)
VineethReddy02 May 29, 2020
269a004
Provisioning of table for delete requests using table manager (#2546)
sandeepsukhani Jun 2, 2020
5efba7f
Allow users to configure the number of TCP connections per host for C…
tomwilkie Jun 2, 2020
b78f9de
Disabling of chunks write dedupe (#2670)
sandeepsukhani Jun 3, 2020
f9bd0fd
Set cassandra default reconnect interval to 1s (#2687)
annanay25 Jun 4, 2020
27f38a7
improve query speed when does not enable caching (#2645)
ussr-admin Jun 4, 2020
bd83c85
do not invalidate chunks cache when series are deleted (#2668)
sandeepsukhani Jun 4, 2020
8e53379
Various Cassandra client tweaks (#2684)
tomwilkie Jun 5, 2020
a4aba35
Add Cassandra table options flag (#2575)
kwSeo Jun 8, 2020
89de65c
load delete requests frequently if there are more pending requests fo…
sandeepsukhani Jun 15, 2020
86d93ef
Fix Redis cache error when a query has no chunks to lookup (#2700)
pracucci Jun 15, 2020
23facdd
more metrics in purger for monitoring delete requests processing prog…
sandeepsukhani Jun 18, 2020
f7f5e51
change flag DisableChunksDeduplication to DisableIndexDeduplication f…
sandeepsukhani Jun 19, 2020
6574819
Add memcached server address to Set() error (#2736)
pracucci Jun 19, 2020
17d06ae
make delete request cancellation duration configurable and rename dat…
sandeepsukhani Jun 22, 2020
12b8b2f
Remove -store.fullsize-chunks option (#2656)
bboreham Jun 22, 2020
1818bdf
fix: set correct number of keys in background cache metrics (#2764)
taharah Jun 23, 2020
7ec1716
Rename purger target flag (#2777)
sandeepsukhani Jun 25, 2020
167fd0f
Support querying multiple stores by Querier (#2747)
pstibrany Jun 25, 2020
e997537
refactor processing of writes in boltdb index client (#2771)
sandeepsukhani Jun 25, 2020
fb0ee71
Fixes an issue in the index chunks/series intersect code. (#2796)
cyriltovena Jun 26, 2020
107010f
Fixes an issue in the index chunks/series intersect code. (#2796)
cyriltovena Jun 26, 2020
ff37693
fix cache generation keys prefix (#2800)
sandeepsukhani Jun 29, 2020
e6fa03c
track oldest delete request age since their cancellation period is ov…
sandeepsukhani Jun 30, 2020
7483b65
add support for delete chunks in index stores (#2801)
sandeepsukhani Jun 30, 2020
417b3d8
Merge branch 'release-1.2'
bboreham Jul 1, 2020
3c8b348
Add -store.max-query-length support to blocks storage (#2826)
pracucci Jul 6, 2020
29107ba
fix a flaky test in purger (#2841)
sandeepsukhani Jul 8, 2020
e4f9647
S3 Config Improvements (#2831)
joe-elliott Jul 8, 2020
8344fdc
fix a race in purger managing in process delete requests (#2817)
sandeepsukhani Jul 9, 2020
b285805
Fix up;oads => uploads typo (#2888)
roidelapluie Jul 16, 2020
6e3cbe2
Little touch ups to documentation (#2892)
pracucci Jul 20, 2020
a673f74
make fs object client windows compatible and add a method to get path…
sandeepsukhani Jul 21, 2020
0ed1041
Allow for Custom Transport on Ruler s3 Client (#2891)
joe-elliott Jul 21, 2020
2c6a44a
fix calling of stop method on series store (#2911)
sandeepsukhani Jul 22, 2020
b9064e4
loads schemacfg with correct flagset (#2917)
owen-d Jul 23, 2020
32b5a9b
fix panic when using cassandra in multiple periodic configs or as a s…
sandeepsukhani Jul 23, 2020
e85298e
Remove global metrics registry and global logger in cache package (#2…
yeya24 Jul 27, 2020
459b79c
Cleaned up blocks storage config (#2937)
pracucci Jul 28, 2020
9a099c1
Replace usage of sync/atomic with uber-go/atomic (#2951)
jvrplmlmn Jul 30, 2020
c4d691e
Translate errors to PromQL errors by wrapping queryable. (#2941)
pstibrany Jul 31, 2020
48dcb9e
Add validation check for chunks and index in schema config (#2732)
jaybatra26 Jul 31, 2020
d3724c7
Support Snappy compression for gRPC (#2940)
Wing924 Jul 31, 2020
d68fc89
make a copy of KVs coming from boltdb which are only valid until the …
sandeepsukhani Aug 3, 2020
40df163
Support azure storage of azurechina,azuregerman,azureusgov (#2988)
zbbkeepgoing Aug 11, 2020
f5961e6
integration test for deletion of series (#2946)
sandeepsukhani Aug 12, 2020
0551944
Be consistent with span logging, set error=true and use otlog.Error (…
cstyan Aug 12, 2020
949f94b
Expose dynamodb backoff config (#3026)
jdbaldry Aug 14, 2020
51e601b
Close spanlogger (#3043)
joe-elliott Aug 14, 2020
3a3ba03
change: increase default cassandra RF to 3 and update docs (#3007)
jtlisi Aug 17, 2020
c5baf43
Make tests build on go1.15 (#3052)
gouthamve Aug 18, 2020
1aa34aa
Simpler instrumentation for non-batched memcached (#3046)
bboreham Aug 19, 2020
a98cfa4
Move regex opt to after lookup (#2973)
gouthamve Aug 25, 2020
d283e6f
Add a circuit-breaker to memcached dial calls (#3051)
bboreham Aug 25, 2020
ed9d606
Fixed CLI flags for memcached circuit breaker (#3086)
pracucci Aug 26, 2020
18d70e0
Use custom bucket size for indexEntriesPerChunk (#3021)
jaybatra26 Aug 28, 2020
be7cd8e
Blocksconvert suite of tools for converting existing chunks data to b…
pstibrany Sep 2, 2020
c663977
retry processing of failed delete requests (#2926)
sandeepsukhani Sep 3, 2020
04be3f9
Honor configured Cassandra consistency when creating the keyspace (#3…
pracucci Sep 14, 2020
11f5407
add store method for getting fetcher for a chunk (#3164)
sandeepsukhani Sep 14, 2020
9c55b27
Added support for Redis Cluster and Redis Sentinel (#2961)
Sep 14, 2020
1e06f93
Move Cassandra and Blocks storage to GA (#3180)
pracucci Sep 15, 2020
021b3c8
Fail the config validation if an empty node is set at root level (#3080)
pracucci Sep 15, 2020
8cbf91f
Release the lock when loading of cache gen number fails. (#3182)
pstibrany Sep 15, 2020
7afdc01
Turn memcached circuit-breaker on by default (#3189)
bboreham Sep 16, 2020
f2c65c8
Turn memcached circuit-breaker on by default (#3189) (#3190)
pracucci Sep 16, 2020
ce72a2a
Improve DynamoDB BatchWrite error messages (#3215)
siavashs Sep 22, 2020
6f1287f
Clarify that schema config is used only by the chunks storage (#3224)
pracucci Sep 23, 2020
463ddb0
Removed the deprecated flag -config-yaml (#3225)
pracucci Sep 23, 2020
1b64d17
add a QueryWithCursor method for boltdb to help doing multiple querie…
sandeepsukhani Sep 24, 2020
7290547
ObjectClient List refactoring (#3238)
pstibrany Sep 25, 2020
4ea33f4
Speed up the listing of rule groups on the Ruler Configuration API (#…
gotjosh Oct 2, 2020
286d7be
Shuffle-sharding support in Ruler. (#3235)
pstibrany Oct 2, 2020
df60cd2
Merged release-1.4
pracucci Oct 2, 2020
0919468
Clarify 'implements ChunkStore' doc comments (#3270)
bvwells Oct 5, 2020
bd7db28
Split listing and loading rule groups in rules.RuleStore interface (#…
pstibrany Oct 7, 2020
61f27b9
Don't set selected attributes when using delimiter. (#3292)
pstibrany Oct 7, 2020
4a0668c
Redis cache: added parameter to disable SSL certificate verification …
Oct 8, 2020
831a7f0
Increased -<prefix>.redis.timeout default from 100ms to 500ms (#3301)
pracucci Oct 9, 2020
aa56727
Clarify how to configure auth for BigTable and GCS (#3311)
pracucci Oct 9, 2020
bf42c68
Upgrade build-image from Debian stretch to buster (#3323)
pracucci Oct 12, 2020
aed2469
Use Promauto (#3263)
roidelapluie Oct 13, 2020
3f8a530
fix common prefixes returned by List method of s3 client (#3358)
sandeepsukhani Oct 21, 2020
ca8d177
fix timeout handling in GetObject for azure and gcs (#3285)
sandeepsukhani Oct 21, 2020
1a3501d
Support for specifying SSL certificates for Cassandra client (#3384)
bradfordcp Oct 28, 2020
1ddcaa5
Created dedicated section for chunks storage in the doc (#3407)
pracucci Oct 29, 2020
c06b917
Intern Prometheus MultiError to solve blocking circular dependency be…
pracucci Oct 30, 2020
1d876f7
Ensure grpc keepalive on all clients (#3431)
pracucci Nov 2, 2020
6956ab3
Upgrade Prometheus and Thanos (#3426)
pracucci Nov 2, 2020
0261243
Added -querier.max-query-lookback and fixed -querier.max-query-into-f…
pracucci Nov 4, 2020
8680148
add support for slicing of chunk in encodings (#3472)
sandeepsukhani Nov 10, 2020
58b2268
Safely check pointer in aws client before using them. (#3505)
cyriltovena Nov 18, 2020
4245565
Reuse components slice when parsing chunk time range value. (#3501)
cyriltovena Nov 18, 2020
81ee496
Remove dummy credentials from AWS config (#3443)
somdoron Nov 18, 2020
98c4dfc
Use formatMatcher only once. (#3517)
cyriltovena Nov 19, 2020
b848b8b
Improve delete index query signature. (#3516)
cyriltovena Nov 20, 2020
1762184
Add chunk.EncodeTo to allow to pass your own buffer. (#3521)
cyriltovena Nov 23, 2020
7fe6d3e
Add tenant resolver (#3486)
simonswine Nov 26, 2020
f5fb694
Tenant deletion: API, ingester. (#3549)
pstibrany Dec 3, 2020
36bd072
Add signature v2 support for S3 chunks client (#3560)
simonswine Dec 3, 2020
8689a57
Perform final tenant cleanup after last block is deleted. (#3613)
pstibrany Jan 4, 2021
887bebe
Implement result cache for tenant query federation (#3640)
simonswine Jan 6, 2021
b9229fa
poll for metric update to avoid race causing a flaky test (#3657)
sandeepsukhani Jan 7, 2021
8a534ca
Upgraded Thanos (#3661)
pracucci Jan 8, 2021
7a5933b
Log error tenant ID using the user label (#3680)
simonswine Jan 12, 2021
ba96dcb
Move some utility functions out of `util` and into their own packages…
kminehart Jan 26, 2021
9da230c
Adds support to S3 server side encryption using AWS KMS (#3651)
lucasvmiguel Jan 28, 2021
f960556
Support other TLS modes than mutual auth in Client (#3156)
simonswine Jan 29, 2021
19210b9
Remove util.Logger and move util.InitLogger to util/log package. (#3781)
pstibrany Feb 3, 2021
84c0916
Add S3 KMS support to blocks storage client (#3810)
pracucci Feb 11, 2021
348d6d3
Moved common protobuf code to new cortexpb package and introduced `di…
pstibrany Feb 15, 2021
038c5af
Tenant deletion: ruler support. (#3750)
pstibrany Feb 15, 2021
f6e3b29
Add per-tenant S3 KMS SSE encryption key support to blocks storage (#…
pracucci Feb 22, 2021
8d69016
Rename Blocks Purger to Tenant Deletion. (#3852)
pstibrany Feb 22, 2021
270b37e
chore: remove global logger from the ruler package (#3820)
jtlisi Feb 23, 2021
e28f61c
Refactor rulerstore packages (#3887)
pracucci Mar 1, 2021
fc38d4d
Stream chunks from blocks-ingester to querier (#3889)
pstibrany Mar 4, 2021
808c79b
Move rules deletion from Purger to Ruler API. (#3899)
pstibrany Mar 5, 2021
8861c2f
Removed usage of deprecated pkg/ingester/client stuff (#3915)
pracucci Mar 10, 2021
a3e2c60
Support memcached max_item_size (#3929)
yeya24 Mar 11, 2021
7f7d773
Memcached: Fix comment typos (#3944)
aknuds1 Mar 12, 2021
be6ae5a
Convert all validation.Limits durations to model.Duration (#4044)
56quarters Apr 2, 2021
86f4f52
Use enums to represent the clients (#1395) (#4048)
ChinYing-Li Apr 8, 2021
9ef4f53
Allow configuration of Cassandra's host selection policy (#4069) (#4069)
ChinYing-Li Apr 16, 2021
479644b
Remove config options deprecated in Cortex 1.6 (#4101)
pracucci Apr 23, 2021
b646ccc
stop the index search early based on query params (#4111)
sandeepsukhani Apr 26, 2021
58120d1
Enforce "max chunks per query" limit in ingesters too (#4125)
pracucci Apr 28, 2021
c9f3ffa
purger: fix nil value in column range for BatchWrite query (#4128)
jakubgs May 6, 2021
02ebf5b
Implement blocksconvert scanner for DynamoDB v9 schema (#3828)
bboreham May 10, 2021
e89603b
Add Cassandra support to blocksconvert (#3795)
ubcharron May 18, 2021
5c24fc9
return ErrStorageObjectNotFound when object requested for download is…
sandeepsukhani May 24, 2021
341793a
return ErrStorageObjectNotFound when a non-existent object is being d…
sandeepsukhani May 26, 2021
128f86d
Fixed Cache fetch error on Redis Cluster (#4056)
kamijin-fanta May 27, 2021
79c9f8f
Add the ability to disable OpenCensus within GCS client. (#4219)
cyriltovena May 27, 2021
7d2dc93
Add 'pkg/storage/chunk/' from commit '79c9f8fbe2a9d4457d8987176f627ae…
cyriltovena Jun 11, 2021
f668f81
Lint, protobuf generation and prometheus metrics.
cyriltovena Jun 11, 2021
b0b07df
Merge remote-tracking branch 'upstream/main' into forktex-chunk
cyriltovena Jun 15, 2021
e3e5271
Merge branch 'main' into forktex-chunk
cyriltovena Jul 27, 2021
703685f
Merge remote-tracking branch 'upstream/main' into forktex-chunk
cyriltovena Jul 27, 2021
fdc0502
lint
cyriltovena Jul 27, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
8 changes: 4 additions & 4 deletions .drone/drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,28 +12,28 @@ workspace:

steps:
- name: test
image: grafana/loki-build-image:0.14.0
image: grafana/loki-build-image:0.16.0
commands:
- make BUILD_IN_CONTAINER=false test
depends_on:
- clone

- name: lint
image: grafana/loki-build-image:0.14.0
image: grafana/loki-build-image:0.16.0
commands:
- make BUILD_IN_CONTAINER=false lint
depends_on:
- clone

- name: check-generated-files
image: grafana/loki-build-image:0.14.0
image: grafana/loki-build-image:0.16.0
commands:
- make BUILD_IN_CONTAINER=false check-generated-files
depends_on:
- clone

- name: check-mod
image: grafana/loki-build-image:0.14.0
image: grafana/loki-build-image:0.16.0
commands:
- make BUILD_IN_CONTAINER=false check-mod
depends_on:
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ DOCKER_IMAGE_DIRS := $(patsubst %/Dockerfile,%,$(DOCKERFILES))
# make BUILD_IN_CONTAINER=false target
# or you can override this with an environment variable
BUILD_IN_CONTAINER ?= true
BUILD_IMAGE_VERSION := 0.14.0
BUILD_IMAGE_VERSION := 0.16.0

# Docker image info
IMAGE_PREFIX ?= grafana
Expand Down
8 changes: 4 additions & 4 deletions cmd/migrate/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,18 @@ import (
"sync"
"time"

cortex_storage "github.com/cortexproject/cortex/pkg/chunk/storage"
util_log "github.com/cortexproject/cortex/pkg/util/log"
"github.com/prometheus/client_golang/prometheus"
"github.com/prometheus/common/model"

"github.com/cortexproject/cortex/pkg/chunk"
"github.com/prometheus/prometheus/pkg/labels"
"github.com/weaveworks/common/user"

"github.com/grafana/loki/pkg/logql"
"github.com/grafana/loki/pkg/loki"
"github.com/grafana/loki/pkg/storage"
"github.com/grafana/loki/pkg/storage/chunk"
chunk_storage "github.com/grafana/loki/pkg/storage/chunk/storage"
"github.com/grafana/loki/pkg/util"
"github.com/grafana/loki/pkg/util/cfg"
"github.com/grafana/loki/pkg/validation"
Expand Down Expand Up @@ -90,7 +90,7 @@ func main() {
}
// Create a new registerer to avoid registering duplicate metrics
prometheus.DefaultRegisterer = prometheus.NewRegistry()
sourceStore, err := cortex_storage.NewStore(sourceConfig.StorageConfig.Config, sourceConfig.ChunkStoreConfig.StoreConfig, sourceConfig.SchemaConfig.SchemaConfig, limits, prometheus.DefaultRegisterer, nil, util_log.Logger)
sourceStore, err := chunk_storage.NewStore(sourceConfig.StorageConfig.Config, sourceConfig.ChunkStoreConfig.StoreConfig, sourceConfig.SchemaConfig.SchemaConfig, limits, prometheus.DefaultRegisterer, nil, util_log.Logger)
if err != nil {
log.Println("Failed to create source store:", err)
os.Exit(1)
Expand All @@ -103,7 +103,7 @@ func main() {

// Create a new registerer to avoid registering duplicate metrics
prometheus.DefaultRegisterer = prometheus.NewRegistry()
destStore, err := cortex_storage.NewStore(destConfig.StorageConfig.Config, destConfig.ChunkStoreConfig.StoreConfig, destConfig.SchemaConfig.SchemaConfig, limits, prometheus.DefaultRegisterer, nil, util_log.Logger)
destStore, err := chunk_storage.NewStore(destConfig.StorageConfig.Config, destConfig.ChunkStoreConfig.StoreConfig, destConfig.SchemaConfig.SchemaConfig, limits, prometheus.DefaultRegisterer, nil, util_log.Logger)
if err != nil {
log.Println("Failed to create destination store:", err)
os.Exit(1)
Expand Down
23 changes: 22 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,20 @@ module github.com/grafana/loki
go 1.15

require (
cloud.google.com/go/bigtable v1.2.0
cloud.google.com/go/pubsub v1.3.1
cloud.google.com/go/storage v1.10.0
github.com/Azure/azure-pipeline-go v0.2.2
github.com/Azure/azure-storage-blob-go v0.8.0
github.com/Masterminds/sprig/v3 v3.2.2
github.com/NYTimes/gziphandler v1.1.1
github.com/alicebob/miniredis/v2 v2.14.3
github.com/aws/aws-lambda-go v1.17.0
github.com/aws/aws-sdk-go v1.38.35
github.com/bmatcuk/doublestar v1.2.2
github.com/bradfitz/gomemcache v0.0.0-20190913173617-a41fca850d0b
github.com/c2h5oh/datasize v0.0.0-20200112174442-28bbd4740fee
github.com/cespare/xxhash v1.1.0
github.com/cespare/xxhash/v2 v2.1.1
github.com/containerd/fifo v0.0.0-20190226154929-a9fb20d87448 // indirect
github.com/coreos/go-systemd v0.0.0-20191104093116-d3cd4ed1dbcf
Expand All @@ -19,14 +27,19 @@ require (
github.com/docker/go-plugins-helpers v0.0.0-20181025120712-1e6269c305b8
github.com/drone/envsubst v1.0.2
github.com/dustin/go-humanize v1.0.0
github.com/facette/natsort v0.0.0-20181210072756-2cd4dd1e2dcb
github.com/fatih/color v1.9.0
github.com/felixge/fgprof v0.9.1
github.com/fluent/fluent-bit-go v0.0.0-20190925192703-ea13c021720c
github.com/fsouza/fake-gcs-server v1.7.0
github.com/go-kit/kit v0.10.0
github.com/go-logfmt/logfmt v0.5.0
github.com/go-redis/redis/v8 v8.2.3
github.com/gocql/gocql v0.0.0-20200526081602-cd04bd7f22a7
github.com/gofrs/flock v0.7.1 // indirect
github.com/gofrs/uuid v4.0.0+incompatible
github.com/gogo/protobuf v1.3.2 // remember to update loki-build-image/Dockerfile too
github.com/golang/protobuf v1.5.2
github.com/golang/snappy v0.0.3
github.com/gorilla/mux v1.7.3
github.com/gorilla/websocket v1.4.2
Expand All @@ -43,9 +56,13 @@ require (
github.com/json-iterator/go v1.1.11
github.com/klauspost/compress v1.11.3
github.com/klauspost/pgzip v1.2.5
github.com/minio/minio-go/v7 v7.0.10
github.com/mitchellh/mapstructure v1.4.1
github.com/modern-go/reflect2 v1.0.1
github.com/mwitkow/go-conntrack v0.0.0-20190716064945-2f068394615f
github.com/ncw/swift v1.0.52
github.com/oklog/ulid v1.3.1
github.com/opentracing-contrib/go-grpc v0.0.0-20210225150812-73cb765af46e
github.com/opentracing/opentracing-go v1.2.0
// github.com/pierrec/lz4 v2.0.5+incompatible
github.com/pierrec/lz4/v4 v4.1.7
Expand All @@ -57,17 +74,21 @@ require (
github.com/segmentio/fasthash v1.0.2
github.com/shurcooL/httpfs v0.0.0-20190707220628-8d4bc4ba7749
github.com/shurcooL/vfsgen v0.0.0-20200824052919-0d455de96546
github.com/sony/gobreaker v0.4.1
github.com/spf13/afero v1.2.2
github.com/stretchr/testify v1.7.0
github.com/thanos-io/thanos v0.19.1-0.20210427154226-d5bd651319d2
github.com/tonistiigi/fifo v0.0.0-20190226154929-a9fb20d87448
github.com/uber/jaeger-client-go v2.28.0+incompatible
github.com/ugorji/go v1.1.7 // indirect
github.com/weaveworks/common v0.0.0-20210419092856-009d1eebd624
github.com/weaveworks/common v0.0.0-20210506120931-f2676019da11
go.etcd.io/bbolt v1.3.5
go.uber.org/atomic v1.7.0
golang.org/x/crypto v0.0.0-20210220033148-5ea612d1eb83
golang.org/x/net v0.0.0-20210505214959-0714010a04ed
golang.org/x/sync v0.0.0-20210220032951-036812b2e83c
golang.org/x/sys v0.0.0-20210503173754-0981d6026fa6
golang.org/x/time v0.0.0-20210220033141-f8bda1e9f3ba
google.golang.org/api v0.46.0
google.golang.org/grpc v1.37.0
gopkg.in/alecthomas/kingpin.v2 v2.2.6
Expand Down
3 changes: 2 additions & 1 deletion go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -1648,8 +1648,9 @@ github.com/weaveworks/common v0.0.0-20200625145055-4b1847531bc9/go.mod h1:c98fKi
github.com/weaveworks/common v0.0.0-20200914083218-61ffdd448099/go.mod h1:hz10LOsAdzC3K/iXaKoFxOKTDRgxJl+BTGX1GY+TzO4=
github.com/weaveworks/common v0.0.0-20201119133501-0619918236ec/go.mod h1:ykzWac1LtVfOxdCK+jD754at1Ws9dKCwFeUzkFBffPs=
github.com/weaveworks/common v0.0.0-20210112142934-23c8d7fa6120/go.mod h1:ykzWac1LtVfOxdCK+jD754at1Ws9dKCwFeUzkFBffPs=
github.com/weaveworks/common v0.0.0-20210419092856-009d1eebd624 h1:rbPhNKTbWNWchMqGWKKVYUocxiAk1ii5b8D/C49v/Lg=
github.com/weaveworks/common v0.0.0-20210419092856-009d1eebd624/go.mod h1:ykzWac1LtVfOxdCK+jD754at1Ws9dKCwFeUzkFBffPs=
github.com/weaveworks/common v0.0.0-20210506120931-f2676019da11 h1:plzdhjbaqstAnOYhaEwPMUFRe6KR4bag8/O6V+Y9ju4=
github.com/weaveworks/common v0.0.0-20210506120931-f2676019da11/go.mod h1:YU9FvnS7kUnRt6HY10G+2qHkwzP3n3Vb1XsXDsJTSp8=
github.com/weaveworks/promrus v1.2.0 h1:jOLf6pe6/vss4qGHjXmGz4oDJQA+AOCqEL3FvvZGz7M=
github.com/weaveworks/promrus v1.2.0/go.mod h1:SaE82+OJ91yqjrE1rsvBWVzNZKcHYFtMUyS1+Ogs/KA=
github.com/willf/bitset v1.1.3/go.mod h1:RjeCKbqT1RxIR/KWY6phxZiaY1IyutSBfGjNPySAYV4=
Expand Down
12 changes: 6 additions & 6 deletions loki-build-image/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,18 +26,18 @@ RUN apk add --no-cache docker-cli
# TODO this should be fixed to download and extract the specific release binary from github as we do for golangci and helm above
# however we need a commit which hasn't been released yet: https://github.com/drone/drone-cli/commit/1fad337d74ca0ecf420993d9d2d7229a1c99f054
# Read the comment below regarding GO111MODULE=on and why it is necessary
FROM golang:1.16.2 as drone
FROM golang:1.16.3 as drone
RUN GO111MODULE=on go get github.com/drone/drone-cli/drone@1fad337d74ca0ecf420993d9d2d7229a1c99f054

# Install faillint used to lint go imports in CI.
# This collisions with the version of go tools used in the base image, thus we install it in its own image and copy it over.
# Error:
# github.com/fatih/[email protected] requires golang.org/x/[email protected]
# (not golang.org/x/[email protected] from golang.org/x/tools/cmd/goyacc@58d531046acdc757f177387bc1725bfa79895d69)
FROM golang:1.16.2 as faillint
FROM golang:1.16.3 as faillint
RUN GO111MODULE=on go get github.com/fatih/[email protected]

FROM golang:1.16.2-buster
FROM golang:1.16.3-buster
RUN apt-get update && \
apt-get install -qy \
musl gnupg \
Expand All @@ -59,9 +59,9 @@ COPY --from=faillint /go/bin/faillint /usr/bin/faillint
# file for it to detect and switch to Go Modules automatically.
# It's possible this can be revisited in newer versions of Go if the behavior around GOPATH vs GO111MODULES changes
RUN GO111MODULE=on go get \
github.com/golang/protobuf/[email protected].0 \
github.com/gogo/protobuf/protoc-gen-gogoslick@v1.2.1 \
github.com/gogo/protobuf/gogoproto@v1.2.1 \
github.com/golang/protobuf/[email protected].1 \
github.com/gogo/protobuf/protoc-gen-gogoslick@v1.3.0 \
github.com/gogo/protobuf/gogoproto@v1.3.0 \
github.com/go-delve/delve/cmd/[email protected] \
# Due to the lack of a proper release tag, we use the commit hash of
# https://github.com/golang/tools/releases v0.1.7
Expand Down
2 changes: 1 addition & 1 deletion pkg/chunkenc/facade.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (

"github.com/prometheus/common/model"

"github.com/cortexproject/cortex/pkg/chunk/encoding"
"github.com/grafana/loki/pkg/storage/chunk/encoding"
)

// GzipLogChunk is a cortex encoding type for our chunks.
Expand Down
2 changes: 1 addition & 1 deletion pkg/chunkenc/memchunk.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import (
"github.com/pkg/errors"
"github.com/prometheus/prometheus/pkg/labels"

"github.com/cortexproject/cortex/pkg/chunk/encoding"
"github.com/grafana/loki/pkg/storage/chunk/encoding"

"github.com/grafana/loki/pkg/iter"
"github.com/grafana/loki/pkg/logproto"
Expand Down
3 changes: 1 addition & 2 deletions pkg/chunkenc/memchunk_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"

"github.com/cortexproject/cortex/pkg/chunk/encoding"
"github.com/grafana/loki/pkg/storage/chunk/encoding"

"github.com/grafana/loki/pkg/chunkenc/testdata"
"github.com/grafana/loki/pkg/iter"
Expand Down Expand Up @@ -1133,7 +1133,6 @@ func TestMemChunk_Rebound(t *testing.T) {

require.Equal(t, originalChunkItr.Entry(), newChunkItr.Entry())
}

})
}
}
Expand Down
Loading