Skip to content

Commit da03d65

Browse files
authored
update prometheus exporter (#46)
1 parent 4bc3a6b commit da03d65

File tree

7 files changed

+1293
-531
lines changed

7 files changed

+1293
-531
lines changed

CHANGELOG.md

Lines changed: 91 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,174 +1,263 @@
11
# Changelog
2-
All notable changes to this project will be documented in this file.
32

3+
All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

77
## [Unreleased]
88

9+
## [0.15.0] - 2024-01-07
10+
11+
### Fixed
12+
13+
- updated `metrics-exporter-prometheus` to v 0.15.3 which fixes `Content-Type` response header being set on the response
14+
according to the spec.
15+
916
## [0.14.4] - 2023-12-14
17+
1018
### Fixed
19+
1120
- `to_processing` metric when job rescheduled.
1221

1322
## [0.14.3] - 2023-12-13
23+
1424
### Fixed
25+
1526
- version not incremented in Cargo.toml.
1627

1728
## [0.14.2] - 2023-12-13
29+
1830
### Fixed
31+
1932
- `to_processing` metric using wrong `updated_at`.
2033

2134
### Added
35+
2236
- Deprecation notice to README.
2337

2438
## [0.14.1] - 2023-06-02
39+
2540
### Fixed
41+
2642
- created_at being updated when rescheduling a Job, only updated_at should/needs to be for metrics reporting.
2743

2844
## [0.14.0] - 2023-05-21
45+
2946
### Security
47+
3048
- Updated deps with various fixes and optimizations.
3149

3250
## [0.13.0] - 2023-04-24
51+
3352
### Added
53+
3454
- Ability to set state upon Job creation.
3555

3656
### Changed
57+
3758
- Updated all dependencies to latest versions.
3859
- Signal shutdown now uses tracing logs.
3960
- Remove ansi lof printing.
4061

4162
## [0.12.1] - 2023-03-21
63+
4264
### Fixed
65+
4366
- Added back TLS support accidentally removed in Tokio Postgres changeover.
4467

4568
## [0.12.0] - 2023-03-18
69+
4670
### Changed
71+
4772
- SQLX -> Tokio Postgres + Deadpool. Better performance and allows for finer grained control.
4873
- Actix Web -> Axum.
4974
- Switched to internal migrations runner with proper locking semantics.
5075

5176
## [0.11.0] - 2023-01-03
77+
5278
### Added
79+
5380
- Building of arm64 docker image.
5481
- Add labels to image eg. To indicate proper license.
5582

5683
### Changed
84+
5785
- Workspace QOL improvements to use top level Cargo.toml.
5886
- Updated dependencies.
5987
- Updated README to add Rust HTTP Client link.
6088

6189
## [0.10.0] - 2022-10-29
90+
6291
### Added
92+
6393
- HTTP Client.
6494
- HTTP Consumer abstraction.
6595
- Worker trait to be used by HTTP Consumer and future frontend consumers.
6696
- Additional documentation.
6797

6898
### Changed
99+
69100
- Updated dependencies to latest versions.
70101
- Updated CI build file dependencies.
71102

72103
### Fixed
104+
73105
- Generic params for Job struct to two separate as intended.
74106
- CI build because of openssl and pkg-config issues.
75107

76108
## [0.9.0] - 2022-09-05
109+
77110
### Added
111+
78112
- Added new exists and get HTTP endpoint to be able to check for a Job's existence or fetch it.
79113

80114
### Changed
115+
81116
- HTTP endpoints to be more sane + RESTful.
82117
- Metrics name.
83118

84119
## [0.8.0] - 2022-09-02
120+
85121
### Added
122+
86123
- Added per queue runtime & health metrics.
87124

88125
## [0.7.0] - 2022-07-04
126+
89127
### Changed
128+
90129
- Refactored code for more modular approach. This should allow for more frontends and backend in the future.
91130

92131
### Removed
132+
93133
- CRON scheduler. With self-perpetuating jobs this is far less useful and anyone can easily implement on their own.
94134

95135
### Added
136+
96137
- Ability to schedule Jobs with infinite retries by setting max_retries to a negative number eg. -1
97138

98139
## [0.6.1] - 2022-05-18
140+
99141
### Fixed
142+
100143
- Reschedule metric.
101144

102145
## [0.6.0] - 2022-05-13
146+
103147
### Changed
148+
104149
- Reschedule to accept setting/unsetting of state.
105150

106151
## [0.5.3] - 2022-05-07
152+
107153
### Fixed
154+
108155
- Fixed recursive function call in is_retryable().
109156
- Updated dependencies with security/issue fixes.
110157

111158
### Added
159+
112160
- Caching in CI for faster test & builds.
113161
- More debug level tracing.
114162

115163
### Changed
164+
116165
- Default connection and idle timeouts to 5 and 60 seconds respectively.
117166
- Cleaned up error handling with impl From.
118167
- Renamed Job to RawJob for future client with Job with generic types.
119168

120169
### Removed
170+
121171
- JobId and Queue alias types.
122172

123173
## [0.5.2] - 2022-04-22
174+
124175
### Fixed
125-
- Next update query when under very specific circumstances the Postgres query planner can do the wrong thing. See here for a detailed example https://github.com/feikesteenbergen/demos/blob/19522f66ffb6eb358fe2d532d9bdeae38d4e2a0b/bugs/update_from_correlated.adoc
176+
177+
- Next update query when under very specific circumstances the Postgres query planner can do the wrong thing. See here
178+
for a detailed
179+
example https://github.com/feikesteenbergen/demos/blob/19522f66ffb6eb358fe2d532d9bdeae38d4e2a0b/bugs/update_from_correlated.adoc
126180

127181
### Added
182+
128183
- Requirements section to README.
129184

130185
## [0.5.1] - 2022-04-22
186+
131187
### Added
188+
132189
- Automatic docker image build and push.
133190

134191
## [0.5.0] - 2022-04-22
192+
135193
### Fixed
194+
136195
- Updated job schema to add uuid. This fixes a locking issue when grabbing new items using IN rather than a SELECT FROM.
137196

138197
## [0.4.0] - 2022-03-14
198+
139199
### Added
200+
140201
- Update deps.
141202

142203
## [0.3.0] - 2022-03-05
204+
143205
### Added
206+
144207
- `/enqueue/batch` endpoint for efficient batch/bulk creation of Jobs.
145208
- Refactored `/next` endpoint to accept an optional number of Jobs to return for fetching a batch of Jobs.
146209

147210
## [0.2.0] - 2022-02-27
211+
148212
### Added
213+
149214
- Future Job support using new `run_at` Job field.
150215
- Reschedule endpoint allowing the Job Runner to manage a unique/singleton Job rescheduling itself.
151216

152217
[Unreleased]: https://github.com/rust-playground/relay-rs/compare/v0.14.4...HEAD
218+
219+
[0.15.0]: https://github.com/rust-playground/relay-rs/compare/v0.14.4...v0.15.0
220+
153221
[0.14.4]: https://github.com/rust-playground/relay-rs/compare/v0.14.3...v0.14.4
222+
154223
[0.14.3]: https://github.com/rust-playground/relay-rs/compare/v0.14.2...v0.14.3
224+
155225
[0.14.2]: https://github.com/rust-playground/relay-rs/compare/v0.14.2...v0.14.2
226+
156227
[0.14.1]: https://github.com/rust-playground/relay-rs/compare/v0.14.0...v0.14.1
228+
157229
[0.14.0]: https://github.com/rust-playground/relay-rs/compare/v0.13.0...v0.14.0
230+
158231
[0.13.0]: https://github.com/rust-playground/relay-rs/compare/v0.12.1...v0.13.0
232+
159233
[0.12.1]: https://github.com/rust-playground/relay-rs/compare/v0.12.0...v0.12.1
234+
160235
[0.12.0]: https://github.com/rust-playground/relay-rs/compare/v0.11.0...v0.12.0
236+
161237
[0.11.0]: https://github.com/rust-playground/relay-rs/compare/v0.10.0...v0.11.0
238+
162239
[0.10.0]: https://github.com/rust-playground/relay-rs/compare/v0.9.0...v0.10.0
240+
163241
[0.9.0]: https://github.com/rust-playground/relay-rs/compare/v0.8.0...v0.9.0
242+
164243
[0.8.0]: https://github.com/rust-playground/relay-rs/compare/v0.7.0...v0.8.0
244+
165245
[0.7.0]: https://github.com/rust-playground/relay-rs/compare/v0.6.1...v0.7.0
246+
166247
[0.6.1]: https://github.com/rust-playground/relay-rs/compare/v0.6.0...v0.6.1
248+
167249
[0.6.0]: https://github.com/rust-playground/relay-rs/compare/v0.5.3...v0.6.0
250+
168251
[0.5.3]: https://github.com/rust-playground/relay-rs/compare/v0.5.2...v0.5.3
252+
169253
[0.5.2]: https://github.com/rust-playground/relay-rs/compare/v0.5.1...v0.5.2
254+
170255
[0.5.1]: https://github.com/rust-playground/relay-rs/compare/v0.5.0...v0.5.1
256+
171257
[0.5.0]: https://github.com/rust-playground/relay-rs/compare/v0.4.0...v0.5.0
258+
172259
[0.4.0]: https://github.com/rust-playground/relay-rs/compare/v0.3.0...v0.4.0
260+
173261
[0.3.0]: https://github.com/rust-playground/relay-rs/compare/55f4ffca5f12ebce195d6b53cf2d2f92c9036614...v0.3.0
262+
174263
[0.2.0]: https://github.com/rust-playground/relay-rs/commit/55f4ffca5f12ebce195d6b53cf2d2f92c9036614

0 commit comments

Comments
 (0)