Commit Graph

483 Commits (26886d6d95fbf290df1526cc2a51355da611f8be)

Author SHA1 Message Date
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
10 months ago
Owen Williams a28d7865ad UTF-8: Add support for parsing UTF8 metric and label names
10 months ago
tyltr 084420b837 chore:fix typo
10 months ago
Ziqi Zhao a93859a52f
Prometheus support parse exemplars from native histogram (#13488)
10 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)
11 months ago
tyltr 1fa131ee03
fix slice copy in 1.20 (#13389)
11 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
12 months ago
Bryan Boreham 000182e4b8 relabel: check validity of all test cases
12 months ago
Bryan Boreham 2d4c367d87 relabel: stricter check that target labels are valid
12 months ago
Bryan Boreham 9ab7e3b3de relabel: refactor: extract config.Validate method
12 months ago
Arianna Vespri 3d6a92a25e Merge remote-tracking branch 'prometheus/main' into add-unit-parser
12 months ago
Arianna Vespri b65021d7a5 Get conditional right
12 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
Bryan Boreham d6e1b1acdb
Merge pull request #12681 from prometheus/labels-unused-code
1 year ago
Bryan Boreham 5007fa305d
Merge pull request #12680 from bboreham/faster-has
1 year ago
Bryan Boreham ce260b1fe1 labels: remove some unused code
1 year ago
Bryan Boreham b5c6807fea Labels.Has quick check on first character
1 year ago
Bryan Boreham 33aab1b2cc labels: extend benchmark for Has()
1 year ago
Ziqi Zhao ed1b307bca
enhance FloatHistogram CopyToSchema method (#12596)
1 year ago
beorn7 c58e20ad0e histogram: Identify native histograms even without observations
1 year ago
Björn Rabenstein 0e12f11d61
Merge pull request #12583 from prometheus/release-2.46
1 year ago
Julien Pivotto 7905594b52
Merge pull request #12557 from prometheus/beorn7/histogram
1 year ago
Björn Rabenstein b2567aeacd
Merge pull request #12575 from prometheus/beorn7/histogram2
1 year ago
beorn7 9aadd54786 histogram: Fix bounds of buckets returned by floatBucketIterator
1 year ago
beorn7 071f4bbea4 histograms: Fix parsing float histograms without zero bucket
1 year ago
beorn7 2ea8df4734 histogram: Expose #12305
1 year ago
Julien Pivotto b7028c1722
Merge pull request #11426 from douglascamata/document-and-test-relabel-memory-reuse
1 year ago
cui fliter 096ceca44f
remove repetitive words (#12556)
1 year ago
beorn7 0e3f35324b scrape: Enable ingestion of multiple exemplars per sample
1 year ago
beorn7 da047c6857 histograms: Fix bug #12552
1 year ago
beorn7 1c3bd04bea histograms: Modify test to expose bug #12552
1 year ago
Douglas Camata 47819fef01
Merge branch 'main' of github.com:prometheus/prometheus into document-and-test-relabel-memory-reuse
1 year ago
Ziqi Zhao 42d9169ba1 enhance histogram_quantile to get min/max value
1 year ago
Carrie Edwards a462f7fa21 Add function for iterating through all buckets in reverse to find max bucket
1 year ago
Bryan Boreham e1115ae58d
labels: improve Get method for stringlabels build (#12485)
1 year ago
Bryan Boreham 87d08abe11
labels: faster Compare function when using -tags stringlabels (#12451)
1 year ago
Oleg Zaytsev 6a18962cfa
mv labels_string.go labels_stringlabels.go (#12328)
1 year ago
Michael Hoffmann 344c8ff97c
feat: dont compile regex matcher if we know its a literal (#12434)
1 year ago
zenador 191bf9055b
Handle more arithmetic operators for native histograms (#12262)
2 years ago
Bryan Boreham a073e04a9b
Merge pull request #12366 from prometheus/release-2.44
2 years ago
beorn7 9e500345f3 textparse/scrape: Add option to scrape both classic and native histograms
2 years ago
Bryan Boreham 7a48a266b6
labels: respect Set after Del in Builder (#12322)
2 years ago
cui fliter 276ca6a883 fix some comments
2 years ago
Matthieu MOREL bae9a21200
Merge branch 'main' into linter/nilerr
2 years ago
beorn7 5b53aa1108 style: Replace `else if` cascades with `switch`
2 years ago
beorn7 c3c7d44d84 lint: Adjust to the lint warnings raised by current versions of golint-ci
2 years ago
Bryan Boreham 1801cd4196 labels: small optimization to stringlabels
2 years ago
Matthieu MOREL fb3eb21230 enable gocritic, unconvert and unused linters
2 years ago
Bryan Boreham 10cc60af01 labels: add ScratchBuilder.Overwrite for slice implementation
2 years ago
Ganesh Vernekar 5588cab8b2
Merge pull request #12173 from bboreham/builder-no-empty-labels
2 years ago
Bryan Boreham e917202766 labels: make sure estimated size is not negative
2 years ago
Bryan Boreham ee1157c14a labels: shrink stack arrays in Builder.Range
2 years ago
Bryan Boreham b987afa7ef labels: simplify call to get Labels from Builder
2 years ago
Bryan Boreham 3743d87c56 labels: cope with mutating Builder during Range call
2 years ago
Bryan Boreham 3c4ab7a069 labels: add test for Builder.Range
2 years ago
Björn Rabenstein 847093479b
Merge pull request #11978 from trevorwhitney/set-counter-hint
2 years ago
Trevor Whitney e3513d1dd2
Change nested ifs to a switch
2 years ago
Trevor Whitney b4e324f637
Handle valid cases of mismatched hints when adding
2 years ago
Trevor Whitney dd94ebb87b
promql: set CounterResetHint after rate and sum
2 years ago
Julien Pivotto 5583c77b3a
Merge pull request #12095 from damnever/unnecessary-sort
2 years ago
Xiaochao Dong (@damnever) 36fc1158b5 Remove unnecessary sort
2 years ago
Bryan Boreham 11d019ed5a relabel: keep intermediate results in labels.Builder
2 years ago
Bryan Boreham d740abf0c6 model/labels: add Get and Range to Builder
2 years ago
Bryan Boreham ff993b279a
Merge pull request #12073 from bboreham/slices-sort2
2 years ago
Bryan Boreham 38c6d3da9f labels: use slices.Sort for better performance
2 years ago
Bryan Boreham a07a0be024 Add benchmark for labels.Builder
2 years ago
Bryan Boreham 30297f0d9b stringlabels: size buffer for added labels
2 years ago
Jonatan Ivanov 9225d118dc
Add Exemplars support for all time series
2 years ago
Renning Bruns 5ec1b4baaf
make hashmod a lot easier to read and a little faster (#11551)
2 years ago
Bryan Boreham 35026fb26d
Merge pull request #11746 from prometheus/remove-microbenchmarks
2 years ago
Levi Harrison 64ff6bece6
Merge pull request #11682 from dgrisonnet/parsing-errors
2 years ago
Bryan Boreham f03b8d0968 Add benchmark copying labels
2 years ago
Damien Grisonnet 0fee615719 model/textparse: improve openmetrics error outputs
2 years ago
Bryan Boreham 6136ae67e0 labels: shrink by making internals a single string
2 years ago
Damien Grisonnet e3b5416d05 model/textparse: improve error outputs
2 years ago
Julien Pivotto 8e500dbd39 Add rulefmt tests
2 years ago
Julien Pivotto ce55e5074d Add 'keep_firing_for' field to alerting rules
2 years ago
beorn7 3e5ad99c33 textparse: Minor doc comment improvement
2 years ago
beorn7 3f977e89ab textparse: Add tests for float and gauge histograms
2 years ago
beorn7 c26891043f textparse: Set CounterResetHint
2 years ago
Björn Rabenstein f07adbd45f
Merge pull request #11814 from prometheus/beorn7/protobuf
2 years ago
Ganesh Vernekar 57bcbf1888
Merge pull request #11783 from codesome/gauge-histogram
2 years ago
Ganesh Vernekar a87e7e9e33
tsdb: Add counter reset hint to histograms and support in WAL
2 years ago
Ganesh Vernekar c94a41c4b2
Merge pull request #11785 from Fish-pro/erroris
2 years ago
beorn7 b5d4a94e9d textparse: Add gauge histogram support to protobuf parsing
2 years ago
beorn7 e9d9bb1b08 textparse: Handle unknown metric types in protobuf gracefully
2 years ago
Damien Grisonnet 96b9d8cebb model/textparse: associate correct token to errors
2 years ago
Fish-pro 6ed71a229e Use errors.Is to check for a specific error
2 years ago
Marc Tudurí 9474610baf
Support FloatHistogram in TSDB (#11522)
2 years ago
Bryan Boreham 10b27dfb84 Simplify IndexReader.Series interface
2 years ago
Bryan Boreham 8d350d9e0c Update package model/textparse tests for new labels.Labels type
2 years ago
Bryan Boreham 1f04899ae3 Update package model/textparse for new labels.Labels type
2 years ago
Bryan Boreham fe9fe0e1e5 Update package model/relabel tests for new labels.Labels type
2 years ago
Bryan Boreham 8ad7b64c0f Update package model/relabel for new labels.Labels type
2 years ago
Bryan Boreham b10fd9aea3 model/labels: add a basic test for ScratchBuilder
2 years ago
Bryan Boreham cbf432d2ac Update package labels tests for new labels.Labels type
2 years ago
Bryan Boreham 617bee60f1 labels: use ScratchBuilder in ReadLabels
2 years ago
Bryan Boreham 2b8b8d9ac7 labels: new methods to work without access to internals
2 years ago
Bryan Boreham ea7345a09c labels: improve comment on Builder.Set
2 years ago
Bryan Boreham a19b369f9e labels: avoid lint warning on New()
2 years ago
Julien Pivotto bb323db613
Merge pull request #11074 from damnever/fix/datamodelvalidation
2 years ago
Xiaochao Dong (@damnever) 9979024a30 Report error if the series contains invalid metric names or labels during scrape
2 years ago
Bryan Boreham 8d4140a06e labels: note that Hash may change
2 years ago
Julien Pivotto 005ede70de relabel: add keepequal/dropequal relabel action
2 years ago
Ganesh Vernekar bde500e690
Merge pull request #11420 from jesusvazquez/jvp/update-sparsehistogram-with-main-v2
2 years ago
Douglas Camata 28a66e183d Update relabel.Process comment
2 years ago
beorn7 bf0847073d histogram: Modify getBound to deal properly with infinity
2 years ago
Jesus Vazquez e934d0f011 Merge 'main' into sparsehistogram
2 years ago