Skip to content

Commit 53b20e6

Browse files
committed
format
Signed-off-by: Gregor Zeitlinger <[email protected]>
1 parent bef4f8d commit 53b20e6

File tree

46 files changed

+115
-143
lines changed

Some content is hidden

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

46 files changed

+115
-143
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
env:
1818
GPG_SIGNING_KEY: ${{ secrets.GPG_SIGNING_KEY }}
1919
run: |
20-
echo "${GPG_SIGNING_KEY}" | wc -c
20+
echo "${#GPG_SIGNING_KEY}" | wc -c
2121
echo "${GPG_SIGNING_KEY}" | gpg --batch --import-options import-show --import
2222
- name: Checkout Plugin Repository
2323
uses: actions/checkout@v4

docs/content/getting-started/multi-target.md

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -91,21 +91,21 @@ public interface PrometheusScrapeRequest {
9191
Sample Prometheus scrape_config
9292

9393
```yaml
94-
- job_name: "multi-target"
95-
96-
# metrics_path defaults to '/metrics'
97-
# scheme defaults to 'http'.
98-
params:
99-
proc: [proc1, proc2]
100-
relabel_configs:
101-
- source_labels: [__address__]
102-
target_label: __param_target
103-
- source_labels: [__param_target]
104-
target_label: instance
105-
- target_label: __address__
106-
replacement: localhost:9401
107-
static_configs:
108-
- targets: ["target1", "target2"]
94+
- job_name: "multi-target"
95+
96+
# metrics_path defaults to '/metrics'
97+
# scheme defaults to 'http'.
98+
params:
99+
proc: [proc1, proc2]
100+
relabel_configs:
101+
- source_labels: [__address__]
102+
target_label: __param_target
103+
- source_labels: [__param_target]
104+
target_label: instance
105+
- target_label: __address__
106+
replacement: localhost:9401
107+
static_configs:
108+
- targets: ["target1", "target2"]
109109
```
110110
111111
It's up to the specific MultiCollector implementation how to interpret the _target_ parameter.

examples/example-exemplars-tail-sampling/example-greeting-service/pom.xml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
2+
<project xmlns="http://maven.apache.org/POM/4.0.0"
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
35
<modelVersion>4.0.0</modelVersion>
46

57
<parent>

examples/example-exemplars-tail-sampling/example-hello-world-app/pom.xml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
2+
<project xmlns="http://maven.apache.org/POM/4.0.0"
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
35
<modelVersion>4.0.0</modelVersion>
46

57
<parent>

examples/example-exemplars-tail-sampling/pom.xml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
2+
<project xmlns="http://maven.apache.org/POM/4.0.0"
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
35
<modelVersion>4.0.0</modelVersion>
46

57
<parent>

examples/example-exporter-httpserver/pom.xml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
2+
<project xmlns="http://maven.apache.org/POM/4.0.0"
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
35
<modelVersion>4.0.0</modelVersion>
46

57
<parent>

examples/example-exporter-multi-target/pom.xml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
2+
<project xmlns="http://maven.apache.org/POM/4.0.0"
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
35
<modelVersion>4.0.0</modelVersion>
46

57
<parent>

examples/example-exporter-opentelemetry/oats-tests/agent/service_instance_id_check.py

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,15 @@
33
"""This script is used to check if the service instance id is present in the exported data
44
The script will return 0 if the service instance id is present in the exported data"""
55

6-
import json
76
import urllib.parse
87
from urllib.request import urlopen
98

109
URL = " http://localhost:9090/api/v1/query?query=target_info"
1110
with urlopen(URL) as response:
12-
# read the response
13-
res = response.read()
14-
# decode the response
15-
res = res.decode("utf-8")
11+
# read the response
12+
res = response.read()
13+
# decode the response
14+
res = res.decode("utf-8")
1615

1716
# uncomment the following line to use the local file instead of the url - for debugging
1817
# with open('example_target_info.json') as f:
@@ -34,10 +33,10 @@
3433
path = urllib.parse.quote_plus(path)
3534
URL = f"http://localhost:9090/api/v1/query?query={path}"
3635
with urlopen(URL) as response:
37-
# read the response
38-
res = response.read()
39-
# decode the response
40-
res = res.decode("utf-8")
36+
# read the response
37+
res = response.read()
38+
# decode the response
39+
res = res.decode("utf-8")
4140

4241
infos = res["data"]["result"]
4342
print(infos)

examples/example-exporter-opentelemetry/pom.xml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
2+
<project xmlns="http://maven.apache.org/POM/4.0.0"
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
35
<modelVersion>4.0.0</modelVersion>
46

57
<parent>

examples/example-exporter-servlet-tomcat/pom.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
2+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
34
<modelVersion>4.0.0</modelVersion>
45

56
<parent>

0 commit comments

Comments
 (0)