Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding configuration option to exclude jobs from Prometheus metrics via Regex #699

Merged
merged 2 commits into from
Sep 22, 2024

Adding configuration option to exclude jobs from Prometheus metrics

6b4e94c
Select commit
Loading
Failed to load commit list.
Merged

Adding configuration option to exclude jobs from Prometheus metrics via Regex #699

Adding configuration option to exclude jobs from Prometheus metrics
6b4e94c
Select commit
Loading
Failed to load commit list.
ci.jenkins.io / Code Coverage succeeded Sep 20, 2024 in 0s

Line Coverage: 53.85% (-13.46%), Branch Coverage: 50.00% (+1.19%)

Summary for modified lines

  • 85 lines have been modified
  • 18 lines are not covered
  • 5 lines are covered only partially

Overview by baseline

Quality Gates Summary

No active quality gates.

Details

Project coverage details

Module Coverage Package Coverage File Coverage Class Coverage Method Coverage Line Coverage Branch Coverage Instruction Coverage
🐾 Overall project 100.00% (1/1) 100.00% (13/13) 97.96% (96/98) 96.26% (103/107) 90.15% (485/538) 84.15% (1402/1666) 72.84% (346/475) 84.85% (6065/7148)
📈 Overall project (difference to reference job) +0.00% +0.00% +0.02% ⬆️ -0.88% ⬇️ -0.25% ⬇️ -0.47% ⬇️ -0.81% ⬇️ -0.21% ⬇️
🐾 Modified files 100.00% (1/1) 100.00% (2/2) 100.00% (5/5) 85.71% (6/7) 83.33% (35/42) 67.31% (210/312) 48.81% (41/84) 73.95% (1144/1547)
📈 Modified files (difference to reference job) n/a n/a n/a n/a n/a -3.22% ⬇️ -3.97% ⬇️ n/a
🐾 Modified code lines 100.00% (1/1) 100.00% (2/2) 80.00% (4/5) n/a n/a 53.85% (21/39) 50.00% (10/20) n/a
📈 Modified code lines (difference to modified files) n/a n/a n/a n/a n/a -13.46% ⬇️ +1.19% ⬆️ n/a
🐾 Indirect changes 100.00% (1/1) 100.00% (3/3) 100.00% (3/3) n/a n/a 100.00% (6/6) 100.00% (2/2) n/a

Annotations

Check warning on line 86 in src/main/java/org/jenkinsci/plugins/prometheus/CodeCoverageCollector.java

See this annotation in the file changed.

@ci-jenkins-io ci-jenkins-io / Code Coverage

Not covered lines

Lines 85-86 are not covered by tests

Check warning on line 84 in src/main/java/org/jenkinsci/plugins/prometheus/CodeCoverageCollector.java

See this annotation in the file changed.

@ci-jenkins-io ci-jenkins-io / Code Coverage

Partially covered line

Line 84 is only partially covered, one branch is missing

Check warning on line 164 in src/main/java/org/jenkinsci/plugins/prometheus/JobCollector.java

See this annotation in the file changed.

@ci-jenkins-io ci-jenkins-io / Code Coverage

Not covered lines

Lines 162-164 are not covered by tests

Check warning on line 73 in src/main/java/org/jenkinsci/plugins/prometheus/DiskUsageCollector.java

See this annotation in the file changed.

@ci-jenkins-io ci-jenkins-io / Code Coverage

Not covered line

Line 73 is not covered by tests

Check warning on line 72 in src/main/java/org/jenkinsci/plugins/prometheus/DiskUsageCollector.java

See this annotation in the file changed.

@ci-jenkins-io ci-jenkins-io / Code Coverage

Partially covered line

Line 72 is only partially covered, one branch is missing

Check warning on line 53 in src/main/java/org/jenkinsci/plugins/prometheus/config/disabledmetrics/MetricStatusChecker.java

See this annotation in the file changed.

@ci-jenkins-io ci-jenkins-io / Code Coverage

Not covered lines

Lines 45-53 are not covered by tests

Check warning on line 44 in src/main/java/org/jenkinsci/plugins/prometheus/config/disabledmetrics/MetricStatusChecker.java

See this annotation in the file changed.

@ci-jenkins-io ci-jenkins-io / Code Coverage

Partially covered line

Line 44 is only partially covered, one branch is missing

Check warning on line 77 in src/main/java/org/jenkinsci/plugins/prometheus/config/disabledmetrics/MetricStatusChecker.java

See this annotation in the file changed.

@ci-jenkins-io ci-jenkins-io / Code Coverage

Partially covered line

Line 77 is only partially covered, one branch is missing

Check warning on line 23 in src/main/java/org/jenkinsci/plugins/prometheus/config/disabledmetrics/JobRegexDisabledMetric.java

See this annotation in the file changed.

@ci-jenkins-io ci-jenkins-io / Code Coverage

Not covered lines

Lines 13-23 are not covered by tests