mirror of
https://github.com/prometheus/prometheus.git
synced 2024-11-09 23:24:05 -08:00
bc72a718c4
* Initial draft of prometheus-agent This commit introduces a new binary, prometheus-agent, based on the Grafana Agent code. It runs a WAL-only version of prometheus without the TSDB, alerting, or rule evaluations. It is intended to be used to remote_write to Prometheus or another remote_write receiver. By default, prometheus-agent will listen on port 9095 to not collide with the prometheus default of 9090. Truncation of the WAL cooperates on a best-effort case with Remote Write. Every time the WAL is truncated, the minimum timestamp of data to truncate is determined by the lowest sent timestamp of all samples across all remote_write endpoints. This gives loose guarantees that data from the WAL will not try to be removed until the maximum sample lifetime passes or remote_write starts functionining. Signed-off-by: Robert Fratto <robertfratto@gmail.com> * add tests for Prometheus agent (#22) * add tests for Prometheus agent * add tests for Prometheus agent * rearranged tests as per the review comments * update tests for Agent * changes as per code review comments Signed-off-by: SriKrishna Paparaju <paparaju@gmail.com> * incremental changes to prometheus agent Signed-off-by: SriKrishna Paparaju <paparaju@gmail.com> * changes as per code review comments Signed-off-by: SriKrishna Paparaju <paparaju@gmail.com> * Commit feedback from code review Co-authored-by: Bartlomiej Plotka <bwplotka@gmail.com> Co-authored-by: Ganesh Vernekar <ganeshvern@gmail.com> Signed-off-by: Robert Fratto <robertfratto@gmail.com> * Port over some comments from grafana/agent Signed-off-by: Robert Fratto <robertfratto@gmail.com> * Rename agent.Storage to agent.DB for tsdb consistency Signed-off-by: Robert Fratto <robertfratto@gmail.com> * Consolidate agentMode ifs in cmd/prometheus/main.go Signed-off-by: Robert Fratto <robertfratto@gmail.com> * Document PreAction usage requirements better for agent mode flags Signed-off-by: Robert Fratto <robertfratto@gmail.com> * remove unnecessary defaultListenAddr Signed-off-by: Robert Fratto <robertfratto@gmail.com> * `go fmt ./tsdb/agent` and fix lint errors Signed-off-by: Robert Fratto <robertfratto@gmail.com> Co-authored-by: SriKrishna Paparaju <paparaju@gmail.com>
32 lines
499 B
Plaintext
32 lines
499 B
Plaintext
*#
|
|
.#*
|
|
/*.yaml
|
|
/*.yml
|
|
*.exe
|
|
|
|
/prometheus
|
|
/promtool
|
|
benchmark.txt
|
|
/data
|
|
/data-agent
|
|
/cmd/prometheus/data
|
|
/cmd/prometheus/data-agent
|
|
/cmd/prometheus/debug
|
|
/benchout
|
|
/cmd/promtool/data
|
|
|
|
!/.travis.yml
|
|
!/.promu.yml
|
|
!/.golangci.yml
|
|
/documentation/examples/remote_storage/remote_storage_adapter/remote_storage_adapter
|
|
/documentation/examples/remote_storage/example_write_adapter/example_writer_adapter
|
|
|
|
npm_licenses.tar.bz2
|
|
/web/ui/static/react
|
|
/web/ui/assets_vfsdata.go
|
|
|
|
/vendor
|
|
/.build
|
|
|
|
/**/node_modules
|