Commit Graph

476 Commits (27b78c336e436e9eed8b55ab0b162b888ec641d8)

Author SHA1 Message Date
Krasi Georgiev b75428ec19 rename package retrieve to scrape
7 years ago
Krasi Georgiev 7858745c04 rename structs for consistency
7 years ago
Krasi Georgiev acc4197098 remove dicovery race for the context field
7 years ago
Julien Pivotto 8b20cb1e8d last config success time gauge: use SetToCurrentTime() (#3750)
7 years ago
Simon Pasquier 81c0ab69e0 Don't reset FiredAt for inactive alerts
7 years ago
Krasi Georgiev 719c579f7b refactor main execution reloadReady handling, update some comments
7 years ago
Krasi Georgiev 0eafaf32d3 set the correct config reloading execution for scraper and notifier
7 years ago
Krasi Georgiev 97f0461e29 refactor the config reloading execution
7 years ago
Krasi Georgiev 5260c650ec use the config hash for the map lookup
7 years ago
Krasi Georgiev 8369826808 comment to rethink the map reference for the notifier discovery
7 years ago
Krasi Georgiev d12e6f29fc discovery manager ApplyConfig now takes a direct ServiceDiscoveryConfig so that it can be used for the notify manager
7 years ago
Shubheksha Jalan 0471e64ad1 Use shared types from the `common` repo (#3674)
7 years ago
Goutham Veeramachaneni 35a6ffbaf3
Merge pull request #3587 from krasi-georgiev/web-test-error-check
7 years ago
Shubheksha Jalan ec94df49d4 Refactor SD configuration to remove `config` dependency (#3629)
7 years ago
Brian Brazil ecc24b554d
Hide block duration flags. (#3618)
7 years ago
Krasi Georgiev c94fa731aa bypass the proxy for the tests
7 years ago
Krasi Georgiev ad66476c4f fix flaky main.go test and simplify a bit
7 years ago
Fabian Reinartz 2881d73ed8
Merge pull request #3362 from krasi-georgiev/discovery-refactoring
7 years ago
Goutham Veeramachaneni 9c9f96b2c0
Merge pull request #3529 from krasi-georgiev/main-integration-test
7 years ago
Krasi Georgiev 587dec9eb9 rebased and resolved conflicts with the new Discovery GUI page
7 years ago
Krasi Georgiev 1ec76d1950 rearange the contexts variables and logic
7 years ago
Krasi Georgiev 6ff1d5c51e add the scrape manager config reloader
7 years ago
Krasi Georgiev b0d4f6ee08 resolved merge confilc in main.go
7 years ago
Krasi Georgiev c5cb0d2910 simplify naming and API.
7 years ago
Krasi Georgiev 9c61f0e8a0 scrape pool doesn't rely on context as Stop() needs to be blocking to prevent Scrape loops trying to write to a closed TSDB storage.
7 years ago
Krasi Georgiev e405e2f1ea refactored discovery
7 years ago
pasquier-s 2440696961 Log file descriptor limits at startup (#3567)
7 years ago
Alberto Cortés 29da2fb9cd testutil: update to go1.9 testing.Helper
7 years ago
Alberto Cortés 8f6a9f7833 config: simplify tests by using testutil.NotOk (#3289)
7 years ago
Krasi Georgiev 740662644e write to temp dir and remove it at the end.
7 years ago
Brian Brazil b97f4cf48c Add metrics for rule group interval and last duration.
7 years ago
Krasi Georgiev 2c2a962da3 main.go integration test for Startup interrupting.
7 years ago
Goutham Veeramachaneni 823b7f90b3
Use the files globbed files and not the files in cfg
7 years ago
Fabian Reinartz 62461379b7 rules: decouple notifier packages
7 years ago
Fabian Reinartz 4d964a0a0d rules: make glob expansion a concern of main
7 years ago
Fabian Reinartz bd9f7460eb rules: remove config package dependency
7 years ago
Fabian Reinartz 2d0e3746ac rules: remove dependency on promql.Engine
7 years ago
Krasi Georgiev e2f4850fea Refactor main.go with oklog/pkg/group actors pattern
7 years ago
Thibault Chataigner fc4406201e Tsdb StartTime : Use a simplier way to compute StartTime
7 years ago
Julius Volz 099df0c5f0 Migrate "golang.org/x/net/context" -> "context" (#3333)
7 years ago
Julius Volz 9d43176ab3 Remove unused printVersion variable (#3335)
7 years ago
Julius Volz 82c5b98496 Capitalize Prometheus in startup message (#3332)
7 years ago
Thibault Chataigner bf4a279a91 Remote storage reads based on oldest timestamp in primary storage (#3129)
7 years ago
Julius Volz 5f715f5733 Fix typo in flag description (#3302)
7 years ago
Tobias Schmidt 3589f2f1d4 Merge pull request #3285 from jlevesy/use-testutils-in-cmd-subpackage
7 years ago
Julien Levesy d7b4fa8d78 use testutil assertions in the cmd/prometheus package
7 years ago
Mathieu Pasquet 38afa507bb Provide better errors messages in commandline
7 years ago
Marc Sluiter 6a633eece1 Added go-conntrack for monitoring http connections (#3241)
7 years ago
Fabian Reinartz 2d0b8e8b94 Merge branch 'master' into dev-2.0
7 years ago
Paul Gier 08af129b4d cmd/prometheus: don't allow quotes at beginning or end of url
7 years ago
Paul Gier f79b55d057 cmd/prometheus: remove govalidator for url validation
7 years ago
Fabian Reinartz 7b02bfee0a web: start web handler while TSDB is starting up
7 years ago
Goutham Veeramachaneni f5aed810f9 logging: Port to common/promlog
7 years ago
Fabian Reinartz d21f149745 *: migrate to go-kit/log
7 years ago
Fabian Reinartz c70379e1c7 Merge branch 'dev-2.0' of github.com:prometheus/prometheus into dev-2.0
7 years ago
Fabian Reinartz fffe51fb03 Add mutex and block profiling via envvar
7 years ago
Ben Kochie 59aca4138b Fix staticcheck issues.
7 years ago
Matt Bostock 64973f5c65 cmd/prometheus: Fix capitalisation in log line (#3123)
7 years ago
Mark Adams 77c816b309 Fix pprof endpoints when -web.route-prefix or -web.external-url is used (#3054)
7 years ago
Callum Styan 8912f81ffe check if file_sd files exist in checkConfig
7 years ago
Fabian Reinartz 25f3e1c424 Merge branch 'master' into mergemaster
7 years ago
KalivarapuReshma 686050d816 Change -config.file to --config.file in Readme and error message
7 years ago
emluque ff54c5c11a 2831 Add Healthy and Ready endpoints
7 years ago
Fabian Reinartz 4d3d8ee229 Merge pull request #2850 from tomwilkie/dev-2.0-remote
7 years ago
Julius Volz cc50aa2c6b main: Consistently end flag descriptions with periods. (#2977)
7 years ago
Tom Wilkie 2dda5775e3 Initial port of remote storage to v2.
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 be32afd6df cmd/prometheus: add back tsdb.no-lockfile flag
8 years ago
Goutham Veeramachaneni f9202c6511
Move from .yaml to .yml in update rules
8 years ago
Goutham Veeramachaneni e3701077c3
Move promtool to kingpin
8 years ago
Fabian Reinartz 867b8d108f cmd/prometheus: cleanup
8 years ago
Fabian Reinartz 34ab7a885a cmd/prometheus: switch to kingpin
8 years ago
Goutham Veeramachaneni 592cb00c2f
Remove version from RuleGroups
8 years ago
Goutham Veeramachaneni 37e7b69f56
Merge remote-tracking branch 'upstream/dev-2.0' into rulegroups
8 years ago
Goutham Veeramachaneni 67dc73fd59
Flag changes for 2.0
8 years ago
Goutham Veeramachaneni d407bd150c Consolidate the duration params in CLI
8 years ago
Goutham Veeramachaneni 6b70a4d850
Incorporate PR feedback
8 years ago
Goutham Veeramachaneni 6c1617fd13
Simplify usage string
8 years ago
Goutham Veeramachaneni 507790a357
Rework logging to use explicitly passed logger
8 years ago
Goutham Veeramachaneni dc69645e92
Move back to go-yaml
8 years ago
Goutham Veeramachaneni 8abb91f656
Move CLI commander to cobra
8 years ago
Goutham Veeramachaneni 1c08743721
Update check-rules to new format.
8 years ago
Goutham Veeramachaneni cea1e99f78
Add update-rules command to promtool
8 years ago
Fabian Reinartz 669075c6b9 Merge branch 'master' into dev-2.0
8 years ago
Chris Goller 42de0ae013 Use log.Logger interface for all discovery services
8 years ago
Conor Broderick 6766123f93 Replace regex with Secret type and remarshal config to hide secrets (#2775)
8 years ago
Fabian Reinartz 4c31061251 Merge branch 'master' into dev-2.0
8 years ago
Fabian Reinartz d289dc55c3 storage: update TSDB
8 years ago
Shashank Varanasi dea60bb553 Fix malformed uname string (#2727)
8 years ago
Fabian Reinartz 06c2b76cd4 Merge branch 'master' into uptsdb
8 years ago
Shashank Varanasi 61235fd851 Print system information (uname) at Prometheus startup (#2709)
8 years ago
Frederic Branczyk c50a3eccce
prometheus: default max-block-duration to 10% of retention
8 years ago
Michal Witkowski 4177c35eba Fixup sighup for P2 TSDB init #2699
8 years ago
Fabian Reinartz 9b175d48cb Add flag to disable TSDB lock file
8 years ago
Fabian Reinartz 73b8ff0ddc Merge branch 'master' into dev-2.0
8 years ago
Matt Layher 283756c503 Initial commit of 'promtool check-metrics', promlint package (#2605)
8 years ago
Fabian Reinartz 757cba7c31 cmd/prometheus: Undo GOGC adjustment
8 years ago
beorn7 f20b84e816 flags: Improve doc strings for checkpoint flags
8 years ago
Fabian Reinartz 8ffc851147 Merge branch 'master' into dev-2.0
8 years ago
Julius Volz 589061919a Merge pull request #2465 from Gouthamve/alert-metrics-2429
8 years ago
Goutham Veeramachaneni f27ce34a13
Use Registerer to Register All Metrics
8 years ago
Goutham Veeramachaneni 0d0c9d5440
Move Registerer to Config Struct in Notifier
8 years ago
Björn Rabenstein 29f05680a2 Merge pull request #2528 from prometheus/beorn7/storage2
8 years ago
Björn Rabenstein e63d079b59 Merge pull request #2527 from prometheus/beorn7/storage
8 years ago
Julius Volz b5b0e00923 Merge pull request #2499 from prometheus/remote-read
8 years ago
beorn7 434ab2a6a3 storage: Evict chunks and calculate persistence pressure based on target heap size
8 years ago
beorn7 96a303b348 storage: Use staleness delta as head chunk timeout
8 years ago
beorn7 04ccf84559 main.go: Set GOGC to 40 by default
8 years ago
Julius Volz 8fda83ea12 Make rules only read local data
8 years ago
Julius Volz 406b65d0dc Rename remote.Storage to remote.Writer
8 years ago
Julius Volz 02395a224d [WIP] Remote Read
8 years ago
Fabian Reinartz b586781283 *: update tsdb vendoring and add retention flag
8 years ago
Goutham Veeramachaneni f35816613e
Refactored Notifier to use Registerer
8 years ago
Fabian Reinartz 9304179ef7 Merge branch 'master' into dev-2.0
8 years ago
Fabian Reinartz 4397b4d508 *: pass Prometheus registry into storage
8 years ago
Julius Volz beb3c4b389 Remove legacy remote storage implementations
8 years ago
Fabian Reinartz ea3ba338dd main: add flags for new storage
8 years ago
Fabian Reinartz 5772f1a7ba retrieval/storage: adapt to new interface
8 years ago
Fabian Reinartz 1d3cdd0d67 Merge branch 'master' into dev-2.0-rebase
8 years ago
Fabian Reinartz 035976b275 retrieval: handle not found error correctly
8 years ago
Bartek Plotka 579e33f19a Fixed style issues.
8 years ago
Bartek Plotka d7febe97fa Fixed regression in -alertmanager.url flag. Basic auth was ignored.
8 years ago
Fabian Reinartz ad9bc62e4c storage: extend appender and adapt it
8 years ago
Fabian Reinartz e631a1260d retrieval: use separate appender per target
8 years ago
Fabian Reinartz 68dc358496 cmd/prometheus: remove tests for old flags
8 years ago
Fabian Reinartz f8fc1f5bb2 *: migrate ingestion to new batch Appender
8 years ago
Fabian Reinartz 1becee3f6c main: remove Alertmanager legacy flag configuration
8 years ago
Fabian Reinartz 15a931dbdb promql: migrate model types, use tsdb interfaces
8 years ago
Fabian Reinartz 8b84ee5ee6 storage: remove old storage
8 years ago
Fabian Reinartz 11a731ba82 remote: remove hard-coded remote storages
8 years ago
Erdem Agaoglu 054f8ebbfb Increase default max-connections
8 years ago
Erdem Agaoglu e487477a17 LimitListener to limit max number of connections
8 years ago
Erdem Agaoglu 9986b28380 Set read-timeout for http.Server
8 years ago
Fabian Reinartz 3fb4d1191b config: rename AlertingConfig, resolve file paths
8 years ago
Fabian Reinartz d4deb8bbf2 web: show discovered Alertmanagers in UI
8 years ago
Fabian Reinartz f210d96497 notifier: use dynamic service discovery
8 years ago
Fabian Reinartz 200bbe1bad config: extract SD and HTTPClient configurations
8 years ago
beorn7 5c41ca84e5 Catch negative staleness delta set on the command line
8 years ago
Brian Brazil 6bc29ba857 Fix regression from #1957, specify non-zero default timeout. (#2121)
8 years ago
Julius Volz ab80ced756 storage: separate chunk package, publish more names
8 years ago
Fabian Reinartz 57b358b82a vendor: update govalidator (#2023)
8 years ago
Matt Bostock dd98766b32 cmd/prometheus/main.go: Fix typo in comment
8 years ago
Tom Wilkie 4520e12440 Add HTTP Basic Auth & TLS support to the generic write path. (#1957)
8 years ago
Julius Volz c187308366 storage: Contextify storage interfaces.
8 years ago
Julius Volz ed5a0f0abe promql: Allow per-query contexts.
8 years ago
Julius Volz 5f5a78e807 Merge pull request #1974 from prometheus/disable-local-storage
8 years ago
Tom Wilkie d83879210c Switch back to protos over HTTP, instead of GRPC.
8 years ago
Tobias Schmidt 29ced0090f Fix common english misspellings
8 years ago
Julius Volz b24e5d63bc Add noop local storage engine.
8 years ago
Julius Volz a88e950d1f Mark remote write address flag as experimental.
8 years ago
Julius Volz aa3f2b7216 Generic write cleanups and changes.
8 years ago
Brian Brazil 36d2c4bd0b Add generic write path using grpc.
8 years ago
Julius Volz 4a866c13be Fix ApplyConfig() error handling
8 years ago
Julius Volz 08891beb5f Merge pull request #1828 from drawks/iss-1821
8 years ago
Björn Rabenstein 12709af249 Merge pull request #1838 from prometheus/release-1.0
8 years ago
Dave Rawks 00ea36cdbe Error on non-flag commandline arguments
8 years ago
beorn7 bf6201483c Improve wording on log flag comment
8 years ago
beorn7 25385aafcb Explicitly add logging flags to our custom flag set
8 years ago
Dmitry Vorobev 273e457da4 web: return status code and error message for config resource
8 years ago
Fabian Reinartz 59d26e8536 web: add -web.route-prefix flag
9 years ago
Fabian Reinartz 8c24dfdb86 cmd/prometheus: use own flag set
9 years ago
Fabian Reinartz dd57e7ef5c Merge pull request #1699 from prometheus/fabxc-multiam
9 years ago
Fabian Reinartz 9baf120cd5 notifier: dispatch to multiple Alertmanagers
9 years ago
beorn7 99881ded63 Make the number of fingerprint mutexes configurable
9 years ago
beorn7 da8cb10b43 Partition the status tab into items in a dropdown
9 years ago
Steve Durrheimer 399d5c6375
Make version informations consistent between prometheus components
9 years ago
beorn7 865d16f870 Rename Gorilla into varbit
9 years ago
beorn7 8cdced3850 Implement Gorilla-inspired chunk encoding
9 years ago
Tobias Schmidt 2f151d02eb Merge pull request #1456 from prometheus/validate-alertmanager-url
9 years ago
Tobias Schmidt 7763bbd993 Validate alertmanager URL
9 years ago
beorn7 b6fdb355d7 Move dump-heads into its own tool
9 years ago
beorn7 f193f2b8ef Add a command to promtool that dumps metadata of heads.db
9 years ago
Fabian Reinartz bfa8aaa017 Rename notification to notifier
9 years ago
Fabian Reinartz fce17b41c5 Merge pull request #1408 from prometheus/hostname
9 years ago
Fabian Reinartz e62677d7ba Log argument parse errors
9 years ago
Ignacio Carbajo 6a323b1e6d Fix minor typo
9 years ago
beorn7 ec08c9a391 Rework the way to communicate backpressure (AKA suspended ingestion)
9 years ago
Fabian Reinartz d9f836e5b8 Merge pull request #1340 from prometheus/validate-externa-url
9 years ago
beorn7 a2cd479058 Fix calculation of chunks to persist after restart
9 years ago
Tobias Schmidt 122d73858d Validate URL parameters
9 years ago
Julius Volz b150c5768c Add missing word in comment.
9 years ago
Fabian Reinartz 7e1b39c682 Fix startup/teardown order, add documentation
9 years ago
beorn7 4221c7de5c Improve handling of series file truncation
9 years ago
Fabian Reinartz 37d80c4b25 Fix premature rule evaluation
9 years ago
Richard Hartmann 7da42eee6e main.go: Remove warning about external_labels
9 years ago
Julius Volz 87d1831f12 Document INFLUXDB_PW env var in username flag
9 years ago
Fabian Reinartz 62075aa037 Reduce noisy no-alertmanager warning
9 years ago
Fabian Reinartz 52e5224f5a Refactor rules/ package
9 years ago
Fabian Reinartz 2c8a96ecdc Adjust notification handler flags
9 years ago
Fabian Reinartz e114ce0ff7 Refactor notification handler
9 years ago
Fabian Reinartz a542cc8609 Remove -web.use-local-assets
9 years ago
Corentin Chary a2e4439086 Add support for remote storage on Graphite
9 years ago
Fabian Reinartz e3b6ec9784 Switch to common/log
9 years ago
Julius Volz dac26cef71 Rename global "labels" config option to "external_labels".
9 years ago
Julius Volz 24d0d9190e Make -web.external-url help string more verbose.
9 years ago
Julius Volz eeb1da36ac Fix InfluxDB write support to work with InfluxDB 0.9.x.
9 years ago
Julius Volz af513468eb Fix some dead code, missing error checks, shadowings.
9 years ago
Julius Volz d73c8a4f0b Remove notice about 0.14.x config file format change.
9 years ago
Jimmi Dyson ec04ba38a2 Kubernetes SD config check
9 years ago
Jimmi Dyson a1574aa2b3 Move TLS options to scrape config
9 years ago
Fabian Reinartz d839980fcb Merge pull request #1051 from prometheus/globallabels
9 years ago
Fabian Reinartz 8fa719f778 Attach global labels to remote storage samples
9 years ago
Fabian Reinartz 5fed076a76 Attach global labels to outgoing alerts.
9 years ago
Fabian Reinartz 9bbd9264e2 Add global labels to federation
9 years ago
Silas Snider b2cb637f97 Add instrumentation around configuration reloads.
9 years ago
Julius Volz 995d3b831d Fix most golint warnings.
9 years ago
Julius Volz 274e9d6955 Exit when web server encounters a startup error
9 years ago
Fabian Reinartz 18c0f347a3 Fix loop-reloading on shutdown
9 years ago
Jan Berktold 2bf7048dbb Add reload handler to web
9 years ago
Fabian Reinartz 73f1cc807d Check token and cert file existence in promtool
9 years ago
Fabian Reinartz 7a67472fc1 Resolve relative paths on configuration loading
9 years ago
Fabian Reinartz 7e615dcdf0 cmd/promtool: resolve rule files relative to config file
10 years ago
Fabian Reinartz feb8a03503 rules: load rule files relative to a base dir
10 years ago
Julius Volz fcff35b43e Consolidate external reachability flags into one.
10 years ago
Fabian Reinartz b201725d1c cmd/prometheus: fix remote storage fanout
10 years ago
Julius Volz 8887f1e1a2 Merge pull request #853 from prometheus/fabxc/help
10 years ago
Fabian Reinartz 525070419b cmd/prometheus: improve help output
10 years ago
Fabian Reinartz bcc8101d9e cmd/promtool: fix missing builddate in version info
10 years ago
Fabian Reinartz 23e77450ff main: cleanup initialization of remote storage.
10 years ago
Fabian Reinartz ccbc801d19 Merge pull request #816 from prometheus/fabxc/promctl
10 years ago
Fabian Reinartz 890c1a7e74 cmd/promtool: add promtool command.
10 years ago
Fabian Reinartz f97db8d4e5 cmd/prometheus: fix version output
10 years ago
Fabian Reinartz 39edc2df7a version: move version information into separate package.
10 years ago
Fabian Reinartz de66e32a4d cmd/prometheus: create new main package.
10 years ago