The Prometheus monitoring system and time series database.
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
TJ Hoplock
6ebfbd2d54
chore!: adopt log/slog, remove go-kit/log
...
For: #14355
This commit updates Prometheus to adopt stdlib's log/slog package in
favor of go-kit/log. As part of converting to use slog, several other
related changes are required to get prometheus working, including:
- removed unused logging util func `RateLimit()`
- forward ported the util/logging/Deduper logging by implementing a small custom slog.Handler that does the deduping before chaining log calls to the underlying real slog.Logger
- move some of the json file logging functionality to use prom/common package functionality
- refactored some of the new json file logging for scraping
- changes to promql.QueryLogger interface to swap out logging methods for relevant slog sugar wrappers
- updated lots of tests that used/replicated custom logging functionality, attempting to keep the logical goal of the tests consistent after the transition
- added a healthy amount of `if logger == nil { $makeLogger }` type conditional checks amongst various functions where none were provided -- old code that used the go-kit/log.Logger interface had several places where there were nil references when trying to use functions like `With()` to add keyvals on the new *slog.Logger type
Signed-off-by: TJ Hoplock <t.hoplock@gmail.com>
2 months ago
..
agent
chore!: adopt log/slog, remove go-kit/log
2 months ago
chunkenc
lint
2 months ago
chunks
Fix missing histogram copy in sampleRing
2 months ago
docs
Fix language in docs and comments ( #14041 )
7 months ago
encoding
Neater string vs byte-slice conversions ( #14425 )
2 months ago
errors
Enable default revive rules ( #13068 )
12 months ago
fileutil
tests: remove err from message when testify prints it already
10 months ago
goversion
remove obsolete build tag
10 months ago
index
Merge pull request #14975 from colega/process-mempostings-delete-with-gomaxprocs-workers
2 months ago
record
chore: Fix typos ( #14868 )
2 months ago
testdata
…
tombstones
chore!: adopt log/slog, remove go-kit/log
2 months ago
tsdbutil
chore!: adopt log/slog, remove go-kit/log
2 months ago
wlog
chore!: adopt log/slog, remove go-kit/log
2 months ago
.gitignore
…
CHANGELOG.md
…
README.md
…
block.go
chore!: adopt log/slog, remove go-kit/log
2 months ago
block_test.go
chore!: adopt log/slog, remove go-kit/log
2 months ago
blockwriter.go
chore!: adopt log/slog, remove go-kit/log
2 months ago
blockwriter_test.go
chore!: adopt log/slog, remove go-kit/log
2 months ago
compact.go
chore!: adopt log/slog, remove go-kit/log
2 months ago
compact_test.go
chore!: adopt log/slog, remove go-kit/log
2 months ago
db.go
chore!: adopt log/slog, remove go-kit/log
2 months ago
db_test.go
chore!: adopt log/slog, remove go-kit/log
2 months ago
example_test.go
Add context argument to Querier.Select ( #12660 )
1 year ago
exemplar.go
chore: Fix typos ( #14868 )
2 months ago
exemplar_test.go
[Test] TSDB: BenchmarkResizeExemplar multiple per series
6 months ago
head.go
chore!: adopt log/slog, remove go-kit/log
2 months ago
head_append.go
chore!: adopt log/slog, remove go-kit/log
2 months ago
head_bench_test.go
tsdb: use Go standard errors
12 months ago
head_dedupelabels.go
chore!: adopt log/slog, remove go-kit/log
2 months ago
head_other.go
chore!: adopt log/slog, remove go-kit/log
2 months ago
head_read.go
chore!: adopt log/slog, remove go-kit/log
2 months ago
head_read_test.go
TSDB: Simplify OOO Select by copying the head chunk ( #14396 )
5 months ago
head_test.go
fix: use "ErrorContains" or "EqualError" instead of "Contains(t, err.Error()" and "Equal(t, err.Error()" ( #15094 )
2 months ago
head_wal.go
chore!: adopt log/slog, remove go-kit/log
2 months ago
isolation.go
tsdb: create isolation transaction slice on demand
1 year ago
isolation_test.go
…
mocks_test.go
tsdb: use Go standard errors
12 months ago
ooo_head.go
TSDB: Remove code for querying OOO-head only
3 months ago
ooo_head_read.go
[BUGFIX] TSDB: Only query chunks up to truncation time ( #14948 )
2 months ago
ooo_head_read_test.go
[BUGFIX] TSDB: Only query chunks up to truncation time ( #14948 )
2 months ago
ooo_head_test.go
tsdb: Add support for ingestion of out-of-order native histogram samples ( #14546 )
2 months ago
ooo_isolation.go
Fix issue where queries can fail or omit OOO samples if OOO head compaction occurs between creating a querier and reading chunks ( #13115 )
1 year ago
ooo_isolation_test.go
Fix issue where queries can fail or omit OOO samples if OOO head compaction occurs between creating a querier and reading chunks ( #13115 )
1 year ago
querier.go
Fix: optimize .* regexp performance
2 months ago
querier_bench_test.go
TSDB: Simplify benchmark regexps
2 months ago
querier_test.go
[BUGFIX] TSDB: Only query chunks up to truncation time ( #14948 )
2 months ago
repair.go
chore!: adopt log/slog, remove go-kit/log
2 months ago
repair_test.go
tsdb tests: use go-cmp instead of DeepEquals
10 months ago
testutil.go
tsdb: Add support for ingestion of out-of-order native histogram samples ( #14546 )
2 months ago
tsdbblockutil.go
chore!: adopt log/slog, remove go-kit/log
2 months ago
TSDB
This directory contains the Prometheus TSDB (Time Series DataBase) library,
which handles storage and querying of all Prometheus v2 data.
Documentation
External resources
A series of blog posts explaining different components of TSDB: