Skip to content

Commit ca59173

Browse files
committed
update changelog + fix failing feature check test
1 parent 96ab47f commit ca59173

File tree

2 files changed

+31
-3
lines changed

2 files changed

+31
-3
lines changed

metrics-exporter-prometheus/CHANGELOG.md

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
88

99
## [Unreleased] - ReleaseDate
1010

11+
### Added
12+
13+
- Support for specifying a username/password for HTTP Basic Authentication when pushing to a Push
14+
Gateway. ([#366](https://github.com/metrics-rs/metrics/pull/366))
15+
1116
## [0.12.0] - 2023-04-16
1217

1318
### Changed
@@ -20,14 +25,17 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
2025
### Changed
2126

2227
- Aggregated summaries are now rolling, allowing oldering data points to expire and quantile values
23-
to reflect the recent past rather than the lifetime of a histogram. (#306)
28+
to reflect the recent past rather than the lifetime of a histogram.
29+
([#306](https://github.com/metrics-rs/metrics/pull/306))
2430

2531
They have a default width of three buckets, with each bucket being 20 seconds wide. This means
2632
only the last 60 seconds of a histogram -- in 20 second granularity -- will contribute to the
2733
quantiles emitted.
2834

2935
We'll expose the ability to tune these values in the future.
30-
- Switched to using `portable_atomic` for 64-bit atomics on more architectures. (#313)
36+
- Switched to using `portable_atomic` for 64-bit atomics on more architectures.
37+
([#313](https://github.com/metrics-rs/metrics/pull/313))
38+
3139

3240
## [0.10.0] - 2022-05-30
3341

@@ -39,16 +47,19 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
3947
## [0.9.0] - 2022-03-10
4048

4149
### Added
50+
4251
- New top-level module, `formatting`, which exposes many of the helper methods used to sanitize and
4352
render the actual Prometheus exposition format. ([#285](https://github.com/metrics-rs/metrics/pull/285))
4453

4554
## [0.8.0] - 2022-01-14
4655

4756
### Added
57+
4858
- New builder method, `PrometheusBuilder::install_recorder`, which builds and installs the
4959
recorder and returns a `PrometheusHandle` that can be used to interact with the recorder.
5060

5161
### Changed
62+
5263
- Updated various dependencies in order to properly scope dependencies to only the necessary feature
5364
flags, and thus optimize build times and reduce transitive dependencies.
5465
- Updated to the new handle-based design of `metrics`.
@@ -63,6 +74,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
6374
(name/labels) was recorded.
6475

6576
### Fixed
77+
6678
- Label keys and values, as well as metric descriptions, are now correctly sanitized according to
6779
the Prometheus [data model](https://prometheus.io/docs/concepts/data_model/) and [exposition
6880
format](https://github.com/prometheus/docs/blob/main/content/docs/instrumenting/exposition_formats.md).
@@ -74,38 +86,50 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7486
## [0.7.0] - 2021-12-16
7587

7688
### Changed
89+
7790
- Calling `PrometheusBuilder::install` inside a Tokio runtime will spawn the exporter on that
7891
runtime rather than spawning a new runtime. ([#251](https://github.com/metrics-rs/metrics/pull/251))
7992

8093
## [0.6.1] - 2021-09-16
8194

8295
### Changed
96+
8397
- Simple release to bump dependencies.
8498

8599
## [0.6.0] - 2021-07-15
86100

87101
### Added
102+
88103
- Support for pushing to a Push Gateway. ([#217](https://github.com/metrics-rs/metrics/pull/217))
89104

90105
## [0.5.0] - 2021-05-18
106+
91107
### Added
108+
92109
- `PrometheusBuilder::add_allowed`, which enables the exporter to be configured with a
93110
list of IP addresses or subnets that are allowed to connect. By default, no restrictions
94111
are enforced.
95112

96113
## [0.4.0] - 2021-05-03
97114

98115
### Changed
116+
99117
- Bumped `metrics` dependency to `0.15` and updated the necessary APIs.
100118

101119
## [0.3.0] - 2021-02-02
120+
102121
### Changed
122+
103123
- Bumped `metrics` dependency to `0.14`.
104124

105125
## [0.2.0] - 2021-01-23
126+
106127
### Changed
128+
107129
- Switched from `MetricKind` for `MetricKindMask` for `PrometheusBuilder::idle_timeout`.
108130

109131
## [0.1.0] - 2021-01-22
132+
110133
### Added
134+
111135
- Genesis of the crate.

metrics-exporter-prometheus/src/builder.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -574,7 +574,6 @@ mod tests {
574574

575575
use quanta::Clock;
576576

577-
use crate::builder::basic_auth;
578577
use metrics::{Key, KeyName, Label, Recorder};
579578
use metrics_util::MetricKindMask;
580579

@@ -1030,6 +1029,11 @@ mod tests {
10301029

10311030
assert_eq!(rendered, expected_counter);
10321031
}
1032+
}
1033+
1034+
#[cfg(all(test, feature = "push-gateway"))]
1035+
mod push_gateway_tests {
1036+
use crate::builder::basic_auth;
10331037

10341038
#[test]
10351039
pub fn test_basic_auth() {

0 commit comments

Comments
 (0)