16392 Commits

Author SHA1 Message Date
Sahil Rasaikar
cc1e6e40f0 fix: Updates unknown state to -1,adds fix for failing test case
Signed-off-by: Sahil Rasaikar <sahil.rasaikar@gmail.com>
2025-10-05 17:15:32 +05:30
Sahil Rasaikar
516afbea67 Init Commit: fix for issue #4510
Signed-off-by: Sahil Rasaikar <sahil.rasaikar@gmail.com>
2025-10-05 17:15:32 +05:30
George Krajcsovits
f4b8840f51
Merge pull request #17271 from prometheus/krajo/fix-changelog
chore(changelog): fix changelog
2025-10-02 12:38:54 +02:00
Bryan Boreham
968d722bb2
Merge pull request #17212 from bboreham/no-simplify
[PERF] Regex: stop calling Simplify
2025-10-02 10:51:04 +01:00
György Krajcsovits
dc0013381c
chore(changelog): fix changelog
16737 was in 3.6.
16923 lacked number and a bit underdefined.

Signed-off-by: György Krajcsovits <gyorgy.krajcsovits@grafana.com>
2025-10-02 09:49:25 +02:00
Björn Rabenstein
12c0961fd4
Merge pull request #17248 from prometheus/beorn7/histogram
model/histogram: Validate non-negative count and zero bucket
2025-10-01 18:05:14 +02:00
Björn Rabenstein
1b0f2b3017
Merge pull request #17249 from prometheus/beorn7/doc
docs: Clarify the handling of negative histograms
2025-10-01 16:58:28 +02:00
beorn7
e94031abd2 docs: Clarify the handling of negative histograms
Signed-off-by: beorn7 <beorn@grafana.com>
2025-10-01 16:42:20 +02:00
beorn7
3d7cf4c274 model/histogram: Validate non-negative count and zero bucket
We have always validated that none of the bucket is negative. We
should do the same for the count of observations and the zero bucket.

Note that this was always implied in the protobuf exposition format
because a count or a zero bucket population is ignored if it is not
positive.

Signed-off-by: beorn7 <beorn@grafana.com>
2025-10-01 16:40:41 +02:00
Marvin Rösch
e5dd0315a8
mixin: add uid to remote write dashboard
Signed-off-by: Marvin Rösch <marvinroesch99@gmail.com>
2025-10-01 14:39:26 +02:00
George Krajcsovits
5c897e3801
Merge pull request #17244 from prometheus/krajo/update-npm-deps
chore(deps): update npm dependencies before release
2025-10-01 11:31:08 +02:00
György Krajcsovits
63fb211946
chore(deps): update npm dependencies before release
make update-npm-deps

