Julius Volz
3d2194f561
Style cleanups, mostly for web notifications and startup alert
...
Some of the changes are a bit unreadable because the previous files were not
saved with the project's linter / auto-formatter settings applied. But it's
basically:
* For icons that are not Mantine-native components, use the rem() function
for computing their size, so they scale correctly with the root font size.
See https://mantine.dev/styles/rem/ .
* Try a different icon for the notifications tray, since the bell icon was
already used for Prometheus alerts. Other candidates from
https://tabler.io/icons would be IconExclamationCircle or
IconDeviceDesktopExclamation or IconMessageCircleExclamation.
* The server startup alert looked a bit cramped, introduced a Stack to add
spacing between the text and the progress bar.
* Added a bit of spacing between notification text and date. Things looked
cramped. To make things look ok with that, I also top-aligned the
notification text and icon.
Signed-off-by: Julius Volz <julius.volz@gmail.com>
2024-10-04 14:14:45 +02:00
Manik Rana
47aeca9663
feat: naive fixes and optimzations for `CreatedTimestamp` function ( #14965 )
...
* enhance: wip ct parse optimizations
Signed-off-by: Manik Rana <manikrana54@gmail.com>
* feat: further work on optimization
Signed-off-by: Manik Rana <manikrana54@gmail.com>
* feat: further improvements and remove unused code
Signed-off-by: Manik Rana <manikrana54@gmail.com>
* feat: improve optimizations and fix some CT parse errors
Signed-off-by: Manik Rana <manikrana54@gmail.com>
* fix: check for LsetHash along with name
Signed-off-by: Manik Rana <manikrana54@gmail.com>
* chore: cleanup and documentation
Signed-off-by: Manik Rana <manikrana54@gmail.com>
* enhance: improve comments and add cleaner functions
Signed-off-by: Manik Rana <manikrana54@gmail.com>
* feat: improve comments and add cleaner functions
Signed-off-by: Manik Rana <manikrana54@gmail.com>
* chore: rename to resetCTParseValues
Signed-off-by: Manik Rana <manikrana54@gmail.com>
* fix: post-merge fixes
Signed-off-by: Manik Rana <manikrana54@gmail.com>
* fix: add all possible reserved suffixes
Signed-off-by: Manik Rana <manikrana54@gmail.com>
* test: separate CT values for each metric
Signed-off-by: Manik Rana <manikrana54@gmail.com>
---------
Signed-off-by: Manik Rana <manikrana54@gmail.com>
Signed-off-by: Manik Rana <Manikrana54@gmail.com>
2024-10-04 13:11:02 +01:00
Julien
023146e918
Merge pull request #15082 from roidelapluie/notifystart
...
Notify web UI when starting up and shutting down
2024-10-04 13:40:03 +02:00
Jan Fajerski
563bfdd384
storage: require selectors to always return matching results
...
Signed-off-by: Jan Fajerski <jfajersk@redhat.com>
2024-10-04 12:10:16 +02:00
dependabot[bot]
92be29d0dc
Bump google.golang.org/grpc from 1.66.0 to 1.67.1
...
Bumps [google.golang.org/grpc](https://github.com/grpc/grpc-go ) from 1.66.0 to 1.67.1.
- [Release notes](https://github.com/grpc/grpc-go/releases )
- [Commits](https://github.com/grpc/grpc-go/compare/v1.66.0...v1.67.1 )
---
updated-dependencies:
- dependency-name: google.golang.org/grpc
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-10-04 09:25:05 +00:00
dependabot[bot]
5c5cb0e712
Bump golang.org/x/tools from 0.24.0 to 0.25.0
...
Bumps [golang.org/x/tools](https://github.com/golang/tools ) from 0.24.0 to 0.25.0.
- [Release notes](https://github.com/golang/tools/releases )
- [Commits](https://github.com/golang/tools/compare/v0.24.0...v0.25.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/tools
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-10-04 09:25:04 +00:00
Julien
9d275c23de
cmd/prometheus: Fix flakiness of QueryLogTest
...
Now we check that a rule execution has taken place.
This also reduces the time to run the rules tests from 45s to 25s.
Signed-off-by: Julien <roidelapluie@o11y.eu>
2024-10-04 11:23:57 +02:00
Julien
d98c37478b
Merge pull request #15035 from prometheus/dependabot/go_modules/google.golang.org/api-0.199.0
...
Bump google.golang.org/api from 0.195.0 to 0.199.0
2024-10-04 11:23:46 +02:00
Julien
21e0f83b68
Move notifications in utils
...
Signed-off-by: Julien <roidelapluie@o11y.eu>
2024-10-04 10:11:56 +02:00
dependabot[bot]
52cc937af0
Bump go.uber.org/automaxprocs from 1.5.3 to 1.6.0
...
Bumps [go.uber.org/automaxprocs](https://github.com/uber-go/automaxprocs ) from 1.5.3 to 1.6.0.
- [Release notes](https://github.com/uber-go/automaxprocs/releases )
- [Changelog](https://github.com/uber-go/automaxprocs/blob/master/CHANGELOG.md )
- [Commits](https://github.com/uber-go/automaxprocs/compare/v1.5.3...v1.6.0 )
---
updated-dependencies:
- dependency-name: go.uber.org/automaxprocs
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-10-04 07:46:29 +00:00
Julien
34c0f2d48e
Merge pull request #15029 from prometheus/dependabot/go_modules/documentation/examples/remote_storage/github.com/prometheus/common-0.60.0
...
Bump github.com/prometheus/common from 0.57.0 to 0.60.0 in /documentation/examples/remote_storage
2024-10-04 09:44:52 +02:00
dependabot[bot]
1f40859f9e
Bump google.golang.org/api from 0.195.0 to 0.199.0
...
Bumps [google.golang.org/api](https://github.com/googleapis/google-api-go-client ) from 0.195.0 to 0.199.0.
- [Release notes](https://github.com/googleapis/google-api-go-client/releases )
- [Changelog](https://github.com/googleapis/google-api-go-client/blob/main/CHANGES.md )
- [Commits](https://github.com/googleapis/google-api-go-client/compare/v0.195.0...v0.199.0 )
---
updated-dependencies:
- dependency-name: google.golang.org/api
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-10-04 07:44:20 +00:00
Julien
3a8131b3f1
Merge pull request #15032 from prometheus/dependabot/go_modules/go-opentelemetry-io-449d04d146
...
Bump the go-opentelemetry-io group with 9 updates
2024-10-04 09:43:03 +02:00
machine424
83ee57343a
fix(notifier): stop dropping known alertmanagers on each ApplyConfig and waiting on SD to update them.
...
Signed-off-by: machine424 <ayoubmrini424@gmail.com>
2024-10-03 11:24:01 +02:00
Julien
b6158e8956
Notify web UI when starting up and shutting down
...
Signed-off-by: Julien <roidelapluie@o11y.eu>
2024-10-03 10:27:04 +02:00
Björn Rabenstein
199d2fb492
Merge pull request #14989 from NeerajGartia21/eval_info
...
Adds eval_info command to PromQL testing framework
2024-10-02 16:53:24 +02:00
Julius Volz
20bf32b9d5
Merge pull request #15074 from jadolg/synchronized-RandomUnprivilegedPort
...
Add a mutex and used ports list to the tests random port generator to avoid port collisions
2024-10-02 16:02:41 +02:00
Jorge Alberto Díaz Orozco
06945b3933
Add a mutex and used ports list to the random port generator
...
to avoid port collisions
Signed-off-by: Jorge Alberto Díaz Orozco <diazorozcoj@gmail.com>
2024-10-02 15:27:40 +02:00
Julius Volz
e1f8a79142
Merge pull request #15069 from prometheus/allow-blank-issues
...
Allow blank issue reports again
2024-10-02 15:19:18 +02:00
Björn Rabenstein
78f792135c
Merge pull request #15025 from prometheus/notreset-bug
...
Fix bug in rate vs float and histogram mixup
2024-10-02 14:17:55 +02:00
György Krajcsovits
44ebbb8458
Fix missing histogram copy in sampleRing
...
The specialized version of sample add to the ring:
func addH(s hSample, buf []hSample, r *sampleRing) []hSample
func addFH(s fhSample, buf []fhSample, r *sampleRing) []fhSample
already correctly copy histogram samples from the reused hReader, fhReader
buffers, but the generic version does not. This means that the
data is overwritten on the next read if the sample ring has seen histogram
and float samples at the same time and switched to generic mode.
The `genericAdd` function (which was commented anyway) is by now quite
different from the specialized functions so that this commit deletes
it.
Signed-off-by: György Krajcsovits <gyorgy.krajcsovits@grafana.com>
2024-10-02 13:57:28 +02:00
György Krajcsovits
b5479831b8
Unit test for regression in rate vs float and histogram mixup
...
Signed-off-by: György Krajcsovits <gyorgy.krajcsovits@grafana.com>
2024-10-02 13:56:33 +02:00
Manik Rana
f1c57a95ed
change: No longer ingest OM _created as timeseries if feature-flag 'enable-ct-zero-ingestion' is enabled; fixed OM text CT conversion bug ( #14738 )
...
* chore: revert TypeRequiresCT to private
Signed-off-by: Manik Rana <manikrana54@gmail.com>
* feat: init NewOpenMetricsParser with skipCT true
Signed-off-by: Manik Rana <manikrana54@gmail.com>
* refac: allow opt-in to OM CT ingestion
Signed-off-by: Manik Rana <manikrana54@gmail.com>
* chore: lint
Signed-off-by: Manik Rana <manikrana54@gmail.com>
* chore: use textparse interface to set om options
Signed-off-by: Manik Rana <manikrana54@gmail.com>
* fix: set skipOMSeries in test
Signed-off-by: Manik Rana <manikrana54@gmail.com>
* chore: gofumpt
Signed-off-by: Manik Rana <manikrana54@gmail.com>
* wip: add tests for OM CR parse
Signed-off-by: Manik Rana <manikrana54@gmail.com>
* chore: merge ct tests
Signed-off-by: Manik Rana <manikrana54@gmail.com>
* tests: add cases for OM text
Signed-off-by: Manik Rana <manikrana54@gmail.com>
* fix: check correct test cases
Signed-off-by: Manik Rana <manikrana54@gmail.com>
* chore: use both scrape protocols in config
Signed-off-by: Manik Rana <manikrana54@gmail.com>
* fix: fix inputs and output tests for OM
Signed-off-by: Manik Rana <manikrana54@gmail.com>
* chore: cleanup
Signed-off-by: Manik Rana <manikrana54@gmail.com>
* refac: rename skipOMSeries to skipOMCTSeries
Co-authored-by: Arthur Silva Sens <arthursens2005@gmail.com>
Signed-off-by: Manik Rana <Manikrana54@gmail.com>
* fix: finish refac
Signed-off-by: Manik Rana <manikrana54@gmail.com>
* refac: move setup code outside test
Signed-off-by: Manik Rana <manikrana54@gmail.com>
* tests: verify _created lines create new metric in certain cases
Signed-off-by: Manik Rana <manikrana54@gmail.com>
* fix: post merge fixes
Signed-off-by: Manik Rana <manikrana54@gmail.com>
* chore: lint
Signed-off-by: Manik Rana <manikrana54@gmail.com>
* manager: Fixed CT OMText conversion bug; Refactored tests.
Signed-off-by: bwplotka <bwplotka@gmail.com>
* chore: lint
Signed-off-by: Manik Rana <manikrana54@gmail.com>
* chore: gofumpt
Signed-off-by: Manik Rana <manikrana54@gmail.com>
* chore: imports
Signed-off-by: Manik Rana <manikrana54@gmail.com>
---------
Signed-off-by: Manik Rana <manikrana54@gmail.com>
Signed-off-by: Manik Rana <Manikrana54@gmail.com>
Signed-off-by: bwplotka <bwplotka@gmail.com>
Co-authored-by: Arthur Silva Sens <arthursens2005@gmail.com>
Co-authored-by: bwplotka <bwplotka@gmail.com>
2024-10-02 11:52:03 +01:00
Jesus Vazquez
e99e7ca9cf
README: Update readme with API flag change for the otlp receiver ( #15073 )
...
Signed-off-by: Jesus Vazquez <jesusvzpg@gmail.com>
2024-10-02 10:40:31 +00:00
Manik Rana
98cd80b2e2
feat: add microbenchmarks for OM CT parsing ( #14933 )
...
* test: benchmark OM CT parsing
Signed-off-by: Manik Rana <manikrana54@gmail.com>
* refac: move OM ct benchmark to promparse_test
Signed-off-by: Manik Rana <manikrana54@gmail.com>
* chore: stricter comparison
Co-authored-by: Arthur Silva Sens <arthursens2005@gmail.com>
Signed-off-by: Manik Rana <Manikrana54@gmail.com>
* feat: use richer OM test data
Signed-off-by: Manik Rana <manikrana54@gmail.com>
* refac: move parse-ct test outside of inner loop
Signed-off-by: Manik Rana <manikrana54@gmail.com>
* refac: separate benchmarks for om and prom parsers
Signed-off-by: Manik Rana <manikrana54@gmail.com>
* chore: remove unused code
Signed-off-by: Manik Rana <manikrana54@gmail.com>
* chore: remove more unused code
Signed-off-by: Manik Rana <manikrana54@gmail.com>
* refac: rename to BenchmarkOMParseCreatedTimestamp
Co-authored-by: Bartlomiej Plotka <bwplotka@gmail.com>
Signed-off-by: Manik Rana <Manikrana54@gmail.com>
---------
Signed-off-by: Manik Rana <manikrana54@gmail.com>
Signed-off-by: Manik Rana <Manikrana54@gmail.com>
Co-authored-by: Arthur Silva Sens <arthursens2005@gmail.com>
Co-authored-by: Bartlomiej Plotka <bwplotka@gmail.com>
2024-10-02 07:48:27 +01:00
Julius Volz
bcd9ce1d43
Merge pull request #15061 from prometheus/dependabot/npm_and_yarn/web/ui/postcss-8.4.47
...
Bump postcss from 8.4.44 to 8.4.47 in /web/ui
2024-10-02 08:24:41 +02:00
Julius Volz
4edbe3f70a
Merge pull request #15055 from prometheus/dependabot/npm_and_yarn/web/ui/globals-15.10.0
...
Bump globals from 15.9.0 to 15.10.0 in /web/ui
2024-10-02 08:24:24 +02:00
Julius Volz
8fe5f36a37
Merge pull request #15058 from prometheus/dependabot/npm_and_yarn/web/ui/tabler/icons-react-3.19.0
...
Bump @tabler/icons-react from 2.47.0 to 3.19.0 in /web/ui
2024-10-02 08:19:23 +02:00
Julius Volz
d3b0ab453c
Fix tabler icon props import after version bump
...
Signed-off-by: Julius Volz <julius.volz@gmail.com>
2024-10-02 08:05:20 +02:00
dependabot[bot]
4f448d4c4c
Bump @tabler/icons-react from 2.47.0 to 3.19.0 in /web/ui
...
Bumps [@tabler/icons-react](https://github.com/tabler/tabler-icons/tree/HEAD/packages/icons-react ) from 2.47.0 to 3.19.0.
- [Release notes](https://github.com/tabler/tabler-icons/releases )
- [Commits](https://github.com/tabler/tabler-icons/commits/v3.19.0/packages/icons-react )
---
updated-dependencies:
- dependency-name: "@tabler/icons-react"
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-10-02 05:56:23 +00:00
dependabot[bot]
c0a0520b54
Bump globals from 15.9.0 to 15.10.0 in /web/ui
...
Bumps [globals](https://github.com/sindresorhus/globals ) from 15.9.0 to 15.10.0.
- [Release notes](https://github.com/sindresorhus/globals/releases )
- [Commits](https://github.com/sindresorhus/globals/compare/v15.9.0...v15.10.0 )
---
updated-dependencies:
- dependency-name: globals
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-10-02 05:55:37 +00:00
Julius Volz
e32dbeb384
Merge pull request #15056 from prometheus/dependabot/npm_and_yarn/web/ui/eslint-9.11.1
...
Bump eslint from 9.9.1 to 9.11.1 in /web/ui
2024-10-02 07:54:54 +02:00
Julius Volz
9c0fe8e452
Merge pull request #15057 from prometheus/dependabot/npm_and_yarn/web/ui/codemirror/autocomplete-6.18.1
...
Bump @codemirror/autocomplete from 6.18.0 to 6.18.1 in /web/ui
2024-10-02 07:54:37 +02:00
Julius Volz
fad9859d51
Merge pull request #15065 from prometheus/dependabot/github_actions/actions/setup-node-4.0.4
...
Bump actions/setup-node from 4.0.3 to 4.0.4
2024-10-02 07:29:50 +02:00
dependabot[bot]
98cf5942ae
Bump postcss from 8.4.44 to 8.4.47 in /web/ui
...
Bumps [postcss](https://github.com/postcss/postcss ) from 8.4.44 to 8.4.47.
- [Release notes](https://github.com/postcss/postcss/releases )
- [Changelog](https://github.com/postcss/postcss/blob/main/CHANGELOG.md )
- [Commits](https://github.com/postcss/postcss/compare/8.4.44...8.4.47 )
---
updated-dependencies:
- dependency-name: postcss
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-10-02 05:07:46 +00:00
dependabot[bot]
ab808f6e64
Bump eslint from 9.9.1 to 9.11.1 in /web/ui
...
Bumps [eslint](https://github.com/eslint/eslint ) from 9.9.1 to 9.11.1.
- [Release notes](https://github.com/eslint/eslint/releases )
- [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md )
- [Commits](https://github.com/eslint/eslint/compare/v9.9.1...v9.11.1 )
---
updated-dependencies:
- dependency-name: eslint
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-10-02 05:07:01 +00:00
Julius Volz
05668c5928
Merge pull request #15059 from prometheus/dependabot/npm_and_yarn/web/ui/vite-5.4.8
...
Bump vite from 5.4.2 to 5.4.8 in /web/ui
2024-10-02 07:06:39 +02:00
Julius Volz
64c990937a
Merge pull request #15063 from prometheus/dependabot/npm_and_yarn/web/ui/types/jest-29.5.13
...
Bump @types/jest from 29.5.12 to 29.5.13 in /web/ui
2024-10-02 07:06:12 +02:00
Julius Volz
26058254a4
Merge pull request #15062 from prometheus/dependabot/npm_and_yarn/web/ui/eslint/js-9.11.1
...
Bump @eslint/js from 9.9.1 to 9.11.1 in /web/ui
2024-10-02 07:05:53 +02:00
Julius Volz
cb895264a1
Merge pull request #15060 from prometheus/dependabot/npm_and_yarn/web/ui/mantine/code-highlight-7.13.1
...
Bump @mantine/code-highlight from 7.12.2 to 7.13.1 in /web/ui
2024-10-02 07:05:29 +02:00
Julius Volz
6685222252
Merge pull request #15054 from prometheus/dependabot/npm_and_yarn/web/ui/tanstack/react-query-5.59.0
...
Bump @tanstack/react-query from 5.53.2 to 5.59.0 in /web/ui
2024-10-02 07:05:05 +02:00
Julius Volz
889588317e
Merge pull request #15053 from prometheus/dependabot/npm_and_yarn/web/ui/mantine/notifications-7.13.1
...
Bump @mantine/notifications from 7.12.2 to 7.13.1 in /web/ui
2024-10-02 07:04:38 +02:00
Julius Volz
afbe72f7b1
Merge pull request #15068 from prometheus/dependabot/github_actions/bufbuild/buf-setup-action-1.43.0
...
Bump bufbuild/buf-setup-action from 1.39.0 to 1.43.0
2024-10-02 06:55:48 +02:00
Julius Volz
1b856bbe80
Merge pull request #15037 from prometheus/dependabot/npm_and_yarn/web/ui/jsdom-25.0.1
...
Bump jsdom from 25.0.0 to 25.0.1 in /web/ui
2024-10-02 06:49:36 +02:00
dependabot[bot]
4782b75d11
Bump @codemirror/autocomplete from 6.18.0 to 6.18.1 in /web/ui
...
Bumps [@codemirror/autocomplete](https://github.com/codemirror/autocomplete ) from 6.18.0 to 6.18.1.
- [Changelog](https://github.com/codemirror/autocomplete/blob/main/CHANGELOG.md )
- [Commits](https://github.com/codemirror/autocomplete/compare/6.18.0...6.18.1 )
---
updated-dependencies:
- dependency-name: "@codemirror/autocomplete"
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-10-02 04:48:12 +00:00
Julius Volz
45efd01768
Merge pull request #15052 from prometheus/dependabot/npm_and_yarn/web/ui/uiw/react-codemirror-4.23.3
...
Bump @uiw/react-codemirror from 4.23.1 to 4.23.3 in /web/ui
2024-10-02 06:47:02 +02:00
Julius Volz
764b1227bc
Merge pull request #15067 from prometheus/dependabot/github_actions/github/codeql-action-3.26.10
...
Bump github/codeql-action from 3.26.6 to 3.26.10
2024-10-02 06:45:43 +02:00
Julius Volz
4d4fe3c789
Merge pull request #15066 from prometheus/dependabot/github_actions/scripts/actions/checkout-4.2.0
...
Bump actions/checkout from 4.1.7 to 4.2.0 in /scripts
2024-10-02 06:39:59 +02:00
Julius Volz
fc01573daa
Allow blank issue reports again
...
I frequently find myself in the situation where the standard bug issue template
fields are all irrelevant for what I want to report, and then I have to first
shoehorn my info into the template somehow, save the issue, edit it, and remove
all the unnecessary parts. This demotivates me from filing casual issues, e.g.
when I see a CI test fail. We should have a way of still filing custom issues
without all the templatey bits.
Signed-off-by: Julius Volz <julius.volz@gmail.com>
2024-10-02 06:30:13 +02:00
Julius Volz
72a0d2cb3f
Merge pull request #15047 from prometheus/dependabot/npm_and_yarn/web/ui/codemirror/view-6.34.1
...
Bump @codemirror/view from 6.33.0 to 6.34.1 in /web/ui
2024-10-02 06:23:40 +02:00