Commit Graph

264 Commits (e9b94515caa4c0d7a0e31f722a1534948ebad838)

Author SHA1 Message Date
beorn7 4c28d9fac7 Move to histogram.Histogram pointers
3 years ago
beorn7 c954cd9d1d Move packages out of deprecated pkg directory
3 years ago
Dieter Plaetinck cda025b5b5
TSDB: demistify SeriesRefs and ChunkRefs (#9536)
3 years ago
Mateusz Gozdek 1a6c2283a3 Format Go source files using 'gofumpt -w -s -extra'
3 years ago
Darshan Chaudhary a7e554b158
add check service-discovery command (#8970)
3 years ago
DrAuYueng 69e309d202
Expose TargetsFromGroup/AlertmanagerFromGroup func and reuse this for (#9343)
3 years ago
Furkan Türkal a6e6011d55
Add scrape_body_size_bytes metric (#9569)
3 years ago
Levi Harrison 5d409b0637
Remove `interval` and `timeout` parameters (#9578)
3 years ago
Julien Pivotto b0c98e01c8
Include scrape labels in the hash (#9551)
3 years ago
beorn7 a9008f5423 Merge branch 'main' into sparsehistogram
3 years ago
beorn7 b8d953a5a0 scrape: Avoid creating a label map during conflict resolution
3 years ago
Shirley Leu c890ea407f
Resolve conflicts between multiple exported label prefixes (#9479)
3 years ago
beorn7 7a8bb8222c Style cleanup of all the changes in sparsehistogram so far
3 years ago
beorn7 fd5ea4e0b5 Merge branch 'main' into sparsehistogram
3 years ago
Julien Pivotto 63b3e4e5ec
Enable HTTP2 again (#9398)
3 years ago
Robert Fratto daf2887fd4 expose scrape.userAgentHeader like remote.UserAgent
3 years ago
Julien Pivotto 48a101be1b
Allow to tune the scrape tolerance (#9283)
3 years ago
Bryan Boreham 92a3eeac55
Create less garbage when parsing metrics (#9299)
3 years ago
Łukasz Mierzwa f0a26266c0 Add scrape_sample_limit metric
3 years ago
SuperQ 31f4108758
Add scrape_timeout_seconds metric
3 years ago
Levi Harrison 70f597b033
Configure Scrape Interval and Timeout Via Relabeling (#8911)
3 years ago
Ganesh Vernekar 8b70e87ab9
Merge remote-tracking branch 'upstream/main' into sparse-refactor
3 years ago
Arunprasad Rajkumar 5527e26efc
scrape: fix 'target_limit exceeded error' when reloading conf with 0
3 years ago
austin ce 5bdfba1d20
Extract and export GetFQDN()
3 years ago
Naka Masato a1c1313b3c
fix typo in comment for scrape manager (#9094)
3 years ago
beorn7 5de2df752f Hacky implementation of protobuf parsing
3 years ago
Ganesh Vernekar 04ad56d9b8
Append sparse histograms into the Head block (#9013)
3 years ago
Ganesh Vernekar 64bea6999e
HistogramAppender interface for sparse histograms (#9007)
3 years ago
Julius Volz 9d495afd2c Remove trailing zeros in scrape timeout header
3 years ago
Levi Harrison b5f6f8fb36 Switched to go-kit/log
4 years ago
hanjm 1df05bfd49 Add body_size_limit to prevent bad targets response large body cause Prometheus server OOM (#8827)
4 years ago
Levi Harrison 2826fbeeb7
SD: Add target creation failure counter and change failure handling (#8786)
4 years ago
Callum Styan 8fd73b1d28
Add Exemplar Remote Write support (#8296)
4 years ago
Damien Grisonnet b50f9c1c84
Add label scrape limits (#8777)
4 years ago
Marco Pracucci 4da5c25ea4
Upgrade prometheus/common to v0.21.0
4 years ago
Julien Pivotto e14176756f
Merge pull request #8601 from dgl/fix-8243
4 years ago
Callum Styan 289ba11b79
Add circular in-memory exemplars storage (#6635)
4 years ago
David Leadbeater 21a282fabe Ensure that timestamp comparison uses wall clock time
4 years ago
Tom Wilkie 7369561305
Combine Appender.Add and AddFast into a single Append method. (#8489)
4 years ago
gotjosh 4eca4dffb8
Allow metric metadata to be propagated via Remote Write. (#6815)
4 years ago
Brian Brazil ebe0da7a72
Protect sp.loops from concurrent access. (#8176)
4 years ago
Julien Pivotto 6c56a1faaa
Testify: move to require (#8122)
4 years ago
Julien Pivotto 1282d1b39c
Refactor test assertions (#8110)
4 years ago
Brian Brazil 3f8e51738c
More granular locking for scrapeLoop. (#8104)
4 years ago
Julien Pivotto 4e5b1722b3
Move away from testutil, refactor imports (#8087)
4 years ago
Julien Pivotto be5ba1a62d Fix wordings
4 years ago
Julien Pivotto 671f7c66e5 Adjust comment
4 years ago
Julien Pivotto 627ff84599 Adjust flag
4 years ago
Julien Pivotto 536dfb6234 Add an experimental, hidden flag
4 years ago
Julien Pivotto b90c7a55da Simplify logic
4 years ago
Julien Pivotto ccc1df3140 Fix comment
4 years ago
Julien Pivotto 98e14611a5 Move the tolerance logic in the loop function.
4 years ago
Julien Pivotto 6544f95403 Introduce timestamp tolerance in scrapes
4 years ago
Julien Pivotto 6f13c60219
Scrape: Test that deduplicated targets are started (#7975)
4 years ago
iurii bd53b5ff37
Unnecessary go routine spawn. (#7879)
4 years ago
Andy Bursavich 4e6a94a27d
Invert service discovery dependencies (#7701)
4 years ago
Julien Pivotto 64236cf9e8
Use SAN in test certificate (#7789)
4 years ago
Julien Pivotto 2899773b01
Do not stop scrapes in progress during reload (#7752)
4 years ago
johncming 5578c96307
scrape: fix typo. (#7712)
4 years ago
Julien Pivotto 7b5507ce4b
Scrape: defer report (#7700)
4 years ago
Annanay ec562f152b Merge branch 'master' into appender-context
4 years ago
Julien Pivotto f482c7bdd7
Add per scrape-config targets limit (#7554)
4 years ago
Annanay 9bba8a6eae Merge branch 'master' into appender-context
4 years ago
Annanay 89129cd39a Address comments
4 years ago
Julien Pivotto e76c436e9c
Goleak in discoveries, scrape, rules (#7662)
4 years ago
Annanay 7f98a744e5 Add context to Appender interface
4 years ago
johncming 490f9c664e
scrape: remove two blank lines. (#7610)
4 years ago
Julien Pivotto 22aa21e508
scrape tests: Make appenders more realistic (#7594)
4 years ago
Julien Pivotto 754461b74f
Reuse the same appender for report and scrape (#7562)
4 years ago
Julien Pivotto 190addffd8
Change Scrape Loop mtx to Mutex (#7553)
4 years ago
Kemal Akkoyun 66dfb951c4
*: Consistent Error/Warning handling for SeriesSet iterator: Allowing Async Select (#7251)
5 years ago
Brian Brazil f9d21f10ec
Only relabelling should apply for scrape_samples_scraped_post_relabelling. (#7342)
5 years ago
Brian Brazil c9565f08aa
Pass reference to checkAddError so appendErrors is updated. (#7294)
5 years ago
ZouYu 2b7437d60e
Fix some warnings: 'redundant type from array, slice, or map composite literal' (#7109)
5 years ago
Marek Slabicki 8224ddec23
Capitalizing first letter of all log lines (#7043)
5 years ago
Julien Pivotto 0c4ec8d9dd
Merge pull request #6911 from mjtrangoni/remove-buildnametocertificate
5 years ago
Callum Styan c453def8c5
Separate scrape add error checking out into it's own function. (#6930)
5 years ago
Bartlomiej Plotka c4eefd1b3a storage: Removed SelectSorted method; Simplified interface; Added requirement for remote read to sort response.
5 years ago
Julien Pivotto d6ad5551c9
Scrape: do not put staleness marker when cache is reused (#7011)
5 years ago
Julien Pivotto 8907ba6235 Make TSDB use storage errors
5 years ago
Björn Rabenstein d80b0810c1
Move crucial actions to defer (#6918)
5 years ago
Brian Brazil 5da8990053
Log scrape append failures as debug rather than warn. (#6852)
5 years ago
李国忠 52025bd7a9
[comments] change word ‘wheter’ to ‘whether’ (#6912)
5 years ago
Julien Pivotto ed623f69e2
tsdb: don't allow ingesting empty labelsets (#6891)
5 years ago
Mario Trangoni d9cb4a14d3 scrape/target_test.go: remove deprecated function BuildNameToCertificate()
5 years ago
Boqin Qin 0e51cf65e7
scrape_test: fix send-to-closed-channel bugs (#6849)
5 years ago
Bartlomiej Plotka 34426766d8 Unify Iterator interfaces. All point to storage now.
5 years ago
Boqin Qin cdbd42393e
scrape: fix goroutine leak in test (#6812)
5 years ago
Julien Pivotto 9c67fce6e0
Scrape: test samples_post_metric_relabeling when metrics are dropped (#6720)
5 years ago
gotjosh 8b49c9285d
scrape: Add metrics to track bytes and entries in the metadata cache (#6675)
5 years ago
Julien Pivotto fafb7940b1 Pass over scrape cache to the next scrape (#6670)
5 years ago
Julien Pivotto 46d18112a3 tsdb: error on series with duplicate labels (#6664)
5 years ago
Julien Pivotto 31700a05df Improve testutil.ErrorEqual (#6471)
5 years ago
gotjosh 05842176a6 Make the scrape.metricMetadataStore interface public
5 years ago
Geoffrey Beausire 5cb7987314 Fix relabaling collision when using exported label
5 years ago
Dustin Hooten ca60bf298c React UI: Implement /targets page (#6276)
5 years ago
Alex Dzyoba 1a38075f83 scrape: Move tests to testutil (#6187)
5 years ago
yuxiaobo 47e51c8b2b Correct spelling mistakes
5 years ago
johncming 4757c69157 scrape: close manager gracefully at end. (#6044)
5 years ago
johncming 1fa5a75a3a Ctx name (#5961)
5 years ago
Julius Volz b5c833ca21
Update go.mod dependencies before release (#5883)
5 years ago
Brian Brazil e62f30d497
Correctly handle empty labels from alert templates. (#5845)
5 years ago
Chris Marchbanks 529ccff07b
Remove all usages of stretchr/testify
5 years ago
Chris Marchbanks 0685eb5395
Refactor testutil.NewStorage into a new package
5 years ago
AllenZMC 9e47bb8b46 fix word 'parmeters' to 'parameters' (#5826)
5 years ago
yeya24 b7bb278e95 make targets active parallel (#5740)
5 years ago
Simon Pasquier 9a1935d641
scrape: remove unused type (#5761)
5 years ago
Brian Brazil b98e818876
Add scrape_series_added per-scrape metric. (#5546)
6 years ago
Simon Pasquier 45506841e6
*: enable all default linters (#5504)
6 years ago
Romain Baugue 95193fa027 Exhaust every request body before closing it (#5166) (#5479)
6 years ago
Simon Pasquier c1682adb2f Bump prometheus/common to v0.3.0 (#5344)
6 years ago
Brian Brazil f7184978f4 Protect against memory exhaustion when scraping.
6 years ago
Brian Brazil dd3073616c Don't lose the scrape cache on a failed scrape.
6 years ago
Tariq Ibrahim 8fdfa8abea refine error handling in prometheus (#5388)
6 years ago
Tom Wilkie 807fd33ecc Review feedback.
6 years ago
Simon Pasquier 23069b87dc scrape: fallback to hostname if lookup fails (#5366)
6 years ago
Julien Pivotto 4397916cb2 Add honor_timestamps (#5304)
6 years ago
xjewer 0d1a69353e scrape: Add global jitter for HA server (#5181)
6 years ago
Julien Pivotto 04ce817c49 scrape: Rewrite scrape loop options as a struct (#5314)
6 years ago
Nguyen Hai Truong aed9ea144a Remove duplicated words in comments
6 years ago
Simon Pasquier 12708acd15
scrape: catch errors when creating HTTP clients (#5182)
6 years ago
JoeWrightss 4cb6c202ff Fix fmt.Errorf error message (#5199)
6 years ago
Matt Layher 302148fd69 *: apply gofmt -s
6 years ago
Simon Pasquier f678e27eb6
*: use latest release of staticcheck (#5057)
6 years ago
Bartek Płotka 62c8337e77 Moved configuration into `relabel` package. (#4955)
6 years ago
F4ncyMooN cd491e2d3a wait for interval-now%interval to make sure target will be collected with a fixed interval when restart prometheus (#4926)
6 years ago
Ben Kochie c6399296dc
Fix spelling/typos (#4921)
6 years ago
Brian Brazil d2f0f54d68
Pass through content-type for non-compressed output. (#4912)
6 years ago
Wei Guo 996fd958ac fix deadlock in scrape manager (#4894)
6 years ago
arugaki b98a5acb57 fix buf redeclared in scrapeloop (#4873)
6 years ago
Simon Pasquier ed19373a78
*: remove use of golang.org/x/net/context (#4869)
6 years ago
Brian Brazil 9c03e11c2c Hook OpenMetrics parser into scraping.
6 years ago
Brian Brazil ffe7efb411 Prepare for multiple text formats
6 years ago
Will Hegedus 193ebe7e34 Updates to /targets and /rules (scrape duration, last evaluation time) (#4722)
6 years ago
Krasi Georgiev 47a673c3a0
process scrape loops reloading in parallel (#4526)
6 years ago
Julius Volz 8fbe1b5133
Handle a bunch of unchecked errors (#4461)
6 years ago
Krasi Georgiev 9f2f6accba fix the TestManagerReloadNoChange test (#4267)
6 years ago
Fabian Reinartz 057a5ae2b1 Address comments
7 years ago
Fabian Reinartz ad4c33c1ff scrape,api: provide per-target metric metadata
7 years ago
Fabian Reinartz 76a4a46cb0 pkg/textparse: refactor and add metadata handling
7 years ago
Elif T. Kuş 57dcdfb15f Rewrote tests with testutil for several test files (#4086)
7 years ago
Karsten Weiss d79d573f71 Fix spelling mistakes found by codespell (#4065)
7 years ago
Adam Shannon 809881d7f5 support reading basic_auth password_file for HTTP basic auth (#4077)
7 years ago
Björn Rabenstein 91e470d733
Merge pull request #4096 from simonpasquier/fix-scrape-races-2.2
7 years ago
Simon Pasquier 2cbba4e948 scrape: fix data races
7 years ago
Simon Pasquier 8b89ab0173 scrape: add test detecting data races
7 years ago
beorn7 94ff07b81d Merge branch 'release-2.2'
7 years ago
Krasi Georgiev dc29dd1c6f add mutex for DiscoveredLabels
7 years ago
Krasi Georgiev ddd46de6f4 Races/3994 (#4005)
7 years ago
Mario Trangoni 464e747f1e fix some comments typos (#4059)
7 years ago