Skip to content

Commit 8cbecd9

Browse files
committed
add super linter
Signed-off-by: Gregor Zeitlinger <[email protected]>
1 parent 40d8794 commit 8cbecd9

File tree

62 files changed

+75597
-393
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

62 files changed

+75597
-393
lines changed

.github/workflows/acceptance-tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ name: OpenTelemetry Acceptance Tests
22

33
on:
44
push:
5-
branches: [ "main" ]
5+
branches: ["main"]
66
pull_request:
7-
branches: [ "main" ]
7+
branches: ["main"]
88

99
permissions: {}
1010

.github/workflows/build.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ name: Build
22

33
on:
44
push:
5-
branches: [ "main" ]
5+
branches: ["main"]
66
pull_request:
7-
branches: [ "main" ]
7+
branches: ["main"]
88

99
permissions: {}
1010

@@ -25,4 +25,3 @@ jobs:
2525
${{ runner.os }}-maven-
2626
- name: Run the Maven verify phase
2727
run: mise run ci
28-

.github/workflows/github-pages.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,11 @@ jobs:
3939
- uses: actions/checkout@v4
4040
with:
4141
persist-credentials: false
42-
fetch-tags: 'true'
42+
fetch-tags: "true"
4343
fetch-depth: 0
4444
- uses: jdx/mise-action@7a111ead46986ccad89a74ad013ba2a7c08c9e67 # v2.1.1
4545
with:
46-
cache: 'false'
46+
cache: "false"
4747
- name: Prepare GitHub Pages
4848
run: mise run prepare-gh-pages
4949
with:

.github/workflows/native-tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ name: GraalVM Native Tests
22

33
on:
44
push:
5-
branches: [ "main" ]
5+
branches: ["main"]
66
pull_request:
7-
branches: [ "main" ]
7+
branches: ["main"]
88

99
permissions: {}
1010

.github/workflows/release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
steps:
1515
- name: Debug gpg key - remove after debugging
1616
env:
17-
GPG_SIGNING_KEY: ${{ secrets.GPG_SIGNING_KEY }}
17+
GPG_SIGNING_KEY: ${{ secrets.GPG_SIGNING_KEY }}
1818
run: |
1919
echo "$GPG_SIGNING_KEY" | wc -c
2020
echo "$GPG_SIGNING_KEY" | gpg --batch --import-options import-show --import
@@ -37,8 +37,8 @@ jobs:
3737
- name: Set up Apache Maven Central
3838
uses: actions/setup-java@v4
3939
with:
40-
distribution: 'temurin'
41-
java-version: '17'
40+
distribution: "temurin"
41+
java-version: "17"
4242
server-id: ossrh
4343
server-username: MAVEN_USERNAME
4444
server-password: MAVEN_CENTRAL_TOKEN

docs/README.md

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,20 @@
1-
Docs
2-
----
1+
## Docs
32

43
This directory contains [hugo](https://gohugo.io) documentation to be published in Github pages.
54

6-
Run Locally
7-
-----------
5+
## Run Locally
86

97
```
108
hugo server -D
119
```
1210

1311
This will serve the docs on [http://localhost:1313](http://localhost:1313).
1412

15-
Deploy to Github Pages
16-
----------------------
13+
## Deploy to Github Pages
1714

1815
Changes to the `main` branch will be deployed automatically with Github actions.
1916

20-
Update Javadoc
21-
--------------
17+
## Update Javadoc
2218

2319
Javadoc are not checked-in to the Github repository.
2420
They are generated on the fly by Github actions when the docs are updated.
@@ -39,13 +35,11 @@ mkdir ./docs/static/client_java
3935
ln -s ../api ./docs/static/client_java/api
4036
```
4137

42-
Update Geekdocs
43-
---------------
38+
## Update Geekdocs
4439

4540
The docs use the [Geekdocs](https://geekdocs.de/) theme. The theme is checked in to Github in the `./docs/themes/hugo-geekdoc/` folder. To update [Geekdocs](https://geekdocs.de/), remove the current folder and create a new one with the latest [release](https://github.com/thegeeklab/hugo-geekdoc/releases). There are no local modifications in `./docs/themes/hugo-geekdoc/`.
4641

47-
Notes
48-
-----
42+
## Notes
4943

5044
Here's how the initial `docs/` folder was set up:
5145

docs/content/_index.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ This is the documentation for the [Prometheus Java client library](https://githu
66

77
The main new features of the 1.0.0 release are:
88

9-
* **Prometheus native histograms:** Support for the new Prometheus histogram type.
10-
* **OpenTelemetry Exporter:** Push metrics in OTLP format to an OpenTelemetry endpoint.
11-
* **Runtime configuration:** Configure metrics, exporters, and more at runtime using a properties file or system properties.
9+
- **Prometheus native histograms:** Support for the new Prometheus histogram type.
10+
- **OpenTelemetry Exporter:** Push metrics in OTLP format to an OpenTelemetry endpoint.
11+
- **Runtime configuration:** Configure metrics, exporters, and more at runtime using a properties file or system properties.
1212

1313
**Documentation and Examples**
1414

docs/content/config/config.md

Lines changed: 70 additions & 79 deletions
Large diffs are not rendered by default.

docs/content/exporters/filter.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@ weight: 2
55

66
All exporters support a `name[]` URL parameter for querying only specific metric names. Examples:
77

8-
* `/metrics?name[]=jvm_threads_current` will query the metric named `jvm_threads_current`.
9-
* `/metrics?name[]=jvm_threads_current&name[]=jvm_threads_daemon` will query two metrics, `jvm_threads_current` and `jvm_threads_daemon`.
8+
- `/metrics?name[]=jvm_threads_current` will query the metric named `jvm_threads_current`.
9+
- `/metrics?name[]=jvm_threads_current&name[]=jvm_threads_daemon` will query two metrics, `jvm_threads_current` and `jvm_threads_daemon`.
1010

1111
Add the following to the scape job configuration in `prometheus.yml` to make the Prometheus server send the `name[]` parameter:
1212

1313
```yaml
1414
params:
15-
name[]:
16-
- jvm_threads_current
17-
- jvm_threads_daemon
15+
name[]:
16+
- jvm_threads_current
17+
- jvm_threads_daemon
1818
```

docs/content/exporters/formats.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ weight: 1
55

66
All exporters the following exposition formats:
77

8-
* OpenMetrics text format
9-
* Prometheus text format
10-
* Prometheus protobuf format
8+
- OpenMetrics text format
9+
- Prometheus text format
10+
- Prometheus protobuf format
1111

1212
Moreover, gzip encoding is supported for each of these formats.
1313

@@ -19,9 +19,9 @@ The Prometheus server sends an `Accept` header to specify which format is reques
1919

2020
If you view the `/metrics` endpoint with your Web browser you will see Prometheus text format. For quick debugging of the other formats, exporters provide a `debug` URL parameter:
2121

22-
* `/metrics?debug=openmetrics`: View OpenMetrics text format.
23-
* `/metrics?debug=text`: View Prometheus text format.
24-
* `/metrics?debug=prometheus-protobuf`: View a text representation of the Prometheus protobuf format.
22+
- `/metrics?debug=openmetrics`: View OpenMetrics text format.
23+
- `/metrics?debug=text`: View Prometheus text format.
24+
- `/metrics?debug=prometheus-protobuf`: View a text representation of the Prometheus protobuf format.
2525

2626
## Exclude protobuf exposition format
2727

0 commit comments

Comments
 (0)