Commit Graph

811 Commits (c25f7c600b7bae4fee845e0574eb2b2eed5cf597)

Author SHA1 Message Date
beorn7 4b574e8a61 Switch chunk encoding to type 2 where it was hardcoded type 1 before
9 years ago
beorn7 c72979e3ed Remove a redundancy from Gorilla-style chunks
9 years ago
beorn7 b6dbb826ae Improve fuzz testing and fix a bug exposed
9 years ago
beorn7 9d8fbbe822 Review improvements
9 years ago
beorn7 8cdced3850 Implement Gorilla-inspired chunk encoding
9 years ago
beorn7 8e64e8dfca Fix return statement.
9 years ago
Björn Rabenstein 98c8560851 Merge pull request #1477 from prometheus/beorn7/storage7
9 years ago
beorn7 e7ac9c6863 Improvments based on review
9 years ago
beorn7 199f309a39 Resurrect and rename invalid preload requests count metric.
9 years ago
beorn7 e8c1f30ab2 Merge the parallel logic of getSeriesForRange and metricForFingerprint
9 years ago
beorn7 9445c7053d Add tests for range-limited label matching
9 years ago
beorn7 47e3c90f9b Clean up error propagation
9 years ago
beorn7 99854a84d7 Merge branch 'beorn7/storage6' into beorn7/storage7
9 years ago
beorn7 5e4fa96719 Merge branch 'beorn7/storage5' into beorn7/storage6
9 years ago
beorn7 b343e65907 Merge branch 'beorn7/storage4' into beorn7/storage5
9 years ago
beorn7 d0a4477446 Merge branch 'beorn7/storage3' into beorn7/storage4
9 years ago
beorn7 55eddab25f Merge branch 'beorn7/storage2' into beorn7/storage3
9 years ago
beorn7 161eada3ad Make chunkIterator even leaner.
9 years ago
beorn7 beb36df4bb De-flag preloadChunksForRange
9 years ago
beorn7 836f1db04c Improve MetricsForLabelMatchers
9 years ago
beorn7 167b83695c Merge branch 'beorn7/storage5' into beorn7/storage6
9 years ago
beorn7 01795382c9 Merge branch 'beorn7/storage4' into beorn7/storage5
9 years ago
beorn7 f7fc542db6 Merge branch 'master' into beorn7/storage4
9 years ago
beorn7 3d86130d8c Merge branch 'master' into beorn7/storage3
9 years ago
beorn7 1f30c8de8d Merge branch 'master' into beorn7/storage2
9 years ago
beorn7 c13b1ecfe9 Make chunk iterators more DRY
9 years ago
beorn7 32f280a3cd Slim down the chunkIterator interface
9 years ago
beorn7 b6fdb355d7 Move dump-heads into its own tool
9 years ago
beorn7 f193f2b8ef Add a command to promtool that dumps metadata of heads.db
9 years ago
beorn7 75a6b460ef Give TestEvictAndLoadChunkDescs more time to actually evict
9 years ago
beorn7 fc7de5374a Quarantine series upon problem writing to the series file
9 years ago
beorn7 0ea5801e47 Handle errors caused by data corruption more gracefully
9 years ago
beorn7 b6840997a7 Merge branch 'beorn7/storage2' into beorn7/storage3
9 years ago
beorn7 ce58fd357b Merge branch 'beorn7/storage' into beorn7/storage2
9 years ago
beorn7 2581648f70 Separate iterators by offset
9 years ago
beorn7 c740789ce3 Improve predict_linear
9 years ago
beorn7 4b503ed9a5 Merge branch 'master' into beorn7/storage2
9 years ago
beorn7 059295332f Merge remote-tracking branch 'origin/master' into beorn7/storage
9 years ago
beorn7 53005c3085 Merge branch 'beorn7/storage' into beorn7/storage2
9 years ago
beorn7 28e9bbc15f Populate chunkDesc.chunkLastTime during checkpoint loading, too
9 years ago
Björn Rabenstein a8c79f0a0c Merge pull request #1422 from prometheus/release-0.17
9 years ago
beorn7 8fa1560e48 Fix a very special case of handling the checkpoint timer
9 years ago
beorn7 41e44f6ab9 Merge branch 'master' into beorn7/storage2
9 years ago
Björn Rabenstein d9eb624322 Merge pull request #1415 from prometheus/release-0.17
9 years ago
beorn7 4d1f7b49b6 Fix a race condition in calculatePersistenceUrgencyScore
9 years ago
beorn7 454ecf3f52 Rework the way ranges and instants are handled
9 years ago
beorn7 b876f8e6a5 Move lastSamplePair method up to memorySeries
9 years ago
beorn7 1e13f89039 Return SamplePair istead of *SamplePair consistently
9 years ago
beorn7 d290340367 Fix and improve chunkDesc locking
9 years ago
beorn7 0e202dacb4 Streamline series iterator creation
9 years ago
beorn7 ef3ab96111 Populate first and last time in the chunk descriptor earlier
9 years ago
beorn7 9a3edea477 Remove race condition from TestRetentionCutoff
9 years ago
Julius Volz 9b6d69610a Fix various typos in comments.
9 years ago
Fabian Reinartz 1f877f3d2a Fix deadlock, structure target logging
9 years ago
Fabian Reinartz 59f1e722df Return error on sample appending
9 years ago
beorn7 ec08c9a391 Rework the way to communicate backpressure (AKA suspended ingestion)
9 years ago
beorn7 87ef24cd25 Add instrumentation and refactor things around "rushed mode"
9 years ago
beorn7 a2cd479058 Fix calculation of chunks to persist after restart
9 years ago
beorn7 972d94433a Introduce a hysteresis for "rushed mode"
9 years ago
beorn7 14796bdb60 Improve chunkMaxBatchSize doc comment
9 years ago
beorn7 582af1618c Streamline chunk writing
9 years ago
beorn7 99b9611351 Remove a race condition from TestRetentionCutoff
9 years ago
beorn7 3f4d22e4c7 Update doc comment
9 years ago
beorn7 add2ebdd56 Tolerate the lost+found directory in the data directory
9 years ago
Björn Rabenstein 6293f3a374 Merge pull request #1304 from prometheus/beorn7/storage
9 years ago
beorn7 cb117d8346 Add a series ops metric "purge_on_request"
9 years ago
beorn7 4221c7de5c Improve handling of series file truncation
9 years ago
Corentin Chary 7b6c3e556c Use '.' instead of '=' to separate labels from their values in Graphite
9 years ago
Julius Volz 75fdcf5698 Merge pull request #1197 from iksaif/master
9 years ago
Corentin Chary a2e4439086 Add support for remote storage on Graphite
9 years ago
Fabian Reinartz 33aab4169c Anchor regexes in vector matching
9 years ago
Fabian Reinartz e3b6ec9784 Switch to common/log
9 years ago
Julius Volz dac26cef71 Rename global "labels" config option to "external_labels".
9 years ago
Julius Volz eeb1da36ac Fix InfluxDB write support to work with InfluxDB 0.9.x.
9 years ago
Julius Volz 5f77fce578 Improve remote storage queue manager metrics.
9 years ago
beorn7 22d3a4311a Increase waiting time in TestEvictAndLoadChunkDescs
9 years ago
Julius Volz af513468eb Fix some dead code, missing error checks, shadowings.
9 years ago
beorn7 daeccdd0e9 Fix DropMetricsForFingerprints
9 years ago
Julius Volz ffc5142c54 Merge pull request #1058 from prometheus/check-errors
9 years ago
Julius Volz 6774a73878 Fix error checking and logging around checkpointing.
9 years ago
Julius Volz 011faf9057 Fix typo in comment.
9 years ago
Fabian Reinartz 8fa719f778 Attach global labels to remote storage samples
9 years ago
Dieter Plaetinck e1dacc56e6 fix comment.
9 years ago
Julius Volz 744d5d5a7a Merge pull request #1029 from prometheus/vet-fixes
9 years ago
Julius Volz 995d3b831d Fix most golint warnings.
9 years ago
Julius Volz 963ad82dcb Fix "go vet" errors.
9 years ago
Fabian Reinartz d6b8da8d43 Switch promql types to common/model
9 years ago
Fabian Reinartz e061595352 Move COWMetric into storage/metric package
9 years ago
Brian Brazil fdf0d0642e Cast value to float, as that's what the console templates expect.
9 years ago
Fabian Reinartz 1535ef1457 Replace metric.SamplePair with model.SamplePair
9 years ago
Fabian Reinartz c9d396f476 Replace metric.LabelPair with model.LabelPair
9 years ago
Fabian Reinartz 438e232c9b Fix grouping of import blocks
9 years ago
Fabian Reinartz 306e8468a0 Switch from client_golang/model to common/model
9 years ago
Julius Volz f65ef1ed10 Fix wording in shutdown warning.
9 years ago
Brian Brazil 0ec71442cd Storage: Tell users how to avoid crash recovery.
9 years ago
Laurie Malau 20ad403587 Don't warn/increment metric upon equal timestamps during append.
9 years ago
Will Rouesnel 7810448dbe Add proxy_url parameter to allow specifying per-job HTTP proxy servers
9 years ago
Julius Volz 517badc21d Only do regex lookups when there was no equality match.
9 years ago
beorn7 699946bf32 Fix chunk desc loading.
10 years ago
beorn7 4203849c92 Test chunkDesc eviction and loading
10 years ago
beorn7 37e12df9ff Improve TestAppendOutOfOrder
10 years ago
beorn7 502aa9ded5 Use Has instead of Get for existence test.
10 years ago
beorn7 ff08f0b6fe storage: ensure timestamp monotonicity within series.
10 years ago
Julius Volz acbc2b8cb6 storage: Fix float->uint conversions on some compilers.
10 years ago
Fabian Reinartz 3e811ad7a4 Merge pull request #827 from prometheus/fabxc/rmt-cleanup
10 years ago
Fabian Reinartz 23e77450ff main: cleanup initialization of remote storage.
10 years ago
beorn7 8c196c1028 Minor doc fixes.
10 years ago
Fabian Reinartz 6bfb4549a6 storage: add LastSamplePairForFingerprint method
10 years ago
Fabian Reinartz dc7d27ab9a retrieval: add honor label handling and parametrized querying.
10 years ago
beorn7 9016917d1c Increment dirty counter only if setDirty(true) is called.
10 years ago
Fabian Reinartz 1eff186555 Merge pull request #810 from prometheus/fabxc/lmatch
10 years ago
Fabian Reinartz 5b91ea9b36 storage: improve label matching and allow unset matching.
10 years ago
Fabian Reinartz 46df1fd5ea storage/local: add benchmark for label matching.
10 years ago
Fabian Reinartz b105e26f4d storage: remove global flags
10 years ago
Fabian Reinartz 5c6c0e2faa Add storage method to delete time series
10 years ago
Fabian Reinartz 0de6edbdfc Move pkg/ to util/
10 years ago
Fabian Reinartz dfaf31a1da Move web/httputils to pkg/httputil and add DeadlineClient to it
10 years ago
Fabian Reinartz 2317b001d0 Move flock package to pkg/flock
10 years ago
Fabian Reinartz 3c8fbf1e15 Move test package to pkg/testutil
10 years ago
Fabian Reinartz aff01e29c3 Limit retrievable samples to retention window.
10 years ago
Fabian Reinartz a92134a947 Merge pull request #724 from prometheus/fabxc/storage-startup
10 years ago
Fabian Reinartz 6e319532cf Read from indexing queue during crash recovery.
10 years ago
beorn7 dbcb3d9333 Use an RW lock to checkpoint fingerprint mappings.
10 years ago
beorn7 3b9ab546e6 Add metrics to count inconsistencies and fp collisions.
10 years ago
Björn Rabenstein c44e7cd105 Merge pull request #706 from prometheus/beorn7/persistence2
10 years ago
Fabian Reinartz 112a778922 Align int64s for atomic operations
10 years ago
beorn7 3b9c421a69 Weed out all the [Gg]et* method names.
10 years ago
Julius Volz 267fd34156 Switch Prometheus to use github.com/prometheus/log.
10 years ago
beorn7 81b190bf45 Remove locking from series iterator. Cache chunk iterators.
10 years ago
beorn7 cd5574bf8a Make chunk and series iterators more efficient.
10 years ago
beorn7 f79c694be5 Add benchmarks for series iterator methods.
10 years ago
Fabian Reinartz f59a449a24 Fix storage test
10 years ago
Fabian Reinartz d8440d75f1 Do not start storage processing before Start() is called.
10 years ago
beorn7 d1a93655a1 Fix typo.
10 years ago
beorn7 7c6466d476 Reserve only ~1M FPs for the mapping.
10 years ago
beorn7 ac75dc2812 Avoid archive lookup for known mapped FPs.
10 years ago
beorn7 ed810b45bf Improvements after review.
10 years ago
beorn7 c36e0e05f1 Add crash recovery of fingerprint mappings.
10 years ago
beorn7 2235cec175 Handle fingerprint collisions.
10 years ago
Fabian Reinartz eeca323d24 Merge branch 'master' into promql
10 years ago
beorn7 9820e5fe99 Use FastFingerprint where appropriate.
10 years ago
Scott Worley e5f92d35fe Fix storage/local tests for 32-bit systems
10 years ago
Fabian Reinartz 32b7595c47 Create promql package with lexer/parser.
10 years ago
beorn7 a052d32609 Comment improvement.
10 years ago
beorn7 66fc61f9b7 Make bufPool a member of the persistence struct.
10 years ago
beorn7 b02d900e61 Improve chunk and chunkDesc loading.
10 years ago
beorn7 c563398c68 Remove obsolete debug message.
10 years ago
beorn7 c5fa0b90c3 Fix the case where a series in memory has 0 chunks, but chunks on disk.
10 years ago
Björn Rabenstein d8e515e9cb Merge pull request #617 from prometheus/influxdb-write-support
10 years ago
Julius Volz 593e565688 Allow writing to InfluxDB/OpenTSDB at the same time.
10 years ago
beorn7 3035b8bfdd Adaptively reduce the wait time for memory series maintenance.
10 years ago
Julius Volz 61fb688dd9 Add experimental InfluxDB write support.
10 years ago
beorn7 fbc44d8f95 Add benchmark for loading chunks and chunk descs.
10 years ago
beorn7 6a21f73898 Fixes after review.
10 years ago
beorn7 51d35f4481 Instrument series maintenance durations.
10 years ago
beorn7 12ae6e9203 Increase resilience of the storage against data corruption - step 4.
10 years ago
beorn7 11bd9ce1bd Increase resilience of the storage against data corruption - step 3.
10 years ago
beorn7 e25cca823c Increase resilience of the storage against data corruption - step 2.
10 years ago
beorn7 3d8d8928be Increase resilience of the storage against data corruption - step 1.
10 years ago
beorn7 da7c0461c6 Rename persist queue len/cap to num/max chunks to persist.
10 years ago
beorn7 a075900f9a Merge branch 'beorn7/persistence' into beorn7/ingestion-tweaks
10 years ago
beorn7 1d8fc7d56f Change minor things after code review.
10 years ago
beorn7 be11cb2b07 Remove the sample ingestion channel.
10 years ago
beorn7 0056eaeb4f Redesign series maintenance and chunk persistence.
10 years ago
beorn7 5bea942d8e Improve various things around chunk encoding.
10 years ago
beorn7 9ecf93526d Sync the checkpoints.
10 years ago
beorn7 853f971540 Actually use double-delta encoding for transcoding. :-o
10 years ago
beorn7 23ba8a5516 Make floats exact again.
10 years ago
beorn7 a8d4f8af9a Improve minor things after review.
10 years ago
beorn7 13fcf1ddbc Implement double-delta encoded chunks.
10 years ago
beorn7 5ed8f6c205 Update persistQueueLength after chunks were persisted.
10 years ago
beorn7 0167083da6 Improvements after review.
10 years ago
beorn7 ebac14eff3 Add version guard to persistence.
10 years ago
Julius Volz 795704f0df Merge pull request #565 from fabxc/fabxc/labelmatcher_test
10 years ago
Fabian Reinartz 4bff5d29bf Add tests for retrieving fingerprints for label matchers.
10 years ago
beorn7 92991026bb Fix chunkDescsTotal count in case of errors.
10 years ago
beorn7 1db7589081 Reduce the capacity of countPersistedHeadChunks.
10 years ago
beorn7 9406afad72 Do not double-count non-persisted head chunks on loading.
10 years ago
beorn7 dbc22b972c Check last time in head chunk for head chunk timeout, not first.
10 years ago
beorn7 edd716e63c Fix the embarrassing bug introduced in commit 0851945.
10 years ago
beorn7 af91fb8e31 Improve persisting chunks to disk.
10 years ago
beorn7 e22f26bc58 Move to a queue model for appending samples after all.
10 years ago
beorn7 fe518fdb28 Simplify AppendSamples by allowing it to be goroutine-unsafe.
10 years ago
beorn7 8a1c195b54 Move emptiness check to the receivers.
10 years ago
beorn7 5d3cd65a5d Improve performance of ingestion.
10 years ago
beorn7 d2ab49c396 Make the persist queue length configurable.
10 years ago
Julius Volz 9412b296d5 Remove labels on persist error counter.
10 years ago
Bjoern Rabenstein 3948e2a7f8 Move lost files to an "orphaned" directory.
10 years ago
Bjoern Rabenstein c24bfdf701 Move crash related code into separate file.
10 years ago
Bjoern Rabenstein ab386d1f5d Declare storage.local.index-cache-size.* default values as tweaked.
10 years ago
Bjoern Rabenstein 73f6dc4d44 Make KeyValueStore.Delete report if the key to delete was found.
10 years ago
Bjoern Rabenstein 2c8d324ca4 Remove check that did not check anything.
10 years ago
Julius Volz d4374a9265 More efficient JSON query result format.
10 years ago
Bjoern Rabenstein 2c8fdcbc23 Remove a deadlock during shutdown.
10 years ago
Bjoern Rabenstein 5859b74f1b Clean up license issues.
10 years ago
Bjoern Rabenstein f298af5756 Use named returns in flock.New.
10 years ago
Bjoern Rabenstein baca6faa1c Add double-start protection.
10 years ago
Bjoern Rabenstein ae70eac97d Adjust the partitioning by outcome.
10 years ago
Julius Volz a6bc42bc61 Minor formatting/spelling fixups.
10 years ago
Bjoern Rabenstein 0851945054 Add a heuristics to checkpoint early if there are many "dirty" series..
10 years ago
Bjoern Rabenstein 622e8350cd Fix a bug handling freshly unarchived series.
10 years ago
Bjoern Rabenstein eb932d1524 Remove a deadlock during shutdown.
10 years ago
Brian Brazil e56786b221 Have scrape time as a pseudovariable, not a prometheus variable.
10 years ago
Bjoern Rabenstein ff24070a03 Fix embarrassing bug in crash recovery.
10 years ago
Julius Volz c9618d11e8 Introduce copy-on-write for metrics in AST.
10 years ago
Bjoern Rabenstein afd864e7f4 Adjust to the new version of goleveldb.
10 years ago
Bjoern Rabenstein fee88a7a77 Remove the remaining races, new and old.
10 years ago
Bjoern Rabenstein 66c80b5ebd Fix typo.
10 years ago
Bjoern Rabenstein 674624f1c8 Completed more TODOs.
10 years ago
Bjoern Rabenstein 7d11019aa2 Squash a few trivial TODOs.
10 years ago
Bjoern Rabenstein 49683c0c20 Avoid test flags in normal binary.
10 years ago
Bjoern Rabenstein 9bc05052ad Add line that has mysteriously disappeared after rebase.
10 years ago
Bjoern Rabenstein 14bda4180c Changes after pair code review.
10 years ago
Bjoern Rabenstein 9ea808cd8b Remove debug log line.
10 years ago
Bjoern Rabenstein bb42cc2e2d Evict based on memory pressure. Evict recently used chunks last.
10 years ago
Bjoern Rabenstein e23ee0f7cc Fix race in test.
10 years ago
Bjoern Rabenstein d73e851b14 Tweak timing in the maintenance loop.
10 years ago
Bjoern Rabenstein 2672aa8ece Instrument series maintenance.
10 years ago
Bjoern Rabenstein 74c143c4c9 Improve scraper shutdown time.
10 years ago
Bjoern Rabenstein 3f61d304ce Reorganize maintenance loop.
10 years ago
Bjoern Rabenstein c087ee35f7 Remove archiveMtx.
10 years ago
Bjoern Rabenstein 7af42eda65 Optimize purging.
10 years ago
Bjoern Rabenstein 33b959b898 Persist savedFirstTime in checkpoint.
10 years ago
Bjoern Rabenstein 904acd43da Add crash recovery.
10 years ago
Bjoern Rabenstein 7a9efc9c59 Fix typo in test.
10 years ago
Bjoern Rabenstein 4efc60174b Tweak and verify a few parameters.
10 years ago
Bjoern Rabenstein 5f8e9617ef Add more tests.
10 years ago
Bjoern Rabenstein d215e013b7 Fix the weird chunkDesc shuffling bug.
10 years ago
Bjoern Rabenstein a617269b12 Avoid unnecessary cloning of the head chunk.
10 years ago
Bjoern Rabenstein f1de5b0c4e Run checkpointing of in-memory metrics and head chunks periodically.
10 years ago
Bjoern Rabenstein 74c9b34a5e Improve storage instrumentation even more.
10 years ago
Julius Volz c3fcea45e3 Support finer time resolutions than 1 second.
10 years ago
Bjoern Rabenstein 443dd33805 Improve instrumentation in storage.
10 years ago
Bjoern Rabenstein 1936a40e75 Minor loging improvement.
10 years ago
Bjoern Rabenstein 192bf52c41 Evict chunkDescs, too.
10 years ago
Bjoern Rabenstein 95f392fb2c Prevent an indexing death spiral.
10 years ago
Bjoern Rabenstein 40354eaa29 Reduce directory depth by one.
10 years ago
Bjoern Rabenstein 096fa0f8b2 Squash a number of TODOs.
10 years ago
Bjoern Rabenstein 427c8d53a5 Fix handling of empty chunkDescs while preloading chunks.
10 years ago
Bjoern Rabenstein ecee5d8281 Fix head chunk persisting and a chunkDesc race condition.
10 years ago
Bjoern Rabenstein 6b37e47f9e Remove unused metrics.
10 years ago
Bjoern Rabenstein 2b4ff620aa Return a nop iterator for series that have been purged completely.
10 years ago
Bjoern Rabenstein 6e3a366f91 Only archive a time series when none of its chunks is pinned.
10 years ago
Julius Volz bfa64248b7 Deal with missing series in preloading.
10 years ago
Bjoern Rabenstein ca42a22e20 Add safety panic to seriesMap.put.
10 years ago
Bjoern Rabenstein 83b4fa868d Fix GetBoundaryValues.
10 years ago
Bjoern Rabenstein b3ed9aa7a2 Clean up start-up and shut-down.
10 years ago
Bjoern Rabenstein 4447708c9f Fix a race in target.go.
10 years ago
Bjoern Rabenstein fd6600850a Fix race in chunkDesc.
10 years ago
Bjoern Rabenstein 1c53c09558 Treat empty chunkDescs properly in preloadChunksForRange.
10 years ago