Commit Graph

478 Commits (60c1d7ae307084294e2b9aac09cce1a304ca2496)

Author SHA1 Message Date
Marco Pracucci a0807733be
Improved tests
6 months ago
Marco Pracucci 78fdd2188d
Improve contains check done by FastRegexMatcher
6 months ago
gotjosh 37b408c6cd
Feature: Allow configuration of a rule evaluation delay (#14061)
6 months ago
Bryan Boreham 1e0b0e250a
Merge pull request #14090 from colega/improve-zeroOrOneCharacterStringMatcher-Matches
6 months ago
Oleksandr Redko f10c3454e9 Enable perfsprint linter and fix up code
6 months ago
Björn Rabenstein e6be4240be
Merge pull request #14068 from colega/quote-label-name-in-matchers-when-needed
6 months ago
Bryan Boreham dc926527ae
Merge pull request #13669 from aiwhj/optimization
7 months ago
Jeanette Tan f028496133 Merge branch 'main' into nhcb
7 months ago
Oleg Zaytsev 8b4c9459a2
Check utf8.RuneError result
7 months ago
Oleg Zaytsev dbe88fae22
Add invalid utf8 test cases to regexp
7 months ago
Oleg Zaytsev bcff5059e6
Use utf8.DecodeRuneInString(s)
7 months ago
Oleg Zaytsev fdfc6d4725
Benchmark zeroOrOneCharacterStringMatcher.Matches
7 months ago
Oleg Zaytsev b7b4355807
Use bytes.Buffer from stack buf in Matcher.String()
7 months ago
Arve Knudsen d699dc3c77
Fix language in docs and comments (#14041)
7 months ago
Oleg Zaytsev 6ebda5a7bc
Optimize Matcher.String()
7 months ago
Oleg Zaytsev dabd789fd5
Quote label name in matchers when needed
7 months ago
zenador 545a7e48f9
[nhcb branch] Enhance unit test framework for nhcb and warnings (#14009)
7 months ago
Jeanette Tan 796b1bbfde Merge branch 'main' into nhcb
7 months ago
Oleg Zaytsev 2524a91591
Fix FastRegexMatcher matching multibyte runes with . (#14059)
7 months ago
Liam Howe 35d897ced4 Add test case for default regex explicitly provided
7 months ago
Liam Howe 5d97f17ff1 Replace MarshalYAML() with IsZero() method for Regexp
7 months ago
Liam Howe 835dfa7eb6 Implement MarshalYAML for relabel.Config so that we do not generate a regex field if it was not provided in the first place
7 months ago
György Krajcsovits bcafa5f1f9 Merge remote-tracking branch 'upstream/main' into update-nhcb
7 months ago
zenador 81862aabd7
[nhcb branch] Add basic unit tests for native histograms with custom buckets converted from classic histograms (#13794)
7 months ago
Björn Rabenstein 4ec5c25393
Merge pull request #13731 from suntala/suntala/native-histogram-template
8 months ago
Matthieu MOREL d496687c8e golangci-lint: enable usestdlibvars linter
8 months ago
Bryan Boreham 7c28521451 [TESTS] Truncate some long test names, for readability
8 months ago
carehabit a672662073
all: fix some typos (#13863)
8 months ago
György Krajcsovits 2a4aa085d2 Merge branch 'main' into nhcb
8 months ago
Domantas 435f330d0b
[BUGFIX] labels: don't modify original labels in DropMetricName (#13845)
8 months ago
suntala 44f385fd51 Support expansion of native histogram values in alert templates
8 months ago
Bryan Boreham 48786ad4e8 Use slices insteda of exp/slices
8 months ago
Bryan Boreham 080d440bf8 Merge remote-tracking branch 'origin/main' into pr/13461
8 months ago
György Krajcsovits a3d1a46eda Merge branch 'main' into nhcb
8 months ago
zenador 4acbb7dea6
Add custom buckets to native histogram chunks encoding (#13706)
8 months ago
Oleg Zaytsev d12e785075
Improve readability
8 months ago
Oleg Zaytsev 9699598952
Improve Labels.Compare performance w/stringlabels
8 months ago
Bryan Boreham 0bb5588386
labels: optimize String method (#13673)
9 months ago
Arthur Silva Sens 07355c9199
Bump client_golang to 1.19
9 months ago
Ondrej Kokes 2e30f1231b docs: textparse.Parser return type mismatch
9 months ago
roger.wang 7e8f03663a Code optimization: The relabel operation is used very frequently, and strconv.FormatInt() with better performance should be used.
9 months ago
machine424 f477e0539a
Move from golang.org/x/exp/slices into slices now that we only support Go >= 1.21
9 months ago
György Krajcsovits 5d0a0a7542 Add custom buckets to native histogram model (#13592)
9 months ago
Bryan Boreham ba6aa95222 refactor: metrics parsing: extract common checking code
9 months ago
Bryan Boreham d2817e9c91
Merge pull request #12304 from bboreham/labels-symboltable
9 months ago
Bryan Boreham e1a741a0d7 labels: update copyright dates
9 months ago
Bryan Boreham 55e7de04f8 model/labels (stringlabels): use strings.Clone
9 months ago
Bryan Boreham d16ce3c9bd model/labels (dedupelabels): small clarifications
9 months ago
Bryan Boreham eff3a13e19 model/textparse: parsers take a labels SymbolTable
9 months ago
Bryan Boreham 93b72ec5dd tsdb: create SymbolTables for labels as required
9 months ago
ismail simsek 2507469291
Fix: metadata API using wrong field names (#13633)
9 months ago
Bryan Boreham b39286fd1f Add dedupelabels tag to not build regular labels
9 months ago
Bryan Boreham d51a5344cd labels: new version de-duplicating strings in SymbolTables
9 months ago
Bryan Boreham 28191109a8 Labels: add fake versions of SymbolTable apis
9 months ago
Bryan Boreham d1af84f6ee Labels: move Builder and Reset out of common
9 months ago
Bryan Boreham 5aa4473894 labels tests: extend TestBuilder
9 months ago
Bryan Boreham bb82a57e64 Labels: Call NewScratchBuilder in test_utils
9 months ago
Bryan Boreham cc5dc6a61b labels: use Equal instead of DeepEqual
9 months ago
Łukasz Mierzwa 5597020a60 Use github.com/klauspost/compress for gzip and zlib
9 months ago
Björn Rabenstein ac10cd4d99
Merge pull request #13271 from ywwg/owilliams/utf8
9 months ago
Owen Williams a28d7865ad UTF-8: Add support for parsing UTF8 metric and label names
9 months ago
tyltr 084420b837 chore:fix typo
9 months ago
Ziqi Zhao a93859a52f
Prometheus support parse exemplars from native histogram (#13488)
9 months ago
Bryan Boreham ff6c83269c
Merge pull request #13452 from bboreham/go-cmp
10 months ago
Bryan Boreham 17f48f2b3b Tests: use replacement DeepEquals in more places
10 months ago
beorn7 553d92affd model/labels: Fix new lint warning in test
10 months ago
Bryan Boreham 14b4fbc2ff labels: make InternStrings a no-op for stringlabels version
10 months ago
Marco Pracucci 501bc6419e
Add ShardedPostings() support to TSDB (#10421)
10 months ago
Bryan Boreham 74b73d1e2c
Labels: Add DropMetricName function, used in PromQL (#13446)
10 months ago
Marco Pracucci bfec57bd2e
Further optimise FastRegexMatcher
10 months ago
Filip Petkovski 583f3e587c
Optimize histogram iterators (#13340)
10 months ago
zenador a3ddfbd1ee
Add warnings for histogramRate applied with isCounter not matching counter/gauge histogram (#13392)
10 months ago
tyltr 1fa131ee03
fix slice copy in 1.20 (#13389)
10 months ago
Björn Rabenstein 3db4596965
Merge pull request #13299 from vesari/add-unit-parser
11 months ago
Arianna Vespri 8f07f9dd90 Avoid creating string for suffix, consider counters without _total suffix
11 months ago
Xiaochao Dong (@damnever) b3b5c0022e Simplify the logic as per the comments
11 months ago
Xiaochao Dong (@damnever) 1601b2a79e check new line in target
11 months ago
Xiaochao Dong (@damnever) 2d0d333371 Fix lint issue
11 months ago
Xiaochao Dong (@damnever) 20e3c295ae Optimize constant label pair adding with relabel.Replace
11 months ago
Bryan Boreham 4d44da2deb
Merge pull request #13176 from bboreham/move-metrictype
11 months ago
Arianna Vespri 9a664b515a Correct order in error message
11 months ago
Arianna Vespri 51e78d9a32 Delete debugging lines, amend error message for unit
11 months ago
Bryan Boreham c83e1fc574 textparse: remove MetricType alias
11 months ago
Bryan Boreham 8065bef172 Move metric type definitions to common/model
11 months ago
Bryan Boreham 0289dd6157 relabel: blank replacement deletes label post-regexp
11 months ago
Bryan Boreham 000182e4b8 relabel: check validity of all test cases
11 months ago
Bryan Boreham 2d4c367d87 relabel: stricter check that target labels are valid
11 months ago
Bryan Boreham 9ab7e3b3de relabel: refactor: extract config.Validate method
11 months ago
Arianna Vespri 3d6a92a25e Merge remote-tracking branch 'prometheus/main' into add-unit-parser
11 months ago
Arianna Vespri b65021d7a5 Get conditional right
11 months ago
Arianna Vespri 9fb1e9715c Go on adding protobuf parsing for unit
12 months ago
Arianna Vespri 5d5acf5744 Add unit protobuf parser
12 months ago
Björn Rabenstein 928d07e3bd
Merge branch 'main' into arve/typos
12 months ago
Arthur Silva Sens 5082655392
Append Created Timestamps (#12733)
12 months ago
Filip Petkovski 9008271df5
Use cap to determine slice capacity
12 months ago
Filip Petkovski 10a82f87fd
Enable reusing memory when converting between histogram types
12 months ago
Björn Rabenstein 85078b968f
Merge pull request #13208 from linasm/panic-free-float-histogram-add-sub
12 months ago
Björn Rabenstein de1ec731c7
Merge pull request #13212 from linasm/optimize-floatBucketIterator-for-common-case
12 months ago
Linas Medziunas bd895baefc FloatHistogram.Add/Sub: handle any schema change
12 months ago
Matthieu MOREL 9c4782f1cc
golangci-lint: enable testifylint linter (#13254)
12 months ago
Arve Knudsen 237bfea46b `chunks.Reader`: Fix typo in ChunkOrIterable doc string.
12 months ago
Oleksandr Redko 2a75604f8e
Enable default revive rules (#13068)
1 year ago
Linas Medziunas 048886ae8a Histograms: optimize floatBucketIterator for common case
1 year ago
Linas Medziunas 49613823f8 Reuse slices in [Float]Histogram.ReduceResolution
1 year ago
Björn Rabenstein a6d4b8d97b
Merge pull request #13190 from linasm/fix-float-histogram-add-sub-mutating-argument
1 year ago
Linas Medziunas f99ecc376e Fix FloatHistogram.Add/Sub mutating its argument
1 year ago
Linas Medziunas ea1862aab4 Explicit schema check in [Float]Histogram.ReduceResolution
1 year ago
Bryan Boreham f0e1b592ab Scraping: use slices.sort for exemplars
1 year ago
Bryan Boreham a3e02f35d6 labels: extract common code between slice and stringlabels
1 year ago
zenador 32ee1b15de
Fix error on ingesting out-of-order exemplars (#13021)
1 year ago
Bryan Boreham 1bfb3ed062
Labels: reduce allocations when creating from TSDB WAL (#13044)
1 year ago
Ziqi Zhao e250f09b5d
change origin schema in `ReduceResolution` method of histogram and float histogram (#13116)
1 year ago
Ziqi Zhao ab2a7bb74f
add generic shrink function (#13001)
1 year ago
Matthieu MOREL 05fba53e57 web : use Go standard package
1 year ago
Julien Pivotto cf01ec2119
Merge pull request #13091 from mmorel-35/errorlint/util
1 year ago
Linas Medziunas ebed7d0612 Change Validate to be a method on histogram structs
1 year ago
Linas Medziunas 1f8aea11d6 Move histogram validation code to model/histogram
1 year ago
Matthieu MOREL fe057fc60d use Go standard errors package
1 year ago
Björn Rabenstein fae4561369
Merge pull request #12954 from linasm/linasm/optimize-floatBucketIterator2
1 year ago
Oleksandr Redko fa90ca46e5 ci(lint): enable godot; append dot at the end of comments
1 year ago
Linas Medžiūnas e3e22abadb
Merge branch 'main' into linasm/optimize-floatBucketIterator2
1 year ago
beorn7 b428416f06 textparse: Update comment about timestamp_ms protobuf parsing
1 year ago
Arthur Silva Sens ef8e6ae780
Parse created timestamps from Prometheus Protobuf (#12973)
1 year ago
Marc Tuduri 1ce066e51c
More periods
1 year ago
Marc Tuduri af7c31ee10
PR feedback
1 year ago
Marc Tuduri 8fededf6ad
promql(histograms): Change sample total calculation for histograms
1 year ago
Björn Rabenstein f33bffa788
Merge pull request #12891 from linasm/fix-gaps-in-histogram-equals
1 year ago
Linas Medziunas 62bbb81e29 Mention bucket values in the comment
1 year ago
Linas Medziunas ec823d9daf Update comments, bitwise comparison of float buckets
1 year ago
Linas Medziunas c5c5c569fa Histogram performance: optimize floatBucketIterator
1 year ago
Matthieu MOREL 0a513f827d ci(lint): enable errorlint linter on model
1 year ago
Julien Pivotto c52db2b196 Remove duplicate tests
1 year ago
johncming 5d68ebb207 pkg/rulefmt: fix bug of validate.
1 year ago
Linas Medziunas 3c047a3518 Expand docs comments
1 year ago
Linas Medziunas dfb6292600 Compare FloatHistogram.[Zero]Count float values as binary
1 year ago
Linas Medziunas cbd01fc296 Fix NaN sum check in [Float]Histogram.Equals method
1 year ago
Goutham Veeramachaneni 86729d4d7b
Update exp package (#12650)
1 year ago
Gregor Zeitlinger f01718262a
Unit tests for native histograms (#12668)
1 year ago
zenador 54aaa2bd7e
Add `histogram_stdvar` and `histogram_stddev` functions (#12614)
1 year ago
Björn Rabenstein 798c5737a0
Merge pull request #12711 from fatsheep9146/floathistogram-addsub-enhance
1 year ago
Ziqi Zhao de172049ab fix lint error
1 year ago
Ziqi Zhao d3633d4e76
Update model/histogram/float_histogram.go
1 year ago
Ziqi Zhao 893f97556f use switch instead of if-else to fix lint error
1 year ago
Ziqi Zhao 788061e509 remove unused addBucket function
1 year ago
Ziqi Zhao eab3c93e80 make code ready for review
1 year ago
beorn7 65ccf4460a textparse: Fix endless loop #12731
1 year ago
beorn7 3d9a830f2f textparse: Expose #12731 in protobufparse_test.go
1 year ago
György Krajcsovits e846736134 Fix typo
1 year ago
Ziqi Zhao 4787c879bc add more elaborate benchmark test
1 year ago
Ziqi Zhao bf880a6e77 enhance floathistogram add and sub method
1 year ago