beorn7
6bcb2c8adf
Make lint only run on 1.11 and higher
...
Signed-off-by: beorn7 <beorn@grafana.com>
2019-07-22 15:45:59 +02:00
Björn Rabenstein
ff1d4e21c1
Merge pull request #619 from jacksontj/time_formatting
...
Handle formatting when the time in nanoseconds requires more than a single int64
2019-07-09 22:55:12 +02:00
Thomas Jackson
cd27091e79
Handle formatting when the time in nanoseconds requires more than a single int64
...
Signed-off-by: Thomas Jackson <jacksontj.89@gmail.com>
Fixup for #617
2019-07-09 09:23:52 -07:00
Björn Rabenstein
b4cb89acd2
Merge pull request #617 from jacksontj/time_formatting
...
Change all time formatting to UTC and off of time.RFC3339Nano
2019-07-09 17:52:25 +02:00
Thomas Jackson
9b5568b9ab
Pass all precision instead of artificially limiting
...
Signed-off-by: Thomas Jackson <jacksontj.89@gmail.com>
2019-07-09 07:31:37 -07:00
Thomas Jackson
c52580de2b
Change all time formatting to UTC and off of time.RFC3339Nano
...
Prometheus has issues parsing RFC3339Nano timestamps if the year has more than 4 digits, in addition it is the second-pass parse attempt. Since this is a client library and the interface is a `time.Time` it makes sense that we pick the clearest simplest format-- so I propose we use the `model.Time` representation of time in our communications to prometheus. This (1) removes the issues with timezones in those queries going downstream and (2) completely works around this #614 issue as the parsing mechanism in prometheus can handle those times in this format.
Related to #614
Signed-off-by: Thomas Jackson <jacksontj.89@gmail.com>
2019-07-09 07:31:37 -07:00
Björn Rabenstein
a6c69798cc
Merge pull request #613 from prometheus/beorn7/push
...
Add Delete method to Pusher
2019-06-28 18:29:03 +02:00
beorn7
48cd700822
Use method constants from the http package
...
Signed-off-by: beorn7 <beorn@grafana.com>
2019-06-28 15:23:00 +02:00
beorn7
9a1440d469
Add Delete method
...
Fixes #611 .
Signed-off-by: beorn7 <beorn@grafana.com>
2019-06-28 15:12:09 +02:00
Björn Rabenstein
f1c4042316
Merge pull request #612 from prometheus/makefile_common
...
Synchronize Makefile.common from prometheus/prometheus
2019-06-26 11:56:01 +02:00
prombot
4ea8112816
makefile: update Makefile.common with newer version
...
Signed-off-by: prombot <prometheus-team@googlegroups.com>
2019-06-26 00:01:19 +00:00
Björn Rabenstein
7c68e7286a
Merge pull request #610 from prometheus/makefile_common
...
Synchronize Makefile.common from prometheus/prometheus
2019-06-23 13:56:59 +02:00
prombot
54b5b0a177
makefile: update Makefile.common with newer version
...
Signed-off-by: prombot <prometheus-team@googlegroups.com>
2019-06-23 00:00:52 +00:00
Thomas Jackson
3d8379da8f
Add Warnings to LabelValues and LabelNames ( #609 )
...
Signed-off-by: Thomas Jackson <jacksontj.89@gmail.com>
2019-06-17 21:27:57 +03:00
Björn Rabenstein
4ab88e80c2
Merge pull request #608 from prometheus/beorn7/release
...
Cut release v1.0.0
2019-06-15 22:44:27 +02:00
beorn7
505041cff1
Cut release v1.0.0
...
Signed-off-by: beorn7 <beorn@grafana.com>
2019-06-14 23:54:28 +02:00
Thomas Jackson
063470a3c9
Add warnings to series ( #603 )
...
Signed-off-by: Thomas Jackson <jacksontj.89@gmail.com>
2019-06-15 00:28:28 +03:00
Björn Rabenstein
6636dde4bc
Merge pull request #607 from prometheus/beorn7/wrap
...
Make the AlreadyRegisteredError useful for wrapped registries
2019-06-14 18:35:23 +02:00
beorn7
2f3a0f8f2e
Make the AlreadyRegisteredError useful for wrapped registries
...
Signed-off-by: beorn7 <beorn@grafana.com>
2019-06-14 17:55:35 +02:00
Thomas Jackson
f213ad9bfc
Add /labels API to client ( #604 )
...
API ref https://prometheus.io/docs/prometheus/latest/querying/api/#getting-label-names
Signed-off-by: Thomas Jackson <jacksontj.89@gmail.com>
2019-06-14 16:49:58 +02:00
Björn Rabenstein
92d8f4a558
Merge pull request #601 from prometheus/makefile_common
...
Synchronize Makefile.common from prometheus/prometheus
2019-06-14 13:00:47 +02:00
Björn Rabenstein
040c98c8e6
Merge pull request #606 from prometheus/beorn7/doc
...
Update doc comment of NewProcessCollector
2019-06-14 12:44:49 +02:00
beorn7
f61dbeaded
Update doc comment of NewProcessCollector
...
- Now also works on MS Windows.
- The hints for updating from older versions is obsolete by now.
Signed-off-by: beorn7 <beorn@grafana.com>
2019-06-14 12:33:52 +02:00
Calle Pettersson
c5f4190338
Implement process collector for Windows ( #596 )
...
* Implement process collector for Windows
Signed-off-by: Calle Pettersson <calle@cape.nu>
2019-06-14 12:26:55 +02:00
prombot
6fdbbd8882
makefile: update Makefile.common with newer version
...
Signed-off-by: prombot <prometheus-team@googlegroups.com>
2019-06-14 00:01:17 +00:00
Thomas Jackson
1335ef46bd
Pass warnings through on non-error responses ( #599 )
...
Return warnings as a separate string slice to simplify handling.
Signed-off-by: Thomas Jackson <jacksontj.89@gmail.com>
2019-06-14 01:40:59 +02:00
beorn7
e7f6132a76
Remove work duplication in doc comment
...
Signed-off-by: beorn7 <beorn@grafana.com>
2019-06-12 01:46:17 +02:00
Björn Rabenstein
dae2ffdedc
Merge pull request #600 from prometheus/beorn7/deprecation
...
Remove all deprecated features
2019-06-11 17:08:54 +02:00
beorn7
761a2ff07c
Remove all deprecated features
...
This is in preparation of the upcoming v1 release.
Signed-off-by: beorn7 <beorn@grafana.com>
2019-06-11 16:28:47 +02:00
Björn Rabenstein
2e1bc8f8ec
Merge pull request #597 from prometheus/makefile_common
...
Synchronize Makefile.common from prometheus/prometheus
2019-06-09 00:58:26 +02:00
Björn Rabenstein
2641b98748
Merge pull request #598 from prometheus/beorn7/release
...
Cut v0.9.4
2019-06-07 16:56:44 +02:00
beorn7
b76fdd6b6a
Cut v0.9.4
...
Signed-off-by: beorn7 <beorn@grafana.com>
2019-06-07 12:45:06 +02:00
Björn Rabenstein
b8b56b52bd
Merge pull request #595 from prometheus/beorn7/go-collector
...
Add a simple buildInfoCollector
2019-06-07 10:33:13 +02:00
prombot
8d595571fe
makefile: update Makefile.common with newer version
...
Signed-off-by: prombot <prometheus-team@googlegroups.com>
2019-06-07 00:01:38 +00:00
beorn7
8576729b6f
Add a simple buildInfoCollector
...
Signed-off-by: beorn7 <beorn@grafana.com>
2019-06-06 22:24:23 +02:00
Björn Rabenstein
7ed96b33bd
Merge pull request #594 from prometheus/beorn7/promhttp
...
Add an error counter for internal errors in the HTTP handler
2019-06-06 17:41:52 +02:00
beorn7
4d8144c11a
Add test for the new promhttp_metric_handler_errors_total metric
...
Signed-off-by: beorn7 <beorn@grafana.com>
2019-06-06 16:56:58 +02:00
beorn7
3fa9fca2cb
Add an error counter for internal errors in the HTTP handler
...
The doc comments explain the rationale in a quite detailed way.
Fixes #543 and #542
Signed-off-by: beorn7 <beorn@grafana.com>
2019-06-05 20:07:49 +02:00
Björn Rabenstein
ea8c935f20
Merge pull request #593 from prometheus/beorn7/modules
...
Remove use of deprecated procfs functions
2019-06-05 17:42:15 +02:00
beorn7
3d1d93eb51
Remove use of deprecated procfs functions
...
Signed-off-by: beorn7 <beorn@grafana.com>
2019-06-04 19:26:20 +02:00
beorn7
674d720113
Use tagged version of prometheus/procfs
...
Signed-off-by: beorn7 <beorn@grafana.com>
2019-06-04 18:54:12 +02:00
Björn Rabenstein
f0a455664e
Merge pull request #591 from krasi-georgiev/remove-tsdb
...
remove the tsdb dependancy
2019-05-28 15:29:58 +02:00
Krasi Georgiev
f6e51267db
remove the tsdb dependancy
...
Signed-off-by: Krasi Georgiev <kgeorgie@redhat.com>
2019-05-28 15:42:25 +03:00
Yao Zengzeng
329278ec53
encapsulate target metadata api ( #590 )
...
Signed-off-by: YaoZengzeng <yaozengzeng@zju.edu.cn>
2019-05-28 14:27:09 +02:00
Alex Salt
301aa8906b
/api/v1/rules: alert value as string ( #585 )
...
Signed-off-by: Alexander Saltykov <alexander-s@yandex-team.ru>
2019-05-28 13:57:09 +02:00
Thomas Jackson
7e60220fd3
Switch from encoding/json -> jsoniter ( #570 )
...
* Switch from encoding/json -> jsoniter
Signed-off-by: Thomas Jackson <jacksontj.89@gmail.com>
2019-05-28 13:45:06 +02:00
Björn Rabenstein
388f9869ac
Merge pull request #588 from prometheus/beorn7/test
...
Attempt to fix flakiness of TestGoCollectorMemStats
2019-05-26 23:20:33 +02:00
Björn Rabenstein
33a2efdc9c
Merge pull request #589 from prometheus/beorn/test2
...
Unflake TestGoCollectorGC
2019-05-26 23:19:56 +02:00
beorn7
c818d96e15
Unflake TestGoCollectorGC
...
It is perfectly possible that a normal GC happens just before the
forced one. Thus seeing 2 GCs is fine.
Whenever this test failed, it was because two GCs were seen.
Signed-off-by: beorn7 <bjoern@rabenste.in>
2019-05-26 14:11:51 +02:00
beorn7
fe90eea9bb
Attempt to fix flakiness of TestGoCollectorMemStats
...
This is really lame as it essentially just uses longer times to
wait. The test is still timing-dependent and thus could still
theoretically fail with unlucky scheduling. However, we are testing
something that _is_ about timing. Turning this all into something not
timing-dependent would be first quite involved and second might defeat
the purpose of testing code that is inherently about timing.
Let's see how this works out in practice.
Signed-off-by: beorn7 <bjoern@rabenste.in>
2019-05-26 13:25:59 +02:00