Signed-off-by: György Krajcsovits <gyorgy.krajcsovits@grafana.com>
2025-10-01 10:58:29 +02:00
George Krajcsovits
58a42623d8
Merge pull request #17253 from prometheus/krajo/merge-release-306-to-main
merge release 306 to main
2025-10-01 10:54:09 +02:00
György Krajcsovits
e752e733e1
Merge remote-tracking branch 'origin/release-3.6' into krajo/merge-release-306-to-main
# Conflicts:
#	CHANGELOG.md
#	tsdb/head_test.go
2025-10-01 10:35:29 +02:00
Patryk Prus
dc3e6af91a
tsdb: Fix appended sample count metrics when converting float staleness markers to histograms (#17241)
tsdb: Fix appended sample count metrics when converting histogram staleness markers

Signed-off-by: Patryk Prus <p@trykpr.us>
Signed-off-by: Björn Rabenstein <github@rabenste.in>
Co-authored-by: Björn Rabenstein <github@rabenste.in>
2025-09-30 16:49:54 +00:00
Julius Volz
cc7b1de372
Merge pull request #17240 from LittleFox94/fix-web-redirect
UI: fix redirect when web.routePrefix configured
2025-09-30 18:15:39 +02:00
Bryan Boreham
30abb29b21
Merge pull request #17242 from bboreham/lookback-param
[DOCS] API: Document the lookback_delta parameter
2025-09-30 14:58:59 +01:00
Arthur Silva Sens
8f8304a2ad
Update go modules (#17243)
* Update go modules

Signed-off-by: Arthur Silva Sens <arthursens2005@gmail.com>

* Update semconv

Signed-off-by: Arthur Silva Sens <arthursens2005@gmail.com>

* Force go version 1.24.0

Signed-off-by: Arthur Silva Sens <arthursens2005@gmail.com>

* Revert incorrect prometheus bump

Signed-off-by: Arthur Silva Sens <arthursens2005@gmail.com>

---------

Signed-off-by: Arthur Silva Sens <arthursens2005@gmail.com>
2025-09-30 10:19:32 -03:00
Bryan Boreham
7056c70647
Merge pull request #16851 from jingchanglu/main
chore: fix some function names in comment
2025-09-30 12:54:48 +01:00
Bryan Boreham
356e778a0d
Merge pull request #17204 from machine424/ccl
chore(workflows/check_release_notes): do not run on dependabot PRs and only run against main
2025-09-30 12:22:22 +01:00
Bryan Boreham
8f7e6644f0
Merge pull request #17233 from ADITYATIWARI342005/fix/functions.mdAndStorage.md
docs: fix typos in querying functions and storage
2025-09-30 12:20:24 +01:00
Bryan Boreham
aa494b9acd
Merge pull request #17234 from ReemaAlzaid/deps/security-docker-28.3.3-mapstructure-2.4.0
deps: docker/docker→v28.3.3+incompatible; mapstructure/v2→v2.4.0
2025-09-30 12:16:32 +01:00
Bryan Boreham
0d3ec05056
Merge pull request #17043 from machine424/ffl
chore: allow seamless use of testing/synctest for >=go1.24
2025-09-30 12:11:12 +01:00
Bryan Boreham
a59f3e090b [DOCS] API: Document the lookback_delta parameter
Signed-off-by: Bryan Boreham <bjboreham@gmail.com>
2025-09-30 10:50:04 +01:00
Julius Volz
536a2b1fd2
Merge pull request #17158 from ADITYATIWARI342005/feature-scrape_duration
[FEATURE] : Add {scrape interval + timeout} to targets page
2025-09-29 19:59:37 +02:00
ADITYATIWARI342005
3ef9f4e18a ui: rename ScrapeDetails→ScrapeTimingDetails; refine labels per review
Rename component for clarity (timing-only focus)
Chevron title: “Show/Hide additional timing info”
Duration pill tooltip: “Duration of last target scrape”
Update imports/usages; keep DOM-conditional expanded content

Signed-off-by: ADITYATIWARI342005 <142050150+ADITYATIWARI342005@users.noreply.github.com>
2025-09-29 20:45:52 +05:30
Mara Sophie Grosch
93887a9b82 UI: fix redirect when web.routePrefix configured
Signed-off-by: Mara Sophie Grosch <littlefox@lf-net.org>
2025-09-29 15:55:12 +03:00
Reema Alzaid
c487ffdb89 deps(security): bump docker/docker to v28.3.3+incompatible (GHSA-x4rx-4gw3-53p4 / CVE-2025-54388); bump go-viper/mapstructure/v2 to v2.4.0 (GHSA-2464-8j7c-4cjm)
Signed-off-by: Reema Alzaid <reema-alzaid@outlook.com>
2025-09-28 16:52:14 +03:00
ADITYATIWARI342005
8eb8758925 ui: Add expandable scrape interval and timeout to targets page
Implements expand/collapse functionality for displaying final scrape
configuration (interval + timeout) in the targets page timing column.
- Add ScrapeDetails component with expand/collapse chevron
- Keep existing "Last Scrape" and "Scrape Duration" badges always visible
- Display "Scrape interval: every \<interval\>" and "Scrape timeout: after \<timeout\>" when expanded
- Use IconRepeat for interval and IconPlugConnectedX for timeout
- Follow TargetLabels.tsx pattern for consistency
- Implement performance optimization with conditional DOM rendering
- Maintain existing hover tooltip functionality

Signed-off-by: ADITYATIWARI342005 <142050150+ADITYATIWARI342005@users.noreply.github.com>
2025-09-28 01:18:26 +05:30
ADITYA TIWARI
ecdf459e9f
Merge branch 'prometheus:main' into fix/functions.mdAndStorage.md 2025-09-27 04:38:45 +05:30
Jan Fajerski
c9e0e36701
Add comments clarifying why promql.Querylogger exists (#17231)
And why we only have one implementation in this code base.

Fixes: https://github.com/prometheus/prometheus/issues/15869

Signed-off-by: Jan Fajerski <jfajersk@redhat.com>
2025-09-26 15:33:09 +01:00
Ayoub Mrini
e697dfa3ff
Merge pull request #17200 from mjlshen/k8s-v0.33.5
Update to k8s.io v0.33.5
2025-09-26 13:21:28 +02:00
Björn Rabenstein
6e88f5171d
Merge pull request #17215 from prometheus/beorn7/histogram
federation: Add NHCB support
2025-09-25 19:31:37 +02:00
beorn7
62eda08a6c web: Add NHCB support to federation
This simply fills the classic buckets of the histogram protobuf with
the content of the custom buckets.

Signed-off-by: beorn7 <beorn@grafana.com>
2025-09-25 15:54:27 +02:00
Arthur Silva Sens
6471d14602
Add George and Arthur as release Shepherds for 3.7 (#17227)
Signed-off-by: Arthur Silva Sens <arthursens2005@gmail.com>
2025-09-25 13:04:32 +00:00
Naman-B-Parlecha
ed67a0cbf1 refactor(histogram): rename types for clarity in histogram conversion tests
Signed-off-by: Naman-B-Parlecha <namanparlecha@gmail.com>
2025-09-25 17:40:10 +05:30
Naman-B-Parlecha
f71f911040 fix(lint): Changing tests
Signed-off-by: Naman-B-Parlecha <namanparlecha@gmail.com>
2025-09-25 15:28:25 +05:30
Julien
4199c2f45a
Add anchored and smoothed to vector selectors. (#16457)
* Add anchored and smoothed to vector selectors.

This adds "anchored" and "smoothed" keywords that can be used following a matrix selector.

"Anchored" selects the last point before the range (or the first one after the range) and adds it at the boundary of the matrix selector.

"Smoothed" applies linear interpolation at the edges using the points around the edges. In the absence of a point before or after the edge, the first or the last point is added to the edge, without interpolation.

*Exemple usage*

* `increase(caddy_http_requests_total[5m] anchored)` (equivalent of *caddy_http_requests_total - caddy_http_requests_total offset 5m* but takes counter reset into consideration)
* `rate(caddy_http_requests_total[step()] smoothed)`

Signed-off-by: Julien Pivotto <291750+roidelapluie@users.noreply.github.com>

* Update docs/feature_flags.md

Co-authored-by: Charles Korn <charleskorn@users.noreply.github.com>
Signed-off-by: Julien <291750+roidelapluie@users.noreply.github.com>

* Smoothed/Anchored rate: Add more tests

Signed-off-by: Julien Pivotto <291750+roidelapluie@users.noreply.github.com>

* Anchored/Smoothed modifier: error out with histograms

Signed-off-by: Julien Pivotto <291750+roidelapluie@users.noreply.github.com>

---------

Signed-off-by: Julien Pivotto <291750+roidelapluie@users.noreply.github.com>
Signed-off-by: Julien <291750+roidelapluie@users.noreply.github.com>
Co-authored-by: Charles Korn <charleskorn@users.noreply.github.com>
2025-09-25 11:34:59 +02:00
Naman-B-Parlecha
73904b4c75 refactor(histogram): Converting to Absolute values and fixing the test
Signed-off-by: Naman-B-Parlecha <namanparlecha@gmail.com>
2025-09-25 03:42:23 +05:30
George Krajcsovits
55a4782eb7
Merge pull request #17214 from prometheus/krajo/native-histogram-schema-wal
Native histograms: ignore invalid schemas from WAL and log
2025-09-24 14:59:18 +02:00
George Krajcsovits
35d9f28c87
Update tsdb/record/record.go
Co-authored-by: Björn Rabenstein <beorn@grafana.com>
Signed-off-by: George Krajcsovits <krajorama@users.noreply.github.com>
2025-09-24 14:27:37 +02:00
György Krajcsovits
30f941c57c
fix(wal): ignore invalid native histogram schemas on load
Reduce the resolution of histograms as needed and ignore invalid
schemas while emitting a warning log.

Signed-off-by: György Krajcsovits <gyorgy.krajcsovits@grafana.com>
2025-09-24 11:41:25 +02:00
George Krajcsovits
f53782b009
Merge pull request #17213 from prometheus/krajo/native-histogram-schema-reduce
Native histograms: reduce resolution as needed when reading from chunk or remote read
2025-09-24 11:28:35 +02:00
George Krajcsovits
112f91803c
Merge pull request #17189 from prometheus/krajo/native-histogram-schema-validation
fix(nativehistograms): validation should fail on unsupported schemas
2025-09-24 11:27:26 +02:00
Michael Shen
1eaddc64d0
Migrate K8s discovery service queues to use strongly typed queues
Signed-off-by: Michael Shen <mishen@umich.edu>
2025-09-23 20:32:11 -07:00
Michael Shen
9c525b84c4
Add deprecation notice to associated K8s endpoints API objects
Signed-off-by: Michael Shen <mishen@umich.edu>
2025-09-23 20:30:37 -07:00
Michael Shen
1703e54dfd
Update to k8s.io v0.33.5
Signed-off-by: Michael Shen <mishen@umich.edu>
2025-09-23 20:30:36 -07:00
Simon Pasquier
dde7d6ad37
doc: clarify start/end for label API endpoints (#17217)
Because the label API endpoints read from the TSDB indexes, they can
return information for series which are present in the index but have no
samples in the queried interval.

Add similar note for the series endpoint.

Signed-off-by: Simon Pasquier <spasquie@redhat.com>
2025-09-23 12:03:14 +01:00
György Krajcsovits
a5a6413c1a
better errors naming and formatting, typo fixes
Signed-off-by: György Krajcsovits <gyorgy.krajcsovits@grafana.com>
2025-09-23 11:20:55 +02:00
György Krajcsovits
6e42da8904
feat(remote): reduce resolution of native histograms on remote read
If a sample read through remote read has too high resolution,
reduce it to the maximum allowed.

This is a slow path, but we only expect it to happen if the server
side is newer version that allows higher resolution.

Signed-off-by: György Krajcsovits <gyorgy.krajcsovits@grafana.com>
2025-09-23 11:20:55 +02:00