Skip to content

Commit efee923

Browse files
committed
fix: fix markdownlint violations, switch to jsonc config with comments
Signed-off-by: Gregor Zeitlinger <gregor.zeitlinger@grafana.com>
1 parent b6559d6 commit efee923

5 files changed

Lines changed: 12 additions & 5 deletions

File tree

.markdownlint.jsonc

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
{
22
// Line length — pre-existing across docs, README, benchmarks
33
"MD013": false,
4-
// Fenced code blocks without surrounding blank lines — pre-existing
5-
"MD031": false,
64
// Inline HTML — needed for badge images in README
7-
"MD033": false,
8-
// Emphasis used as heading — pre-existing in docs/content
9-
"MD036": false
5+
"MD033": false
106
}

docs/content/_index.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,14 @@ The main new features of the 1.0.0 release are:
1313
- **Runtime configuration:** Configure metrics, exporters, and more at runtime using a properties
1414
file or system properties.
1515

16+
<!-- markdownlint-disable-next-line MD036 -->
1617
**Documentation and Examples**
1718

1819
In addition to this documentation page we created an
1920
[examples/](https://github.com/prometheus/client_java/tree/main/examples) directory with end-to-end
2021
scenarios (Docker compose) illustrating new features.
2122

23+
<!-- markdownlint-disable-next-line MD036 -->
2224
**Performance Benchmarks**
2325

2426
Initial performance benchmarks are looking great: All core metric types (including native
@@ -27,6 +29,7 @@ that utilizes all processor cores in parallel the metrics library will not intro
2729
synchronization. See Javadoc comments in
2830
[benchmarks/](https://github.com/prometheus/client_java/tree/main/benchmarks) for benchmark results.
2931

32+
<!-- markdownlint-disable-next-line MD036 -->
3033
**More Info**
3134

3235
The Grafana Labs Blog has a post
@@ -37,6 +40,7 @@ There will also be a presentation at the [PromCon](https://promcon.io) conferenc
3740
Tune in to the live stream on [https://promcon.io](https://promcon.io)
3841
or watch the recording on YouTube.
3942

43+
<!-- markdownlint-disable-next-line MD036 -->
4044
**For users of the 0.16.0 version and older**
4145

4246
Updating to the 1.0.0 version is a breaking change. However, there's a

docs/content/config/config.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ When the same property is defined in multiple sources, the following precedence
9292

9393
<!-- editorconfig-checker-enable -->
9494

95+
<!-- markdownlint-disable-next-line MD036 -->
9596
**Notes**
9697

9798
(1) _withExemplars()_ and _withoutExemplars()_ are available for all metric types,

docs/content/getting-started/metric-types.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@ The default bucket boundaries are designed for measuring request durations in se
127127
use cases, you may want to define custom bucket boundaries. The histogram builder provides three
128128
methods for this:
129129

130+
<!-- markdownlint-disable-next-line MD036 -->
130131
**1. Arbitrary Custom Boundaries**
131132

132133
Use `classicUpperBounds(...)` to specify arbitrary bucket boundaries:
@@ -139,6 +140,7 @@ Histogram responseSize = Histogram.builder()
139140
.register();
140141
```
141142

143+
<!-- markdownlint-disable-next-line MD036 -->
142144
**2. Linear Boundaries**
143145

144146
Use `classicLinearUpperBounds(start, width, count)` for equal-width buckets:
@@ -151,6 +153,7 @@ Histogram queueSize = Histogram.builder()
151153
.register();
152154
```
153155

156+
<!-- markdownlint-disable-next-line MD036 -->
154157
**3. Exponential Boundaries**
155158

156159
Use `classicExponentialUpperBounds(start, factor, count)` for exponential growth:

examples/example-exporter-servlet-tomcat/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,12 +66,15 @@ browser:
6666
from [https://github.com/prometheus/prometheus/releases](https://github.com/prometheus/prometheus/releases). <!-- editorconfig-checker-disable-line -->
6767
2. Extract the archive
6868
3. Edit `prometheus.yml` and append the following snippet at the end:
69+
6970
```yaml
7071
job_name: "tomcat-servlet-example"
7172
static_configs:
7273
- targets: ["localhost:8080"]
7374
```
75+
7476
4. Run with native histograms and exemplars enabled:
77+
7578
```shell
7679
./prometheus --enable-feature=native-histograms --enable-feature=exemplar-storage
7780
```

0 commit comments

Comments
 (0)