Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
536 commits
Select commit Hold shift + click to select a range
ebb3c3d
Bump plugin from 4.38 to 4.52
dependabot[bot] Dec 5, 2022
59b4809
Merge pull request #468 from jenkinsci/dependabot/maven/org.jenkins-c…
markyjackson-taulia Dec 5, 2022
98e5b59
Fixing hpi build
Jan 10, 2023
8569d26
Fixing spotbugs issue
Jan 10, 2023
b5e0b7e
Fixing hpi build after upgrade of parent pom version
Jan 11, 2023
e47c6d8
Bump actions/checkout from 3.1.0 to 3.3.0
dependabot[bot] Jan 11, 2023
dfa6361
Bump assertj-core from 3.22.0 to 3.24.1
dependabot[bot] Jan 11, 2023
41fea34
Merge pull request #479 from jenkinsci/dependabot/github_actions/acti…
Jan 11, 2023
3470859
Merge pull request #478 from jenkinsci/dependabot/maven/org.assertj-a…
Jan 11, 2023
b92a766
[maven-release-plugin] prepare release prometheus-2.1.0
Jan 11, 2023
f70efe4
[maven-release-plugin] prepare for next development iteration
Jan 11, 2023
6b7f43b
Revert "[maven-release-plugin] prepare for next development iteration"
Jan 11, 2023
0341365
Revert "[maven-release-plugin] prepare release prometheus-2.1.0"
Jan 11, 2023
c21ced5
Escape javadoc characters to be able to build javadoc
Jan 11, 2023
db6d66b
[maven-release-plugin] prepare release prometheus-2.1.0
Jan 11, 2023
0429dba
[maven-release-plugin] prepare for next development iteration
Jan 11, 2023
302b6b8
Adding me as additional maintainer
Jan 13, 2023
e3b34c6
Setter should only set values and don't contain logic. Extracting env…
Jan 19, 2023
c18e19e
Merge pull request #483 from jenkinsci/bugfix/issue-482
Jan 20, 2023
349f095
[maven-release-plugin] prepare release prometheus-2.1.1
Jan 21, 2023
83a1a3c
[maven-release-plugin] prepare for next development iteration
Jan 21, 2023
53c6708
Bump assertj-core from 3.24.1 to 3.24.2
dependabot[bot] Jan 23, 2023
58947ba
Merge pull request #485 from jenkinsci/dependabot/maven/org.assertj-a…
Jan 23, 2023
7d693cc
Adding documentation
Feb 11, 2023
b38cceb
Fix some markdown lint issues
Feb 11, 2023
0fe1b4b
Merge pull request #492 from jenkinsci/doc/custom-endpoint-documentation
Feb 11, 2023
8cba3fa
Calling save in Setter leads to ProvisionException
Feb 23, 2023
91cc957
Bump codacy/codacy-analysis-cli-action from 4.1.0 to 4.3.0
dependabot[bot] Mar 13, 2023
721be1b
Bump actions/checkout from 3.3.0 to 3.4.0
dependabot[bot] Mar 20, 2023
5c6ffc4
Bump slf4j-api from 2.0.5 to 2.0.7
dependabot[bot] Mar 20, 2023
7cb5069
Merge pull request #495 from jenkinsci/bugfix/488
Mar 21, 2023
f617a9a
[maven-release-plugin] prepare release prometheus-2.1.2
Mar 24, 2023
ff098a6
[maven-release-plugin] prepare for next development iteration
Mar 24, 2023
c38c9e7
Merge pull request #498 from jenkinsci/dependabot/maven/org.slf4j-slf…
Mar 24, 2023
0f5a58b
Merge pull request #496 from jenkinsci/dependabot/github_actions/coda…
Mar 24, 2023
3c46b52
Merge pull request #497 from jenkinsci/dependabot/github_actions/acti…
Mar 24, 2023
5fed686
Updating min Jenkins version to the latest bugfix version of 2.361 to…
Mar 24, 2023
5839408
Adding NbBuildsGauge which collects the number of available build per…
Apr 8, 2023
c3bee7a
Adding metric which indicates the runtime of the current build. Can b…
Apr 9, 2023
81d907a
[maven-release-plugin] prepare release prometheus-2.2.0
Apr 9, 2023
6a9c81d
[maven-release-plugin] prepare for next development iteration
Apr 9, 2023
00c6fc1
Fixing duplicate entry when using "Collect metrics for each run" for …
Apr 11, 2023
b9075ad
[maven-release-plugin] prepare release prometheus-2.2.1
Apr 11, 2023
7a8f517
[maven-release-plugin] prepare for next development iteration
Apr 11, 2023
8e410b1
Bugfix/515 (#517)
Apr 18, 2023
b1bd52e
[maven-release-plugin] prepare release prometheus-2.2.2
Apr 18, 2023
f66ba6b
[maven-release-plugin] prepare for next development iteration
Apr 18, 2023
f402344
Creating Summary class for build duration
Apr 19, 2023
eaa5b7b
Creating Counter for failed Jobs
Apr 19, 2023
63b14e2
Bugfix/525 casc (#528)
Jun 5, 2023
c03562c
[maven-release-plugin] prepare release prometheus-2.2.3
Jun 5, 2023
0075069
[maven-release-plugin] prepare for next development iteration
Jun 5, 2023
da881d4
Creating Gauges for Jenkins Metrics, Tests, StageSummary, Build Durat…
Apr 19, 2023
530464d
Refactor ExecutorCollector
Apr 21, 2023
0bd1e0f
renaming metrics to collectors
Apr 21, 2023
2eda742
Refactoring DiskUsageCollector
Apr 21, 2023
46c4cec
Fixing tests and spotbugs
May 7, 2023
7e3ba64
Switching getBaseName to be empty string per default to get rid of ex…
May 8, 2023
6e78a14
Code Cleanup, additional Tests
May 8, 2023
8b6edb8
Adding Abstract Factory and individual factories to create the Collec…
May 12, 2023
3586406
Merge pull request #534 from jenkinsci/refactoring
Jun 21, 2023
8b5f2ed
Feature/516 add ignored metrics regexp option to ignore specific metr…
Aug 26, 2023
607db93
Adding metrics for code coverage (#545)
Sep 3, 2023
c1efb91
Fixing optionalProperty handling
Sep 3, 2023
3f4d0a3
[maven-release-plugin] prepare release prometheus-2.3.0
Sep 3, 2023
c40af9a
[maven-release-plugin] prepare for next development iteration
Sep 3, 2023
3327eb9
Fixing log level (#549)
Sep 4, 2023
bf1aab2
Bump org.slf4j:slf4j-api from 2.0.7 to 2.0.9 (#546)
dependabot[bot] Sep 4, 2023
11006db
Bump actions/checkout from 3.4.0 to 3.6.0 (#543)
dependabot[bot] Sep 4, 2023
c4be517
Bump io.jenkins.tools.bom:bom-2.387.x (#547)
dependabot[bot] Sep 4, 2023
a677e03
[maven-release-plugin] prepare release prometheus-2.3.1
Sep 4, 2023
a85d274
[maven-release-plugin] prepare for next development iteration
Sep 4, 2023
3affe77
Fixes #554. Apply Metric Filter on all external metrics
Sep 14, 2023
019642c
Bugfix/config logging (#556)
Sep 14, 2023
f7d712d
[maven-release-plugin] prepare release prometheus-2.3.2
Sep 14, 2023
7a4429f
[maven-release-plugin] prepare for next development iteration
Sep 14, 2023
bc33d87
Fixing filtering of external metrics (#558)
Sep 18, 2023
0fb0355
[maven-release-plugin] prepare release prometheus-2.3.3
Sep 18, 2023
56df120
[maven-release-plugin] prepare for next development iteration
Sep 18, 2023
b17c05b
Bump io.jenkins.tools.bom:bom-2.387.x (#559)
dependabot[bot] Sep 18, 2023
957bc36
Tests and build improvements (#560)
Sep 18, 2023
e274fc4
Bump actions/checkout from 3.6.0 to 4.0.0 (#552)
dependabot[bot] Sep 18, 2023
0f5d72c
Only Log Warning if environment variable is defined and invalid (#565)
Sep 26, 2023
3dc4362
Prepare to test Java 21 (#571)
MarkEWaite Oct 15, 2023
c48d725
Update Tests to Junit5 Framework and removed some unnecessary test de…
Nov 21, 2023
1dc17fe
Bump actions/checkout from 4.1.0 to 4.1.1 (#577)
dependabot[bot] Nov 21, 2023
88fb881
Bump io.jenkins.plugins:code-coverage-api from 4.8.0 to 4.99.0 (#587)
dependabot[bot] Nov 21, 2023
d681207
Bump org.jenkins-ci.plugins:plugin from 4.74 to 4.75 (#586)
dependabot[bot] Nov 21, 2023
91e91e4
Bump io.jenkins.tools.bom:bom-2.387.x (#585)
dependabot[bot] Nov 21, 2023
7c89b80
Bump org.jenkins-ci.plugins:cloudbees-disk-usage-simple (#578)
dependabot[bot] Nov 21, 2023
a2bb143
Removing unused class
Nov 21, 2023
8dab3b1
Implementing new Metric which displays the file count within the root…
Nov 22, 2023
7e3f6e6
Don't call Jenkins.get() within loop
Nov 26, 2023
4f5e028
Creating Build Metrics for Log is updated and build is likely stuck (…
Nov 26, 2023
09df7db
Fixing Disk Usage Collector handling
Nov 26, 2023
028ee36
Fixing test mock
Nov 26, 2023
10a5044
[maven-release-plugin] prepare release prometheus-2.4.0
Nov 26, 2023
d093547
[maven-release-plugin] prepare for next development iteration
Nov 26, 2023
b2e55e1
Bump org.mockito:mockito-junit-jupiter from 5.3.1 to 5.7.0 (#593)
dependabot[bot] Nov 27, 2023
84e9b5f
Updating documentation about scraping the endpoint (#595)
Dec 5, 2023
3491c37
Fixing result ordinal when run is currently building (#598)
Dec 5, 2023
b4edb0b
Bump org.mockito:mockito-junit-jupiter from 5.7.0 to 5.8.0 (#596)
dependabot[bot] Dec 5, 2023
d0995f7
[maven-release-plugin] prepare release prometheus-2.4.1
Dec 5, 2023
5daf6ee
[maven-release-plugin] prepare for next development iteration
Dec 5, 2023
b68c22b
Update README.md
Dec 7, 2023
9c7c0d5
Bump actions/stale from 6.0.1 to 9.0.0 (#599)
dependabot[bot] Dec 12, 2023
5eaec6b
Bump org.jenkins-ci.plugins:plugin from 4.75 to 4.76 (#602)
dependabot[bot] Dec 19, 2023
79a7d58
Bump github/codeql-action from 2 to 3 (#601)
dependabot[bot] Dec 19, 2023
82146d3
Make it possible to get stage statistics per build (#604)
Dec 22, 2023
0fef08f
[maven-release-plugin] prepare release prometheus-2.4.2
Dec 26, 2023
ce2e589
[maven-release-plugin] prepare for next development iteration
Dec 26, 2023
73e8034
Fix Monotonic Counter and Add New Build Counters (#606)
aidanleuck Dec 29, 2023
78bf846
Fixing code coverage calculation (#608)
Dec 30, 2023
325a934
removing underscore. no functional change
Dec 30, 2023
8587314
Removing funding.yml
Dec 30, 2023
bd38e03
[maven-release-plugin] prepare release prometheus-2.4.3
Dec 30, 2023
a496ab7
[maven-release-plugin] prepare for next development iteration
Dec 30, 2023
43a38ca
Bump org.slf4j:slf4j-api from 2.0.9 to 2.0.10 (#609)
dependabot[bot] Jan 1, 2024
4e81220
Bump org.jenkins-ci.plugins:cloudbees-disk-usage-simple (#610)
dependabot[bot] Jan 1, 2024
0c12405
Adding status Badges
Jan 5, 2024
366d672
Adding more tests (#613)
Jan 6, 2024
bbcbe6b
at least test that nothing crashes on null
Jan 6, 2024
79c23b1
Update Jenkinsfile (#614)
AniketNS Jan 9, 2024
f0e2864
Fixing tests for java 21 + also test 11, 17 and 21 on win and linux
Jan 9, 2024
d64bcde
Code coverage will not show job full name. Provide a default value of…
Jan 9, 2024
8899091
Only use current LTS for both platforms
Jan 9, 2024
d4b71c5
Fixing test
Jan 9, 2024
104254d
[maven-release-plugin] prepare release prometheus-2.5.0
Jan 9, 2024
fe461d2
[maven-release-plugin] prepare for next development iteration
Jan 9, 2024
08c5dd4
Fix namespace issue for build counters (#616)
aidanleuck Jan 12, 2024
ba7325d
Adding hint
Jan 13, 2024
b58b0e2
[maven-release-plugin] prepare release prometheus-2.5.1
Jan 13, 2024
ca1cd93
[maven-release-plugin] prepare for next development iteration
Jan 13, 2024
3da0c3a
Documenting config (#618)
Jan 14, 2024
5a5c759
Bump org.slf4j:slf4j-api from 2.0.10 to 2.0.11 (#619)
dependabot[bot] Jan 16, 2024
7500cf5
Bump org.mockito:mockito-junit-jupiter from 5.8.0 to 5.9.0 (#620)
dependabot[bot] Jan 16, 2024
3c68990
Bump io.jenkins.plugins:coverage from 1.7.0 to 1.8.0 (#621)
dependabot[bot] Jan 16, 2024
57a26c0
Bump io.jenkins.plugins:coverage from 1.8.0 to 1.9.0 (#622)
dependabot[bot] Jan 22, 2024
984cbc9
Bump org.jenkins-ci.plugins:plugin from 4.76 to 4.77 (#623)
dependabot[bot] Jan 22, 2024
0d42259
Bump org.mockito:mockito-junit-jupiter from 5.9.0 to 5.10.0 (#625)
dependabot[bot] Jan 29, 2024
79b2170
Bump org.slf4j:slf4j-api from 2.0.11 to 2.0.12 (#630)
dependabot[bot] Feb 15, 2024
f9fb143
Bump org.jenkins-ci.plugins:plugin from 4.77 to 4.78 (#629)
dependabot[bot] Feb 15, 2024
6a467f1
Bump release-drafter/release-drafter from 5 to 6 (#627)
dependabot[bot] Feb 15, 2024
e65065b
Bump io.jenkins.plugins:coverage from 1.9.0 to 1.10.0 (#626)
dependabot[bot] Feb 15, 2024
07322ef
Bump codacy/codacy-analysis-cli-action from 4.3.0 to 4.4.0 (#628)
dependabot[bot] Feb 15, 2024
874de5e
Code Maintenance - remove warnings (#631)
Feb 18, 2024
77c30bb
Bump org.mockito:mockito-junit-jupiter from 5.10.0 to 5.11.0 (#633)
dependabot[bot] Mar 4, 2024
d79999a
Fix initilization potential deadlock (#637)
Dohbedoh Mar 10, 2024
dfcd11c
Bump org.jenkins-ci.plugins:plugin from 4.78 to 4.79 (#638)
dependabot[bot] Mar 16, 2024
1e8361e
Bump actions/checkout from 4.1.1 to 4.1.2 (#641)
dependabot[bot] Mar 20, 2024
9401c6e
Fixes #635: Changing creation of service classes away from explicit g…
Mar 22, 2024
cecea92
Avoid memory leak when configuring all job count metrics with false (…
Mar 23, 2024
69d9a00
[maven-release-plugin] prepare release prometheus-2.5.2
Mar 26, 2024
d25fd25
[maven-release-plugin] prepare for next development iteration
Mar 26, 2024
0c3c655
Enable incrementals for testing PR (#649)
jonesbusy Mar 28, 2024
fb5b95c
Reverting commits which might cause startup issues on non docker inst…
Mar 29, 2024
ddef177
Dummy commit to test commit and push on master
Mar 29, 2024
33e9aa8
Modify connection
Mar 29, 2024
ad915fc
[maven-release-plugin] prepare release prometheus-2.5.3
Mar 29, 2024
3f42a88
[maven-release-plugin] prepare for next development iteration
Mar 29, 2024
dbeacc2
Bump org.jenkins-ci.plugins:plugin from 4.79 to 4.80 (#646)
dependabot[bot] Apr 8, 2024
0041410
Enabling CD (#651)
Apr 9, 2024
a4ef011
Create release-drafter.yml
Apr 9, 2024
049c1fc
Bump org.jenkins-ci.plugins:plugin from 4.80 to 4.81 (#654)
dependabot[bot] Apr 16, 2024
f216ace
Bump io.jenkins.tools.incrementals:git-changelist-maven-extension (#653)
dependabot[bot] Apr 16, 2024
f8c26ba
Removed some codacy issues (#656)
Apr 21, 2024
6a75055
Bump actions/checkout from 4.1.2 to 4.1.4 (#658)
dependabot[bot] May 1, 2024
b6361ca
Replace JSR-305 annotations with spotbugs annotations (#660)
MarkEWaite May 9, 2024
5a5ea28
Bump org.mockito:mockito-junit-jupiter from 5.11.0 to 5.12.0 (#663)
dependabot[bot] May 13, 2024
fdc2146
Bump org.jenkins-ci.plugins:plugin from 4.81 to 4.82 (#659)
dependabot[bot] May 13, 2024
304ce25
Fixing documentation of default_jenkins_builds__last_build_result (#665)
May 13, 2024
d7d9acf
New metrics which shows the build log size in bytes (#668)
May 21, 2024
e5e758d
Updating docs (#669)
May 22, 2024
0f2859a
Bump actions/checkout from 4.1.4 to 4.1.6 (#671)
dependabot[bot] Jun 3, 2024
a3d8f9b
Bump codacy/codacy-analysis-cli-action from 4.4.0 to 4.4.1 (#670)
dependabot[bot] Jun 3, 2024
3b62d81
Adding Null Checks and further tests (#673)
Jun 5, 2024
1300e5b
Bump org.jenkins-ci.plugins:plugin from 4.82 to 4.83 (#676)
dependabot[bot] Jun 11, 2024
80fda2f
Enable Jenkins Security Scan (#677)
strangelookingnerd Jun 21, 2024
4409eb3
Bump actions/checkout from 4.1.6 to 4.1.7 (#679)
dependabot[bot] Jul 3, 2024
7e4bb27
Bump org.jenkins-ci.plugins:plugin from 4.83 to 4.85 (#681)
dependabot[bot] Jul 8, 2024
e1c932a
Remove Guice + use Singleton to fix initilization potential deadlock …
Dohbedoh Jul 24, 2024
b59179a
[#635][#683] Launch collector registration asynchronously (#685)
Dohbedoh Jul 26, 2024
7c50ad2
Add new metric for Quiet Mode status (#687)
sstafford Jul 27, 2024
4729df1
Bump codacy/codacy-analysis-cli-action from 4.4.1 to 4.4.5 (#688)
dependabot[bot] Aug 1, 2024
1872c74
Bump org.slf4j:slf4j-api from 2.0.13 to 2.0.16 (#690)
dependabot[bot] Aug 12, 2024
8dc56e9
Bump org.jenkins-ci.plugins:plugin from 4.85 to 4.86 (#689)
dependabot[bot] Aug 13, 2024
eaecaf6
Do not create Collectors for each Job. (#692)
Waschndolos Aug 23, 2024
eb07601
Bump org.mockito:mockito-junit-jupiter from 5.12.0 to 5.13.0 (#694)
dependabot[bot] Sep 2, 2024
7425fa1
Bump org.jenkins-ci.plugins:plugin from 4.86 to 4.87 (#693)
dependabot[bot] Sep 2, 2024
52e8f47
Adding configuration option to exclude jobs from Prometheus metrics v…
Waschndolos Sep 22, 2024
ebe4f68
Bump org.jenkins-ci.plugins:plugin from 4.87 to 4.88 (#700)
dependabot[bot] Sep 24, 2024
3769f27
Bump org.mockito:mockito-junit-jupiter from 5.13.0 to 5.14.0 (#702)
dependabot[bot] Sep 30, 2024
2934fce
Bump actions/checkout from 4.1.7 to 4.2.0 (#703)
dependabot[bot] Oct 1, 2024
8838bb2
Bump org.mockito:mockito-junit-jupiter from 5.14.0 to 5.14.1 (#705)
dependabot[bot] Oct 8, 2024
3d25609
New Metrics which shows the Stage ordinal (#704)
Waschndolos Oct 18, 2024
67a61c3
Bump actions/checkout from 4.2.0 to 4.2.2 (#713)
dependabot[bot] Nov 1, 2024
4888559
When a build is building while the prometheus calculating cycle runs …
Waschndolos Nov 1, 2024
9957621
Bump org.jenkins-ci.plugins:cloudbees-disk-usage-simple (#708)
dependabot[bot] Nov 1, 2024
3648953
Updating parent pom version to 5.3. Removing deprecated classes usage
Nov 30, 2024
a08059c
optimize imports, no functional change
Nov 30, 2024
d0e78ba
removing codeql as it's not necessary and fails all the time
Nov 30, 2024
a72036c
Merge pull request #716 from jenkinsci/maintenance/update-parent
Waschndolos Nov 30, 2024
6196875
Avoiding deadlock when jenkins updates the build iterator while acces…
Dec 6, 2024
98e119d
Merge pull request #718 from jenkinsci/bugfix/deadlock-in-nbBuildsGauge
Waschndolos Dec 6, 2024
b857dfe
Bump org.jenkins-ci.plugins:plugin from 5.3 to 5.4
dependabot[bot] Dec 23, 2024
0cedc6d
Merge pull request #720 from jenkinsci/dependabot/maven/org.jenkins-c…
Waschndolos Dec 27, 2024
8886a23
Bump org.mockito:mockito-junit-jupiter from 5.14.1 to 5.15.2
dependabot[bot] Jan 6, 2025
e7b1b6c
Merge pull request #723 from jenkinsci/dependabot/maven/org.mockito-m…
Waschndolos Jan 9, 2025
12d80d0
Bump org.jenkins-ci.plugins:plugin from 5.4 to 5.5
dependabot[bot] Jan 13, 2025
0226efe
Merge pull request #724 from jenkinsci/dependabot/maven/org.jenkins-c…
Waschndolos Jan 14, 2025
6fded15
Migrate from EE 8 to EE 9
basil Jan 17, 2025
02f7f43
Merge pull request #725 from basil/jakarta
Waschndolos Jan 17, 2025
27e2c88
Do not collect disabled jobs
Jan 25, 2025
1823c78
Merge pull request #727 from jenkinsci/bugfix/disabled-jobs
Waschndolos Jan 25, 2025
a1c18d2
Bump actions/stale from 9.0.0 to 9.1.0
dependabot[bot] Feb 1, 2025
6341451
Bump org.jenkins-ci.plugins:plugin from 5.5 to 5.6
dependabot[bot] Feb 3, 2025
5c5dfd8
Merge pull request #729 from jenkinsci/dependabot/maven/org.jenkins-c…
Waschndolos Feb 4, 2025
42c37e9
Merge pull request #728 from jenkinsci/dependabot/github_actions/acti…
Waschndolos Feb 4, 2025
01a7bd7
Bump org.jenkins-ci.plugins:plugin from 5.6 to 5.7
dependabot[bot] Feb 10, 2025
8fc6ced
Merge pull request #731 from jenkinsci/dependabot/maven/org.jenkins-c…
Waschndolos Feb 18, 2025
a90aae4
New Gauge which displays the waiting time of a run
Feb 18, 2025
50953ac
Merge pull request #732 from jenkinsci/feature/waiting-time-duration
Waschndolos Feb 18, 2025
870bf63
Bump org.slf4j:slf4j-api from 2.0.16 to 2.0.17
dependabot[bot] Mar 3, 2025
7e04529
Bump org.jenkins-ci.plugins:cloudbees-disk-usage-simple
dependabot[bot] Mar 10, 2025
e0e0636
Bump org.mockito:mockito-junit-jupiter from 5.15.2 to 5.16.0
dependabot[bot] Mar 10, 2025
9426992
Bump org.jenkins-ci.plugins:plugin from 5.7 to 5.9
dependabot[bot] Mar 10, 2025
736ec36
Merge pull request #738 from jenkinsci/dependabot/maven/org.mockito-m…
Waschndolos Mar 10, 2025
3275dc4
Merge pull request #735 from jenkinsci/dependabot/maven/org.slf4j-slf…
Waschndolos Mar 10, 2025
66a9244
Merge pull request #739 from jenkinsci/dependabot/maven/org.jenkins-c…
Waschndolos Mar 16, 2025
ab52909
Merge pull request #737 from jenkinsci/dependabot/maven/org.jenkins-c…
Waschndolos Mar 16, 2025
1531543
Bump org.mockito:mockito-junit-jupiter from 5.16.0 to 5.17.0
dependabot[bot] Apr 7, 2025
aa32564
Merge pull request #745 from jenkinsci/dependabot/maven/org.mockito-m…
Waschndolos Apr 9, 2025
b5ab052
Bump org.jenkins-ci.plugins:plugin from 5.9 to 5.10
dependabot[bot] Apr 14, 2025
4f04c64
Merge pull request #748 from jenkinsci/dependabot/maven/org.jenkins-c…
Waschndolos Apr 14, 2025
b8edfad
Bump org.jenkins-ci.plugins:plugin from 5.10 to 5.12
dependabot[bot] Apr 28, 2025
ac184d0
Merge pull request #750 from jenkinsci/dependabot/maven/org.jenkins-c…
Waschndolos May 4, 2025
2210a4d
Bump org.jenkins-ci.plugins:plugin from 5.12 to 5.17
dependabot[bot] May 19, 2025
ab90554
Update plugin build
basil May 24, 2025
14b352d
Merge pull request #756 from basil/refresh
Waschndolos May 26, 2025
886488b
Merge pull request #755 from jenkinsci/dependabot/maven/org.jenkins-c…
Waschndolos May 26, 2025
036abdb
Bump io.jenkins.plugins:coverage from 1.10.0 to 2.7.0
dependabot[bot] Jun 23, 2025
ebf058b
Bump io.jenkins.tools.bom:bom-2.479.x
dependabot[bot] Jun 30, 2025
8b341d3
Merge pull request #764 from jenkinsci/dependabot/maven/io.jenkins.to…
Waschndolos Jun 30, 2025
ed6a117
Merge pull request #763 from jenkinsci/dependabot/maven/io.jenkins.pl…
Waschndolos Jun 30, 2025
5e4a0f4
Remove usages of Commons Lang 2
jonesbusy Aug 6, 2025
f270941
Merge pull request #773 from jonesbusy/feature/commons-lang
Waschndolos Aug 6, 2025
5463e05
Bump org.jenkins-ci.plugins:plugin from 5.17 to 5.28
dependabot[bot] Nov 3, 2025
a41f879
Test with Java 25 and Java 21
MarkEWaite Nov 21, 2025
cd7dc7c
Merge pull request #793 from MarkEWaite/test-with-java-25
Waschndolos Nov 24, 2025
8440e5c
Delete .github/workflows/codacy-analysis.yml until a replacement avai…
Waschndolos Nov 24, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions .github/FUNDING.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@ Tell us what happens instead

### Notify

@markyjackson-taulia
@Waschndolos
2 changes: 1 addition & 1 deletion .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ Fixes #...

### Notify

@markyjackson-taulia
@Waschndolos
2 changes: 1 addition & 1 deletion .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
interval: "monthly"
open-pull-requests-limit: 10
2 changes: 0 additions & 2 deletions .github/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
_extends: .github
tag-template: prometheus-$NEXT_PATCH_VERSION
version-template: $MAJOR.$MINOR.$PATCH
20 changes: 20 additions & 0 deletions .github/workflows/cd.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Note: additional setup is required, see https://www.jenkins.io/redirect/continuous-delivery-of-plugins

name: cd
on:
workflow_dispatch:
# Want to do manual releases for now until I'm used to the CD
# check_run:
# types:
# - completed

permissions:
checks: read
contents: write

jobs:
maven-cd:
uses: jenkins-infra/github-reusable-workflows/.github/workflows/maven-cd.yml@v1
secrets:
MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }}
MAVEN_TOKEN: ${{ secrets.MAVEN_TOKEN }}
46 changes: 0 additions & 46 deletions .github/workflows/codacy-analysis.yml

This file was deleted.

62 changes: 0 additions & 62 deletions .github/workflows/codeql-analysis.yml

This file was deleted.

21 changes: 21 additions & 0 deletions .github/workflows/jenkins-security-scan.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Jenkins Security Scan

on:
push:
branches:
- master
pull_request:
types: [ opened, synchronize, reopened ]
workflow_dispatch:

permissions:
security-events: write
contents: read
actions: read

jobs:
security-scan:
uses: jenkins-infra/jenkins-security-scan/.github/workflows/jenkins-security-scan.yaml@v2
with:
java-cache: 'maven' # Optionally enable use of a build dependency cache. Specify 'maven' or 'gradle' as appropriate.
# java-version: 21 # Optionally specify what version of Java to set up for the build, or remove to use a recent default.
2 changes: 1 addition & 1 deletion .github/workflows/stale.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/stale@v3
- uses: actions/stale@v9.1.0
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
stale-issue-message: 'Stale issue message'
Expand Down
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@ work
.classpath
.settings/
build/
*.DS_Store
*.DS_Store
.vscode/*
7 changes: 7 additions & 0 deletions .mvn/extensions.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<extensions xmlns="http://maven.apache.org/EXTENSIONS/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/EXTENSIONS/1.0.0 http://maven.apache.org/xsd/core-extensions-1.0.0.xsd">
<extension>
<groupId>io.jenkins.tools.incrementals</groupId>
<artifactId>git-changelist-maven-extension</artifactId>
<version>1.8</version>
</extension>
</extensions>
3 changes: 3 additions & 0 deletions .mvn/maven.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
-Pconsume-incrementals
-Pmight-produce-incrementals
-Dchangelist.format=%d.v%s
10 changes: 9 additions & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
@@ -1,2 +1,10 @@
/* `buildPlugin` step provided by: https://github.com/jenkins-infra/pipeline-library */
buildPlugin()

buildPlugin(
forkCount: '1C',
useContainerAgent: true,
configurations: [
[platform: 'linux', jdk: 25],
[platform: 'windows', jdk: 25],
[platform: 'linux', jdk: 21],
])
28 changes: 22 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,21 +1,36 @@
# Jenkins Prometheus Metrics Plugin

[![Coverage](https://ci.jenkins.io/job/Plugins/job/prometheus-plugin/job/master/badge/icon?status=${instructionCoverage}&subject=coverage&color=${colorInstructionCoverage})](https://ci.jenkins.io/job/Plugins/job/prometheus-plugin/job/master)
[![LOC](https://ci.jenkins.io/job/Plugins/job/prometheus-plugin/job/master/badge/icon?job=test&status=${lineOfCode}&subject=line%20of%20code&color=blue)](https://ci.jenkins.io/job/Plugins/job/prometheus-plugin/job/master)
[![Jenkins Plugin Installs](https://img.shields.io/jenkins/plugin/i/prometheus.svg?color=blue)](https://plugins.jenkins.io/prometheus)


## About
Jenkins Prometheus Plugin expose an endpoint (default `/prometheus`) with metrics where a Prometheus Server can scrape.
Jenkins Prometheus Plugin expose an endpoint (default `/prometheus/`) with metrics where a Prometheus Server can scrape.

Documentation can be found [here](https://plugins.jenkins.io/prometheus)

Please note that the documentation is a WIP.

## Metrics exposed
Currently only metrics from the [Metrics-plugin](https://github.com/jenkinsci/metrics-plugin) and summary of build
duration of jobs and pipeline stages
2 types of metrics are exposed:

- Metrics from [Metrics-plugin](https://github.com/jenkinsci/metrics-plugin)
- Metrics from this plugin. Refer [Prometheus-plugin](docs/metrics/index.md)

## Scraping the endpoint
The endpoint you've configured or the default endpoint `/prometheus/` in case you didn't configure an endpoint, needs to
end with a trailing slash when you configure the endpoint in your scraping tool. If you miss adding the trailing slash
you'll get a 302 response with a redirection to the endpoint ending with a slash. Some tools cannot handle this well.

## Configuring the plugin
You can find some examples in this documentation [Configuring Plugin](docs/configuration/configuration.md)

## Environment variables

`PROMETHEUS_NAMESPACE` Prefix of metric (Default: `default`).

`PROMETHEUS_ENDPOINT` REST Endpoint (Default: `prometheus`)
`PROMETHEUS_ENDPOINT` REST Endpoint (Default: `/prometheus/`)

`COLLECTING_METRICS_PERIOD_IN_SECONDS` Async task period in seconds (Default: `120` seconds)

Expand All @@ -28,9 +43,8 @@ duration of jobs and pipeline stages
mvn hpi:hpi

## Author / Maintainer
[Lars Sjöström](https://github.com/lsjostro)

[Marky Jackson](https://github.com/markyjackson-taulia)
[Waschndolos](https://github.com/waschndolos)

# Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Expand Down Expand Up @@ -89,9 +103,11 @@ Have a look at CONTRIBUTING.md. There are 3 easy ways to contribute to this proj

Commit and push your changes.

```
git add -A
git commit -m "Your commit message"
git push --set-upstream origin new-branch
```
Create a Pull Request by navigating to your forked repository and clicking the New pull request button on your left-hand side of the page.

Add in a title, edit the PR template, and then press the Create pull request button.
Expand Down
Binary file added docs/assets/metrics_per_build.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
76 changes: 76 additions & 0 deletions docs/configuration/configuration.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
# Plugin configuration

## Path
With the path configuration you can configure under which url the Prometheus page will be rendered. The default
is `prometheus` which will cause the rending to be at `http(s)://yourInstance:(port)/(jenkins?)/prometheus`

## Default Namespace
You can configure a namespace for all metrics generated by this plugin which will be prefixed to the output

## Enable authentication for prometheus end-point
If you check this the accessing the endpoint needs to have the `Metrics.VIEW` permission

## Collecting metrics period in second
The metrics are collected every x seconds. You can configure the interval here.

## Count duration of successful builds
If checked the plugin wil calculate the duration of successful builds

## Count duration of unstable builds
If checked the plugin wil calculate the duration of unstable builds

## Count duration of not-built builds
If checked the plugin wil calculate the duration of not-built builds

## Count duration of aborted builds
If checked the plugin wil calculate the duration of aborted builds

## Fetch the test results of builds
If checked the plugin will return test results as metrics

## Add build parameter label to metrics
If checked the plugin will add the build (input) parameters to the metrics.
Note: If the cardinality of your build parameters is high, this will create a large number of metrics.
This can result in poor jenkins and prometheus performance.

## Add build status label to metrics
If checked the plugin will add the build status like SUCCESS, FAILURE, RUNNING to the metrics of
`duration_milliseconds_summary`, `success_build_count` and `failed_build_count metrics`

## Job attribute name
You can configure the label of the field which contains the job name here.

## Build parameters that will be added as separate labels to metrics
Please refer online documentation (question mark symbol in jenkins configuration page)

## Collect disk usage
If checked the plugin will collect the disk usage of your master agent. Do not use this on a cloud storage provider.

## Collect node status
If checked the plugin will collect data of up/down status of your Jenkins agents

## Collect metrics for each run per build
If checked it will cause the plugin to add metrics for every build available. The build number will be added as label. Use with caution!

## Collect Code coverage (since v2.3.0)
If checked and you publish your code coverage results with [https://plugins.jenkins.io/coverage](https://plugins.jenkins.io/coverage)
the plugin will output metrics for:
* (Class | Branch | Instruction | File | Line ) Missed
* (Class | Branch | Instruction | File | Line ) Covered
* (Class | Branch | Instruction | File | Line ) Total
* (Class | Branch | Instruction | File | Line ) Percent

## Disable Metrics (since v2.3.0)
Sometimes you don't need all metrics in your prometheus endpoint which this plugin provides.
You can disable certain metrics. These metrics are not being collected by the plugin and therefore not added in the
prometheus endpoint.

![img.png](img/disabled_metrics.png)

### Regex Entry
A Regex entry can be used to disable a group of metrics. E.g. if you want to disable everything with
default_jenkins_disk.*

### Fully qualified Name Entry
If you want to disable certain individual entries you can do it with this entry. The value should be the same
as you can see it in the prometheus endpoint. It's case-insensitive.
Binary file added docs/configuration/img/disabled_metrics.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading