Skip to content

optimise prometheus scraping workflow - #13650

Open
DaanHoogland wants to merge 5 commits into
4.20from
ghi13586-prometheusDrainage-20
Open

optimise prometheus scraping workflow#13650
DaanHoogland wants to merge 5 commits into
4.20from
ghi13586-prometheusDrainage-20

prometheus: fix scrape duration growing unbounded (#13667) (#13696)

80d6dfe
Select commit
Loading
Failed to load commit list.
SonarQubeCloud / SonarCloud Code Analysis succeeded Aug 4, 2026 in 7m 31s

Annotations

Check warning on line 302 in server/src/test/java/com/cloud/alert/AlertManagerImplTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Extract this mock creation to a local variable.

See more on https://sonarcloud.io/project/issues?id=apache_cloudstack&issues=AZ_Mf2V1UG1NZvDOk5ha&open=AZ_Mf2V1UG1NZvDOk5ha&pullRequest=13650

Check warning on line 250 in server/src/test/java/com/cloud/alert/AlertManagerImplTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Use a static import for "when".

See more on https://sonarcloud.io/project/issues?id=apache_cloudstack&issues=AZ_Mf2V1UG1NZvDOk5hp&open=AZ_Mf2V1UG1NZvDOk5hp&pullRequest=13650

Check warning on line 239 in server/src/test/java/com/cloud/alert/AlertManagerImplTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Use a static import for "never".

See more on https://sonarcloud.io/project/issues?id=apache_cloudstack&issues=AZ_Mf2V1UG1NZvDOk5hi&open=AZ_Mf2V1UG1NZvDOk5hi&pullRequest=13650

Check warning on line 523 in plugins/integrations/prometheus/src/main/java/org/apache/cloudstack/metrics/PrometheusExporterImpl.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Use the built-in formatting to construct this argument.

See more on https://sonarcloud.io/project/issues?id=apache_cloudstack&issues=AZ_OOKMywu36FWHTLFnd&open=AZ_OOKMywu36FWHTLFnd&pullRequest=13650

Check warning on line 266 in server/src/test/java/com/cloud/alert/AlertManagerImplTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Extract this mock creation to a local variable.

See more on https://sonarcloud.io/project/issues?id=apache_cloudstack&issues=AZ_Mf2V1UG1NZvDOk5hY&open=AZ_Mf2V1UG1NZvDOk5hY&pullRequest=13650

Check warning on line 302 in server/src/test/java/com/cloud/alert/AlertManagerImplTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Use a static import for "mock".

See more on https://sonarcloud.io/project/issues?id=apache_cloudstack&issues=AZ_Mf2V1UG1NZvDOk5h7&open=AZ_Mf2V1UG1NZvDOk5h7&pullRequest=13650

Check warning on line 228 in server/src/test/java/com/cloud/alert/AlertManagerImplTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Use a static import for "when".

See more on https://sonarcloud.io/project/issues?id=apache_cloudstack&issues=AZ_Mf2V1UG1NZvDOk5hb&open=AZ_Mf2V1UG1NZvDOk5hb&pullRequest=13650

Check warning on line 273 in server/src/test/java/com/cloud/alert/AlertManagerImplTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Use a static import for "mock".

See more on https://sonarcloud.io/project/issues?id=apache_cloudstack&issues=AZ_Mf2V1UG1NZvDOk5hz&open=AZ_Mf2V1UG1NZvDOk5hz&pullRequest=13650

Check warning on line 302 in server/src/test/java/com/cloud/alert/AlertManagerImplTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Use a static import for "when".

See more on https://sonarcloud.io/project/issues?id=apache_cloudstack&issues=AZ_Mf2V1UG1NZvDOk5h6&open=AZ_Mf2V1UG1NZvDOk5h6&pullRequest=13650

Check warning on line 523 in plugins/integrations/prometheus/src/main/java/org/apache/cloudstack/metrics/PrometheusExporterImpl.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Format specifiers should be used instead of string concatenation.

See more on https://sonarcloud.io/project/issues?id=apache_cloudstack&issues=AZ_OOKMywu36FWHTLFnf&open=AZ_OOKMywu36FWHTLFnf&pullRequest=13650

Check warning on line 230 in server/src/test/java/com/cloud/alert/AlertManagerImplTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Use a static import for "verify".

See more on https://sonarcloud.io/project/issues?id=apache_cloudstack&issues=AZ_Mf2V1UG1NZvDOk5hc&open=AZ_Mf2V1UG1NZvDOk5hc&pullRequest=13650

Check warning on line 314 in server/src/test/java/com/cloud/alert/AlertManagerImplTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Use a static import for "mock".

See more on https://sonarcloud.io/project/issues?id=apache_cloudstack&issues=AZ_Mf2V1UG1NZvDOk5h9&open=AZ_Mf2V1UG1NZvDOk5h9&pullRequest=13650

Check warning on line 246 in server/src/test/java/com/cloud/alert/AlertManagerImplTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Use a static import for "when".

See more on https://sonarcloud.io/project/issues?id=apache_cloudstack&issues=AZ_Mf2V1UG1NZvDOk5hl&open=AZ_Mf2V1UG1NZvDOk5hl&pullRequest=13650

Check warning on line 320 in server/src/test/java/com/cloud/alert/AlertManagerImplTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Use a static import for "verify".

See more on https://sonarcloud.io/project/issues?id=apache_cloudstack&issues=AZ_Mf2V1UG1NZvDOk5h-&open=AZ_Mf2V1UG1NZvDOk5h-&pullRequest=13650

Check warning on line 257 in server/src/test/java/com/cloud/alert/AlertManagerImplTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Use a static import for "verify".

See more on https://sonarcloud.io/project/issues?id=apache_cloudstack&issues=AZ_Mf2V1UG1NZvDOk5ht&open=AZ_Mf2V1UG1NZvDOk5ht&pullRequest=13650

Check warning on line 251 in server/src/test/java/com/cloud/alert/AlertManagerImplTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Use a static import for "when".

See more on https://sonarcloud.io/project/issues?id=apache_cloudstack&issues=AZ_Mf2V1UG1NZvDOk5hq&open=AZ_Mf2V1UG1NZvDOk5hq&pullRequest=13650

Check warning on line 240 in server/src/test/java/com/cloud/alert/AlertManagerImplTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Use a static import for "never".

See more on https://sonarcloud.io/project/issues?id=apache_cloudstack&issues=AZ_Mf2V1UG1NZvDOk5hk&open=AZ_Mf2V1UG1NZvDOk5hk&pullRequest=13650

Check warning on line 284 in server/src/test/java/com/cloud/alert/AlertManagerImplTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Extract this mock creation to a local variable.

See more on https://sonarcloud.io/project/issues?id=apache_cloudstack&issues=AZ_Mf2V1UG1NZvDOk5hZ&open=AZ_Mf2V1UG1NZvDOk5hZ&pullRequest=13650

Check warning on line 231 in server/src/test/java/com/cloud/alert/AlertManagerImplTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Use a static import for "verify".

See more on https://sonarcloud.io/project/issues?id=apache_cloudstack&issues=AZ_Mf2V1UG1NZvDOk5he&open=AZ_Mf2V1UG1NZvDOk5he&pullRequest=13650

Check warning on line 266 in server/src/test/java/com/cloud/alert/AlertManagerImplTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Use a static import for "mock".

See more on https://sonarcloud.io/project/issues?id=apache_cloudstack&issues=AZ_Mf2V1UG1NZvDOk5hx&open=AZ_Mf2V1UG1NZvDOk5hx&pullRequest=13650

Check warning on line 284 in server/src/test/java/com/cloud/alert/AlertManagerImplTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Use a static import for "when".

See more on https://sonarcloud.io/project/issues?id=apache_cloudstack&issues=AZ_Mf2V1UG1NZvDOk5h2&open=AZ_Mf2V1UG1NZvDOk5h2&pullRequest=13650

Check warning on line 252 in server/src/test/java/com/cloud/alert/AlertManagerImplTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Use a static import for "when".

See more on https://sonarcloud.io/project/issues?id=apache_cloudstack&issues=AZ_Mf2V1UG1NZvDOk5hr&open=AZ_Mf2V1UG1NZvDOk5hr&pullRequest=13650

Check warning on line 253 in server/src/test/java/com/cloud/alert/AlertManagerImplTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Use a static import for "doThrow".

See more on https://sonarcloud.io/project/issues?id=apache_cloudstack&issues=AZ_Mf2V1UG1NZvDOk5hs&open=AZ_Mf2V1UG1NZvDOk5hs&pullRequest=13650

Check warning on line 249 in server/src/test/java/com/cloud/alert/AlertManagerImplTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Use a static import for "mock".

See more on https://sonarcloud.io/project/issues?id=apache_cloudstack&issues=AZ_Mf2V1UG1NZvDOk5ho&open=AZ_Mf2V1UG1NZvDOk5ho&pullRequest=13650

Check warning on line 299 in server/src/test/java/com/cloud/alert/AlertManagerImplTest.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Use a static import for "mock".

See more on https://sonarcloud.io/project/issues?id=apache_cloudstack&issues=AZ_Mf2V1UG1NZvDOk5h4&open=AZ_Mf2V1UG1NZvDOk5h4&pullRequest=13650