Guillaume Berche
f5fb37dbab
Update functions.md
...
Add missing linefeed as requested by https://github.com/prometheus/prometheus/pull/11404#discussion_r1266625301
Signed-off-by: Guillaume Berche <guillaume.berche@orange.com>
2023-07-19 08:27:15 +02:00
Julien Pivotto
0a48f93111
Merge pull request #10367 from ianwoolf/pr_add_close_for_query_logger
...
add Close for ActiveQueryTracker to close the file.
2023-07-18 13:53:18 +02:00
Julien Pivotto
1f5934e7be
Merge pull request #10623 from songjiayang/update-index
...
make sure response error when TOC parse failed
2023-07-18 13:47:27 +02:00
Julien Pivotto
2bdb2e627f
Merge pull request #10914 from wangrzneu/add-endpointslice-label
...
Add more labels for endpointslice and endpoints role in k8s discovery
2023-07-18 13:35:03 +02:00
Julien Pivotto
e0502f00c8
Merge pull request #11285 from ashishkurmi/main
...
ci: add minimum GitHub token permissions for workflows
2023-07-18 13:22:07 +02:00
Julien Pivotto
782e6f64fb
Merge pull request #11295 from dimitarvdimitrov/dimitar/simplify-evalTimestamp
...
Simplify rule group's EvalTimestamp formula
2023-07-18 13:21:20 +02:00
Julien Pivotto
b7028c1722
Merge pull request #11426 from douglascamata/document-and-test-relabel-memory-reuse
...
Better document possible relabel input modification
2023-07-18 13:16:54 +02:00
Julien Pivotto
06d31c9cc9
Merge pull request #12569 from hetznercloud/hcloud-go-v2
...
build(deps): bump github.com/hetznercloud/hcloud-go to v2.0.0
2023-07-17 16:58:15 +02:00
Julien Pivotto
a39d2dbb23
Merge pull request #12570 from hetznercloud/pr-signoff
...
docs: use actual flag for signing off commits
2023-07-17 16:57:22 +02:00
Julian Tölle
5a0dea1d91
docs: use actual flag for signing off commits
...
Flag is documented as --signoff: https://git-scm.com/docs/git-commit#Documentation/git-commit.txt---signoff
Signed-off-by: Julian Tölle <julian.toelle@hetzner-cloud.de>
2023-07-17 14:30:33 +02:00
Julian Tölle
7aa7965716
build(deps): bump github.com/hetznercloud/hcloud-go to v2.0.0
...
Version 2 introduced a breaking change in the `id` field of all
resources. They were changed from `int` to `int64` to make sure that all
future numerical IDs are supported on all architectures.
You can learn more about this
[here](https://docs.hetzner.cloud/#deprecation-notices-%E2%9A%A0%EF%B8%8F )
Signed-off-by: Julian Tölle <julian.toelle@hetzner-cloud.de>
2023-07-17 14:25:29 +02:00
Julien Pivotto
c204e1b924
Merge pull request #12568 from dswarbrick/linode-int-overflow
...
Linode SD: cast InstanceSpec values to int64 to avoid overflows
2023-07-17 08:22:25 +02:00
Daniel Swarbrick
de89a8c827
Linode SD: cast InstanceSpec values to int64 to avoid overflows
...
InstanceSpec struct members are untyped integers, so they can overflow
on 32-bit arch when bit-shifted left.
Signed-off-by: Daniel Swarbrick <daniel.swarbrick@gmail.com>
2023-07-16 19:23:44 +02:00
Julien Pivotto
52b1ddc050
Merge pull request #11411 from robskillington/add-promql-cmds-to-promtool
...
Add PromQL format and label matcher set/delete commands to promtool
2023-07-15 23:19:17 +02:00
Julien Pivotto
c572d9d6d9
Merge pull request #11905 from charleskorn/api-response-format-extension-point
...
Add extension point for returning different content types from API endpoints
2023-07-15 22:49:29 +02:00
Julien Pivotto
fd5b01afdc
promtool docs: write flags between backtits in help
...
Signed-off-by: Julien Pivotto <roidelapluie@o11y.eu>
2023-07-15 22:32:59 +02:00
cui fliter
096ceca44f
remove repetitive words ( #12556 )
...
Signed-off-by: cui fliter <imcusg@gmail.com>
2023-07-13 15:53:40 +02:00
beorn7
536a487af4
scrape: Refactor names of float samples
...
Continue to remove confusion that histogram samples are also samples
and histogram values are also values etc. by renaming float values and
float samples using the same schema as for histograms.
Concretely:
- result → resultFloats (corresponding to resultHistograms)
- pendingResult → pendingFloats (corresponding to pendingHistograms)
- rolledbackResult → rolledbackFloats (corresponding to rolledbackHistograms)
- sample → floatSample (corresponding to histogramSample)
This also order the fields in `collectResultAppender` more
consistently.
Signed-off-by: beorn7 <beorn@grafana.com>
2023-07-13 14:27:51 +02:00
beorn7
0e3f35324b
scrape: Enable ingestion of multiple exemplars per sample
...
This has become a requirement for native histograms, as a single
histogram sample commonly has many buckets, so that providing many
exemplars makes sense.
Since OM text doesn't support native histograms yet, the test had to
be expanded to also support protobuf test cases.
Signed-off-by: beorn7 <beorn@grafana.com>
2023-07-13 14:16:10 +02:00
Björn Rabenstein
cb93a0cbd2
Merge pull request #12554 from prometheus/beorn7/histogram
...
Histograms: Expose and fix #12552
2023-07-13 11:52:00 +02:00
Mikhail Fesenko
02e11cc2a7
Fix from discussion
...
Signed-off-by: Mikhail Fesenko <proggga@gmail.com>
2023-07-13 00:53:19 +02:00
Mikhail Fesenko
17cdfdd79f
maraphon.go: Simplified conditions in method
...
Signed-off-by: Mikhail Fesenko <proggga@gmail.com>
2023-07-13 00:44:13 +02:00
Julien Pivotto
b3b669fd9a
Add experimental flag and docs
...
Signed-off-by: Julien Pivotto <roidelapluie@o11y.eu>
2023-07-12 22:33:49 +02:00
Rob Skillington
e1ace8d00e
Add PromQL format and label matcher set/delete commands to promtool
...
Signed-off-by: Rob Skillington <rob@chronosphere.io>
Signed-off-by: Julien Pivotto <roidelapluie@o11y.eu>
2023-07-12 22:33:44 +02:00
beorn7
da047c6857
histograms: Fix bug #12552
...
The problem was the following:
When trying to parse native histograms and classic histograms in
parallel, the parser would first parse the histogram proto messages as
a native histogram and then parse the same message again, but now as a
classic histogram. Afterwards, it would forget that it was dealing
with a metric family that contains native histograms and would parse
the rest of the metric family as classic histograms only. The fix is
to check again after being done with a classic histogram.
Signed-off-by: beorn7 <beorn@grafana.com>
2023-07-12 18:47:00 +02:00
beorn7
1c3bd04bea
histograms: Modify test to expose bug #12552
...
Signed-off-by: beorn7 <beorn@grafana.com>
2023-07-12 18:17:35 +02:00
Douglas Camata
47819fef01
Merge branch 'main' of github.com:prometheus/prometheus into document-and-test-relabel-memory-reuse
...
Signed-off-by: Douglas Camata <159076+douglascamata@users.noreply.github.com>
2023-07-12 15:01:29 +02:00
beorn7
162612ea86
histograms: Improve comment
...
Oversight during review of #12525 .
Signed-off-by: beorn7 <beorn@grafana.com>
2023-07-12 14:52:49 +02:00
Björn Rabenstein
5da638d527
Merge pull request #12525 from fatsheep9146/native-histogram-min-max
...
* Add function for iterating through all buckets in reverse to find max bucket
Signed-off-by: Carrie Edwards <edwrdscarrie@gmail.com>
* enhance histogram_quantile to get min/max value
Signed-off-by: Ziqi Zhao <zhaoziqi9146@gmail.com>
---------
Signed-off-by: Carrie Edwards <edwrdscarrie@gmail.com>
Signed-off-by: Ziqi Zhao <zhaoziqi9146@gmail.com>
Co-authored-by: Carrie Edwards <edwrdscarrie@gmail.com>
2023-07-12 14:39:57 +02:00
Guillaume Berche
60b380da70
Refine functions.md as suggested during review
...
See https://github.com/prometheus/prometheus/pull/11404#issuecomment-1631165746
Signed-off-by: Guillaume Berche <guillaume.berche@orange.com>
2023-07-12 09:08:23 +02:00
Ziqi Zhao
42d9169ba1
enhance histogram_quantile to get min/max value
...
Signed-off-by: Ziqi Zhao <zhaoziqi9146@gmail.com>
2023-07-12 04:29:54 +08:00
Carrie Edwards
f93ac97867
Update querying function docs
...
Signed-off-by: Carrie Edwards <edwrdscarrie@gmail.com>
2023-07-11 21:51:20 +08:00
Carrie Edwards
2f9bc98b8a
Add tests for min and max functions
...
Signed-off-by: Carrie Edwards <edwrdscarrie@gmail.com>
2023-07-11 21:51:20 +08:00
Carrie Edwards
bc0ee4a469
Implement native histogram min and max query functions
...
Signed-off-by: Carrie Edwards <edwrdscarrie@gmail.com>
2023-07-11 21:51:20 +08:00
Carrie Edwards
a462f7fa21
Add function for iterating through all buckets in reverse to find max bucket
...
Signed-off-by: Carrie Edwards <edwrdscarrie@gmail.com>
2023-07-11 21:51:20 +08:00
Julien Pivotto
89e213bc02
Merge pull request #12546 from roidelapluie/removeimport
...
TSDB: Remove usused import of sort
2023-07-11 15:06:48 +02:00
Justin Lei
32d87282ad
Add Zstandard compression option for wlog ( #11666 )
...
Snappy remains as the default compression but there is now a flag to switch
the compression algorithm.
Signed-off-by: Justin Lei <justin.lei@grafana.com>
2023-07-11 14:57:57 +02:00
Julien Pivotto
bf5bf1a4b3
TSDB: Remove usused import of sort
...
Signed-off-by: Julien Pivotto <roidelapluie@o11y.eu>
2023-07-11 14:29:31 +02:00
Julien Pivotto
95606830fd
Merge pull request #11498 from paulfantom/selector
...
documentation/mixin: use prometheus metrics for dashboard variables
2023-07-11 13:36:00 +02:00
Julien Pivotto
fc2e4cd3b9
docs: Fix link to feature flags.
...
Signed-off-by: Julien Pivotto <roidelapluie@o11y.eu>
2023-07-11 13:17:39 +02:00
Julien Pivotto
8c8afec116
Merge pull request #12542 from merrickclay/tsdb-doc-comment
...
improve incorrect doc comment
2023-07-11 13:10:04 +02:00
Julien Pivotto
0f85e4f41d
Merge pull request #12539 from bboreham/slices-sorts
...
Replace sort.Slice with faster slices.SortFunc
2023-07-11 13:09:02 +02:00
Julien Pivotto
f3f3d8f5ca
Merge pull request #12540 from bboreham/slices-sorts2
...
Replace sort.Sort with faster slices.SortFunc
2023-07-11 13:08:19 +02:00
Julien Pivotto
31015f83d7
Merge pull request #12535 from pracucci/export-min-max-time
...
Expose MinTime and MaxTime
2023-07-11 13:07:42 +02:00
Merrick Clay
70e41fc5ac
improve incorrect doc comment
...
Signed-off-by: Merrick Clay <merrick.e.clay@gmail.com>
2023-07-10 16:52:00 -06:00
Bryan Boreham
ce153e3fff
Replace sort.Sort with faster slices.SortFunc
...
The generic version is more efficient.
Signed-off-by: Bryan Boreham <bjboreham@gmail.com>
2023-07-10 09:43:45 +00:00
haleyao
c5a37ddad5
Remove deleted target from discovery manager
...
Signed-off-by: haleyao <haleyao@tencent.com>
2023-07-10 00:09:25 +08:00
Bryan Boreham
578e2b6a3f
re-order imports for linter
...
Signed-off-by: Bryan Boreham <bjboreham@gmail.com>
2023-07-08 12:39:33 +00:00
Marco Pracucci
7cc4292328
Export MinTime and MaxTime
...
Signed-off-by: Marco Pracucci <marco@pracucci.com>
2023-07-06 17:48:13 +02:00
Julien Pivotto
26c354de0b
Merge pull request #12530 from prometheus/superq/promu_15
...
Update promu
2023-07-06 15:35:27 +02:00