Skip to content

Add Python DIR plugin for prometheus metrics#911

Merged
sduehr merged 3 commits intobareos:masterfrom
benibr:plugin/prometheus
Oct 29, 2021
Merged

Add Python DIR plugin for prometheus metrics#911
sduehr merged 3 commits intobareos:masterfrom
benibr:plugin/prometheus

Conversation

@benibr
Copy link
Contributor

@benibr benibr commented Aug 16, 2021

This adds a Python3 plugin for the Bareos director to submit job data to a Prometheus pushgateway.
This depends on a working python3 director setup and therefore on #881 to be working

Please check

  • Short description and the purpose of this PR is present above this paragraph
  • Your name is present in the AUTHORS file (optional)

If you have any questions or problems, please give a comment in the PR.

Helpful documentation and best practices

Checklist for the reviewer of the PR (will be processed by the Bareos team)

General
  • PR name is meaningful
  • Purpose of the PR is understood
  • Separate commit for this PR in the CHANGELOG.md, PR number referenced is same
  • Commit descriptions are understandable and well formatted
Source code quality
  • Source code changes are understandable
  • Variable and function names are meaningful
  • Code comments are correct (logically and spelling)
  • Required documentation changes are present and part of the PR
  • bareos-check-sources --since-merge does not report any problems
  • git status should not report modifications in the source tree after building and testing

@sduehr sduehr self-requested a review September 30, 2021 13:52
Copy link
Member

@sduehr sduehr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've suggested some changes for not having to use from bareosdir import *.

@sduehr
Copy link
Member

sduehr commented Sep 30, 2021

PR #923 (which replaces PR #881) has been merged into master meanwhile.

@sduehr
Copy link
Member

sduehr commented Oct 18, 2021

Hi,

it would be nice if you could apply the suggested changes, so that we can merge this PR.

Copy link
Member

@sduehr sduehr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks a lot for your contribution, looks good now.

@sduehr sduehr force-pushed the plugin/prometheus branch from 8da8615 to 63c6593 Compare October 29, 2021 10:36
Benedikt Braunger and others added 3 commits October 29, 2021 12:45
@sduehr sduehr force-pushed the plugin/prometheus branch from 63c6593 to de04820 Compare October 29, 2021 10:51
@sduehr sduehr merged commit b4e34b3 into bareos:master Oct 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants