Commit Graph

456 Commits (d1abc3f2557660728dc6a34eb2da1f32461b6665)

Author SHA1 Message Date
gotjosh 4a13c844b7 Add periods to comments on tests.
5 years ago
gotjosh 0a0a228db3 api: provide per metric metadata (#6420)
5 years ago
Boyko 1c66aea992 React UI: Implement alerts page (#6402)
5 years ago
gotjosh 7bb73a9abd fix: flaky test for api/v1/targets/metadata. (#6436)
5 years ago
gotjosh 428089f83f api: tests for /target/metadata API endpoint
5 years ago
gotjosh 4bf9c6bb82 Allow targets to be injected as arguments when creating a testTargetRetriever
5 years ago
Tom Wilkie de0a772b8e Port tsdb to use pkg/labels. (#6326)
5 years ago
Tobias Guggenmos be2bcc50a2 Fix target metadata API for empty match_targets (#6303)
5 years ago
Sharad Gaur a85e7aac0e Adding TSDB Stats Page in React UI (#6281)
5 years ago
Dustin Hooten ca60bf298c React UI: Implement /targets page (#6276)
5 years ago
Boyko cb7cbad5f9 WIP: status page - API and UI (#6243)
5 years ago
Yao Zengzeng 8744afdd1e cleanup redundant code of `TestEndpoints` (#6022)
5 years ago
Goutham Veeramachaneni 4c648eddf4
vendor: Update json-iterator (#6030)
5 years ago
Yao Zengzeng 21c9789083 multiple queries test for StreamRead (#5969)
5 years ago
Bartek Płotka 48b2c9c8ea
remote-read: streamed chunked server side; Extended protobuf; Added chunked, checksumed reader (#5703)
5 years ago
Ganesh Vernekar 5ecef3542d
Cleanup after merging tsdb into prometheus
5 years ago
Chris Marchbanks 0685eb5395
Refactor testutil.NewStorage into a new package
5 years ago
@aifsair 0f00737308 Fix log config setup (#5807)
5 years ago
Tariq Ibrahim 9fe9e66cfd
remove the dependency on cockroachdb in prometheus
5 years ago
Thomas Jackson fef150f1b5 Add tests to ensure we can marshal and unmarshal our min/max times (#5734)
5 years ago
Thomas Jackson 91d7175eaa Add storage.Warnings to LabelValues and LabelNames (#5673)
6 years ago
Alex Salt d6a4daa26a web api: handle alert with Infinity/NaN values (#5582)
6 years ago
Simon Pasquier 45506841e6
*: enable all default linters (#5504)
6 years ago
Bjoern Rabenstein 38d518c0fe Rework #5009 after comments
6 years ago
Simon Pasquier 81c4248081
*: bump gRPC and protobuf dependencies (#5367)
6 years ago
Bob Shannon 8c8bb82d04 Add support for POSTing to /series endpoint (#5422)
6 years ago
Tariq Ibrahim 8fdfa8abea refine error handling in prometheus (#5388)
6 years ago
Bharath 91306bdf24 Support non POST methods for Lifecycle and Admin APIs (#5376)
6 years ago
Tom Wilkie c7b3535997 Use pkg/relabelling in remote write.
6 years ago
Palash Nigam 09208b1a58 queryRange: Add more descriptive error messages (#5229)
6 years ago
Callum Styan 6f69e31398 Tail the TSDB WAL for remote_write
6 years ago
zhulongcheng fd964426a7 web: predeclare and reuse errors (#5180)
6 years ago
zhulongcheng a75f8a8e05 update error message in extractTimeRange (#5179)
6 years ago
Hrishikesh Barman a1f34bec2e Added CORS Origin flag (#5011)
6 years ago
Matt Layher 302148fd69 *: apply gofmt -s
6 years ago
Callum Styan 5358f76c5c update remote write path proto so that Labels/Timeseries can't be nil (#4957)
6 years ago
Simon Pasquier 375ad1185c
*: bump gRPC dependencies (#5075)
6 years ago
Simon Pasquier f678e27eb6
*: use latest release of staticcheck (#5057)
6 years ago
Tom Wilkie 6e08029b56
Move err to be the last return value from storage.Select. (#5054)
6 years ago
SenXuDC 8fd0c0ab2e fix typo imeplements -> implements (#4979)
6 years ago
Julius Volz 11a52be1d8
Better rounding for incoming query timestamps (#4941)
6 years ago
mknapphrt f0e9196dca Return warnings on a remote read fail (#4832)
6 years ago
Ben Kochie c6399296dc
Fix spelling/typos (#4921)
6 years ago
Fabian Reinartz a9803e9ecb Correctly skip mismatching targets
6 years ago
Alex Yu 5dcce32ef8 update promlog to latest version (#4876)
6 years ago
Ganesh Vernekar ca93fd544b /api/v1/labels endpoint for getting all label names (#4835)
6 years ago
Simon Pasquier 6fa8de132b
web/v1/api: add tests for admin actions (#4767)
6 years ago
Goutham Veeramachaneni 7acedbce64
web(api): Make query and range api errors match
6 years ago
Simon Pasquier 181f07ef26
web: avoid proxy to connect to the local gRPC server (#4572)
6 years ago
Simon Pasquier a308a186e4 web/api/v1: fix targets endpoint
6 years ago
Brian Brazil 9c03e11c2c Hook OpenMetrics parser into scraping.
6 years ago
Simon Pasquier c4a6acfb1e
*: move to go 1.11 (#4626)
6 years ago
Goutham Veeramachaneni ffb7f829ec
Merge pull request #4730 from prometheus/release-2.4
6 years ago
Tariq Ibrahim d371697841 Adding new metric type to track in-flight queries via the remote read API endpoint. (#4699)
6 years ago
Callum Styan 9bca041285 WIP: keep track of samples per query, set a max # of samples (#4513)
6 years ago
Simon Pasquier 3c00eeaf16 web/api/v1: fix optional skip_head for snapshot (#4674)
6 years ago
Krasi Georgiev 47a673c3a0
process scrape loops reloading in parallel (#4526)
6 years ago
Tom Wilkie 4c52400708
Limit concurrent remote reads. (#4656)
6 years ago
Tom Wilkie d3a1ff1abf
Reduce memory usage of remote read by reducing pointer usage. (#4655)
6 years ago
Goutham Veeramachaneni 3e87c04b83
Logger is nil for API. Fixes #4577 (#4583)
6 years ago
Tom Wilkie 457e4bb58e
Limit the number of samples remote read can return. (#4532)
6 years ago
Simon Pasquier 75bd348135 web: clean up api/v2 (#4554)
6 years ago
Max Inden ecf676cf97 web/api: Expose rule health and last error (#4501)
6 years ago
Julius Volz 8fbe1b5133
Handle a bunch of unchecked errors (#4461)
6 years ago
Ganesh Vernekar f1db699dff Persist alert 'for' state across restarts (#4061)
6 years ago
Max Leonard Inden 71fafad099
api/v1: Coninue work exposing rules and alerts
6 years ago
mg03 31f8ca0dfb
api v1 alerts/rules json endpoint
6 years ago
Tom Wilkie b1f600343f
Merge pull request #4359 from prometheus/report-errors
6 years ago
Tom Wilkie 02534510ca Review feedback.
6 years ago
Tom Wilkie 901e6d1f82 Review feedback.
6 years ago
Thomas Jackson 92c6f0c92e Add offset to selectParams (#4226)
6 years ago
Tom Wilkie f83155b11e Review feedback.
6 years ago
Tom Wilkie ccb2ee607b Log errors encountered when marshalling and writing responses.
6 years ago
Tom Wilkie fcc3f43acd spelling.
7 years ago
Tom Wilkie ae29512444 Extend API tests to cover remote read API.
7 years ago
Fabian Reinartz 057a5ae2b1 Address comments
7 years ago
Fabian Reinartz ad4c33c1ff scrape,api: provide per-target metric metadata
7 years ago
Brian Brazil dd6781add2 Optimise PromQL (#3966)
7 years ago
Henri DF 2952387ed1 Pass query hints down into remote read query proto (#4122)
7 years ago
beorn7 94ff07b81d Merge branch 'release-2.2'
7 years ago
Krasi Georgiev ddd46de6f4 Races/3994 (#4005)
7 years ago
Mario Trangoni 464e747f1e fix some comments typos (#4059)
7 years ago
Brian Brazil cc39021b2b Provide custom marshalling for Point
7 years ago
Brian Brazil 299b78a887 Switch to json-iterator for v1 api.
7 years ago
Brian Brazil 8ede14b24c Add unittests for Point json output
7 years ago
Brian Brazil ecd0a9c6ba web: Add benchmark for respond()
7 years ago
Simon Pasquier 83325c8d82 web: replace deprecated InstrumentHandler() (#3862)
7 years ago
Fabian Reinartz 3e6c890aea api: add flag to skip head on snapshots
7 years ago
Conor Broderick 99006d3baf Added dropped targets API to targets endpoint (#3870)
7 years ago
Conor Broderick 1fd20fc954 Add dropped alertmanagers to alertmanagers API (#3865)
7 years ago
Bartek Plotka 93a63ac5fd api: Added v1/status/flags endpoint. (#3864)
7 years ago
Fabian Reinartz 7ccd4b39b8 *: implement query params
7 years ago
Krasi Georgiev b75428ec19 rename package retrieve to scrape
7 years ago
Goutham Veeramachaneni 2d73d2b892
Merge pull request #3570 from Gouthamve/colon-snapshot
7 years ago
Goutham Veeramachaneni bee6864c14 Make the date returned by snapshot script friendly
7 years ago
Ed Schouten bb724f1bef Deprecate DeduplicateSeriesSet() in favor of NewMergeSeriesSet().
7 years ago
Goutham Veeramachaneni e0d917e2f5
Merge pull request #3523 from Gouthamve/clean-tomb
7 years ago
Goutham Veeramachaneni f0599d4dbf Incorporate review-feedback
7 years ago
Julius Volz ab11a457e8 Remove obsolete TODO in API code
7 years ago
Goutham Veeramachaneni 311edc5a38 Merge branch 'master' into clean-tomb
7 years ago
Goutham Veeramachaneni d8515b2580 Move Admin APIs to v1
7 years ago
Brian Brazil d7b3df5ae1 Fix staticcheck errors
7 years ago
Goutham Veeramachaneni 3de10e3b44
Add CleanTombstones API endpoint
7 years ago
Fabian Reinartz 83cd270ea4 *: adapt to storage interface changes
7 years ago
David Kaltschmidt af75ce02c1 Review feedback
7 years ago
David Kaltschmidt c93e54d240 Adds execution timer stats to the range query
7 years ago
Alexey Miroshkin 8c681f4a6c Provide POST endpoint for query+query_range (#3322)
7 years ago
Tom Wilkie 746752b946 Merge external labels in order.
7 years ago
Tom Wilkie b22485bef0 Remove spurious test import.
7 years ago
Tom Wilkie ee011d906d Port remote read server to 2.0.
7 years ago
Julius Volz 099df0c5f0 Migrate "golang.org/x/net/context" -> "context" (#3333)
7 years ago
Fabian Reinartz abf7c975c9 Merge branch 'master' into dev-2.0
7 years ago
beorn7 f20e6a0ae4 Only respond to API requests once the server is ready
7 years ago
Julius Volz f7e8348a88 Re-add contexts to storage.Storage.Querier() (#3230)
7 years ago
Fabian Reinartz 7b02bfee0a web: start web handler while TSDB is starting up
7 years ago
Tom Wilkie 758d64ffd9 s/EncodReadResponse/EncodeReadResponse/
7 years ago
Tom Wilkie febed48703 Implement remote read server in Prometheus.
7 years ago
Fabian Reinartz 87918f3097 Merge branch 'master' into dev-2.0
7 years ago
Matt Bostock d31c068ae4 api.go: Fix typo in comment (#3122)
7 years ago
Max Leonard Inden 1c96fbb992
Expose current Prometheus config via /status/config
7 years ago
Fabian Reinartz 32226e30f5 Guard reload and quit endpoints by flag
7 years ago
Fabian Reinartz 45ac064669 web: disable Amin APIs by default
7 years ago
Fabian Reinartz ccf9e62972 *: add admin grpc API
7 years ago
Fabian Reinartz 6e804b3497 Merge branch 'master' into dev-2.0
8 years ago
Tom Wilkie 4d9b917d11 Instrument Prometheus with OpenTracing (#2554)
8 years ago
Fabian Reinartz 73b8ff0ddc Merge branch 'master' into dev-2.0
8 years ago
David Symonds 04ad889751 Preserve Alertmanager URLs as *url.URL.
8 years ago
Julius Volz beeb0b55c0 Merge pull request #2572 from weaveworks/2571-propagate-api-error
8 years ago
Tom Wilkie f0e8a5f37c Add promql.ErrStorage, which is interpreted by the API as a 500.
8 years ago
Alexey Palazhchenko 17f15d024a Small fixes. (#2578)
8 years ago
Fabian Reinartz bbcf20ba01 web: deduplicate series in federation
8 years ago
Fabian Reinartz f56644e3ae api/v1: deduplicate selected series
8 years ago
Fabian Reinartz c389193b37 Merge branch 'master' into dev-2.0
8 years ago
Bplotka 1823ae8bc4 Fixed int64 overflow for timestamp in v1/api parseDuration and parseTime (#2501)
8 years ago
Goutham Veeramachaneni 4b0270290b
Fix comments to match convention
8 years ago
Goutham Veeramachaneni c6b329c55b
Support Custom Timeouts for Queries
8 years ago
Goutham Veeramachaneni 6634984a38
Comments and Typo Fixes
8 years ago
Fabian Reinartz 1d3cdd0d67 Merge branch 'master' into dev-2.0-rebase
8 years ago
Fabian Reinartz d80a3de235 pkg/textparse: add documentation
8 years ago
Fabian Reinartz 157e698958 web/api: fix min/max timestamps to valid range
8 years ago
Frederic Branczyk bd92571bdd
web/api: make target and alertmanager api responses consistent
8 years ago
Frederic Branczyk 389c6d0043
web/api: add alertmanager api
8 years ago
beorn7 767c0709b1 Retrieval: Avoid copying Target
8 years ago
Fabian Reinartz bc20d93f0a storage: rename iterator value getters to At()
8 years ago
Fabian Reinartz 28f547bcc7 api/v1: fix tests, restore series queries
8 years ago
Fabian Reinartz f8fc1f5bb2 *: migrate ingestion to new batch Appender
8 years ago
Fabian Reinartz 5817cb5bde *: migrate from model.* to promql.* types
8 years ago
Frederic Branczyk 33b583d50e
web/api: add targets endpoint
8 years ago
Fabian Reinartz 30af47535d Merge remote-tracking branch 'origin/release-1.2'
8 years ago
Anders Daljord Morken 5c025a2f41 query_range: Validate that start comes before end
8 years ago
Fabian Reinartz 8fa18d564a storage: enhance Querier interface usage
8 years ago
Julius Volz f92532f254 api: Consolidate web API contexts
8 years ago
Julius Volz c187308366 storage: Contextify storage interfaces.
8 years ago
Julius Volz ed5a0f0abe promql: Allow per-query contexts.
8 years ago
Anders Daljord Morken e9885ecb94 Bugfix: Avoid divide-by-zero panic on query_range?step=0
8 years ago
Julius Volz 3bfec97d46 Make the storage interface higher-level.
8 years ago
Fabian Reinartz 97f62c021e api: drop legacy API
9 years ago
beorn7 da8cb10b43 Partition the status tab into items in a dropdown
9 years ago
Julius Volz 0c1e7a5b00 Support time range in /api/v1/series endpoint.
9 years ago
Jonathan Boulle 38098f8c95 Add missing license headers
9 years ago
beorn7 4b574e8a61 Switch chunk encoding to type 2 where it was hardcoded type 1 before
9 years ago
beorn7 836f1db04c Improve MetricsForLabelMatchers
9 years ago
beorn7 a7408bfb47 Unify duration parsing
9 years ago
Julius Volz 1ae23bf5e9 Handle OPTIONS HTTP requests correctly.
9 years ago
Tobias Schmidt 7a6a0630d1 Merge pull request #1213 from prometheus/fix-wrong-http-status-codes
9 years ago
Tobias Schmidt bf84faa010 Return HTTP server error codes for execution errors
9 years ago
Tobias Schmidt 50079a85a1 Make time parameter optional in v1 query API
9 years ago
Fabian Reinartz 33aab4169c Anchor regexes in vector matching
9 years ago
Julius Volz 0088aa4d45 Merge pull request #1132 from prometheus/fix-quoting-and-escaping
9 years ago
Julius Volz 46c5260761 Support escape sequences in strings and add raw strings.
9 years ago
Fabian Reinartz e3b6ec9784 Switch to common/log
9 years ago
Fabian Reinartz 398bbf906b Switch to common/route package
9 years ago
Fabian Reinartz 171f50706a Fix unkeyed field errors.
9 years ago
Fabian Reinartz f8a25f6af7 Apply HTTP handler compression everywhere
9 years ago
Julius Volz 995d3b831d Fix most golint warnings.
9 years ago
Fabian Reinartz d6b8da8d43 Switch promql types to common/model
9 years ago
Fabian Reinartz 1535ef1457 Replace metric.SamplePair with model.SamplePair
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
Fabian Reinartz 62b4e89b39 Restore legacy API scalar format
10 years ago
Fabian Reinartz 3d67d75935 promql: implement JSON array format for scalar and string
10 years ago
Fabian Reinartz 77e8983221 promql: add MarshalJSON method for SamplePair
10 years ago
Fabian Reinartz 8f904d6a54 api/v1: fix response format tests
10 years ago
Fabian Reinartz b36fa7ad61 api/v1: fix Content-Type in response
10 years ago
Julius Volz bc1c789bab Disallow cross-origin DELETE and POST requests.
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 94cd321be1 promql: error if all label matchers are empty.
10 years ago
Fabian Reinartz 85d7c7640a web: remove flags, refactor handlers
10 years ago
Fabian Reinartz 7bb7e565a4 web/api: add GET and DELETE /series endpoints
10 years ago
Fabian Reinartz 7be94ce962 web/api: improve errors, add tests
10 years ago
Fabian Reinartz 75b0b7420e web/api: replace /metrics/names with /label/:name/values endpoint.
10 years ago
Fabian Reinartz 5b713911e3 web/api: enable running API legacy and v1 in parallel
10 years ago
Fabian Reinartz ab9c98acac web/api: add initial API v1 implementation.
10 years ago
Fabian Reinartz e88e5f680b web: simplify prefix handling using util/route package.
10 years ago
Fabian Reinartz 78047326b4 web: cleanup initialization of web service.
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
Julius Volz d7c015c149 Convert pathPrefix to not have trailing slash.
10 years ago
Björn Rabenstein c44e7cd105 Merge pull request #706 from prometheus/beorn7/persistence2
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
Fabian Reinartz 279831cdf1 Fix and improve parsing error output.
10 years ago
Fabian Reinartz 25cdff3527 Remove `name` arg from `Parse*` functions, enhance parsing errors.
10 years ago
Fabian Reinartz 3ca11bcaf5 Switch Prometheus to promql package.
10 years ago
Ceesjan Luiten 0e18784c64 Make all paths absolute to support proxies
10 years ago
Julius Volz 33702da8a8 Use simple Now() func in API instead of utility.Time.
10 years ago
Julius Volz a5a553f1da Add initial HTTP API tests.
10 years ago
Julius Volz 3f2686d0b3 Remove unused fields from MetricsService.
10 years ago
Julius Volz c9b76def4c Report all query API HTTP errors in JSON format.
10 years ago
Julius Volz df314ead84 Remove unnecessary "else" branch in query API.
10 years ago
Julius Volz a68b880c27 Add tests for new timestamp/duration functions.
10 years ago
Julius Volz cb816ea14a Improve timestamp/duration parsing in query API.
10 years ago
Julius Volz 8a4acefd66 Allow custom timestamps in instant query API.
10 years ago
Julius Volz c78436d707 Remove unused API time dependency injection.
10 years ago
beorn7 fa1935a644 Remove /api/targets call and do not show job and instance labels on status.
10 years ago
Fabian Reinartz fa1e90003b Query timeout added.
10 years ago
Bjoern Rabenstein 5859b74f1b Clean up license issues.
10 years ago
Julius Volz cc27fb8aab Rename remaining all-caps constants in AST layer.
10 years ago
Bjoern Rabenstein 39efe6358b Fix typos and import order.
10 years ago
Bjoern Rabenstein b1e4956142 Apply a giant code cleanup.
10 years ago
Julius Volz c3fcea45e3 Support finer time resolutions than 1 second.
10 years ago
Brian Brazil f114bbd4e7 Make query_range more robust.
10 years ago
Bjoern Rabenstein 71206dbc06 More code cleanups.
10 years ago
Bjoern Rabenstein f5f9f3514a Major code cleanup.
10 years ago
Julius Volz e7ed39c9a6 Initial experimental snapshot of next-gen storage.
10 years ago
Julius Volz 21cafe6cd7 Only evict memory series after they are on disk.
10 years ago
Bjoern Rabenstein 8956faeccb Migrate to new client_golang.
10 years ago
Brian Brazil 1828b1f55c Only log every query when debugging.
10 years ago
Julius Volz 01f652cb4c Separate storage implementation from interfaces.
11 years ago
Julius Volz 740d448983 Use custom timestamp type for sample timestamps and related code.
11 years ago
Conor Hennessy eba01d1119 Remove usage of gorest.
11 years ago
Julius Volz a50ee8df30 Always set CORS headers at beginning of API handler.
11 years ago
Julius Volz 788587426b Make scrape timeouts configurable per job.
11 years ago
Julius Volz 0003027dce Add needed trailing spaces in logs.
11 years ago
Julius Volz aa5d251f8d Use github.com/golang/glog for all logging.
11 years ago
Julius Volz 35ee2cd3cb Add alertmanager notification support to Prometheus.
12 years ago
Julius Volz 9f07f8677a Generate tabular console view from JSON data.
12 years ago
Matt T. Proud 30b1cf80b5 WIP - Snapshot of Moving to Client Model.
12 years ago
Julius Volz 1fe3d3b06b Remove obsolete argument from target handling code.
12 years ago
Julius Volz 51689d965d Add debug timers to instant and range queries.
12 years ago
Julius Volz 56324d8ce2 Make AST query storage non-global.
12 years ago
Matt T. Proud 3b9b1c6ab4 Define dependencies for web. stack concretely.
12 years ago
Julius Volz 9cea5d9df8 Convert the Prometheus configuration to protocol buffers.
12 years ago
Matt T. Proud e86f4d9dfd Convert time readers to represent time in UTC.
12 years ago
Julius Volz a0d311c9e6 Constantize job name label.
12 years ago
Bernerd Schaefer 8af0bbb3a0 Set job label for targets registered through the API
12 years ago
Bernerd Schaefer 5e9447996b Set CORS Headers on API requests
12 years ago
Julius Volz ec413459fa Depointerize Matrix/Vector types as well as time.Time arguments.
12 years ago
Julius Volz 2b8f0b2cc7 Constantize metric name label name.
12 years ago