{"id":21301735,"url":"https://github.com/funbox/bacula_exporter","last_synced_at":"2026-01-12T07:38:17.593Z","repository":{"id":43871151,"uuid":"314262409","full_name":"funbox/bacula_exporter","owner":"funbox","description":"Bacula exporter for Prometheus","archived":false,"fork":false,"pushed_at":"2023-02-25T11:21:25.000Z","size":2684,"stargazers_count":5,"open_issues_count":2,"forks_count":5,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-11T20:41:40.905Z","etag":null,"topics":["bacula","metrics","prometheus","prometheus-exporter"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/funbox.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2020-11-19T13:51:09.000Z","updated_at":"2023-08-30T12:24:14.000Z","dependencies_parsed_at":"2023-10-14T23:22:42.924Z","dependency_job_id":"8b89b7f8-ae67-4eec-bcc0-31166f950d63","html_url":"https://github.com/funbox/bacula_exporter","commit_stats":{"total_commits":19,"total_committers":4,"mean_commits":4.75,"dds":0.3157894736842105,"last_synced_commit":"6a5b5c2dddc42ed335aa8cee65a17da541f2b5db"},"previous_names":["gongled/bacula_exporter"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/funbox/bacula_exporter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/funbox%2Fbacula_exporter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/funbox%2Fbacula_exporter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/funbox%2Fbacula_exporter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/funbox%2Fbacula_exporter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/funbox","download_url":"https://codeload.github.com/funbox/bacula_exporter/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/funbox%2Fbacula_exporter/sbom","scorecard":{"id":413719,"data":{"date":"2025-08-11","repo":{"name":"github.com/funbox/bacula_exporter","commit":"6a5b5c2dddc42ed335aa8cee65a17da541f2b5db"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.3,"checks":[{"name":"Code-Review","score":1,"reason":"Found 2/14 approved changesets -- score normalized to 1","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/docker.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/docker.yml:13: update your workflow using https://app.stepsecurity.io/secureworkflow/funbox/bacula_exporter/docker.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/docker.yml:16: update your workflow using https://app.stepsecurity.io/secureworkflow/funbox/bacula_exporter/docker.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/docker.yml:23: update your workflow using https://app.stepsecurity.io/secureworkflow/funbox/bacula_exporter/docker.yml/master?enable=pin","Warn: containerImage not pinned by hash: Dockerfile:1","Info:   0 out of   1 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   2 third-party GitHubAction dependencies pinned","Info:   0 out of   1 containerImage dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 20 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":8,"reason":"2 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GO-2022-0493 / GHSA-p782-xgp4-8hr8","Warn: Project is vulnerable to: GO-2024-2611 / GHSA-8r3f-844c-mc37"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-18T23:18:00.408Z","repository_id":43871151,"created_at":"2025-08-18T23:18:00.408Z","updated_at":"2025-08-18T23:18:00.408Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28336612,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-12T06:09:07.588Z","status":"ssl_error","status_checked_at":"2026-01-12T06:05:18.301Z","response_time":98,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bacula","metrics","prometheus","prometheus-exporter"],"created_at":"2024-11-21T15:50:37.923Z","updated_at":"2026-01-12T07:38:17.574Z","avatar_url":"https://github.com/funbox.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Bacula Exporter\n\nPrometheus Exporter for [Bacula](https://bacula.org/) metrics written in Go.\n\n## Overview\n\n### Demo\n\n\u003cp align=\"center\"\u003e\u003ca href=\"#readme\"\u003e\u003cimg src=\"screenshot.png\"/\u003e\u003c/a\u003e\u003c/p\u003e\n\n### Requirements\n\nNote, that the following dependencies should be satisfied:\n\n- [Docker](https://docker.com)\n- [Docker Compose](https://docs.docker.com/compose/)\n- [Golang](https://golang.org/) v1.13 or higher\n\n### Supported backends\n\nCurrently we are supporting only PostgreSQL backend.\n\n## Features\n\nPrometheus Exporter exposes several metrics.\n\n### Latest jobs\n\n**Metrics details**\n\n| Name                             | Exposed informations                                                  |\n| -------------------------------- | --------------------------------------------------------------------- |\n| `bacula_latest_job_files_total`  | Total files saved for server during latest backup for client combined |\n| `bacula_latest_job_bytes_total`  | Total bytes saved for server during latest backup for client combined |\n| `bacula_latest_job_sched_time`   | Timestamp when the latest job was scheduled                           |\n| `bacula_latest_job_start_time`   | Timestamp when the latest job was started                             |\n| `bacula_latest_job_end_time`     | Timestamp when the latest job was ended                               |\n\n**Metrics output example**\n\n```txt\n# TYPE bacula_latest_job_bytes_total gauge\nbacula_latest_job_bytes_total{level=\"F\",name=\"app1-job\",status=\"T\"} 2.585135999e+09\nbacula_latest_job_bytes_total{level=\"I\",name=\"app1-job\",status=\"T\"} 265559\n# TYPE bacula_latest_job_end_time counter\nbacula_latest_job_end_time{level=\"F\",name=\"app1-job\",status=\"T\"} 1.60540267e+09\nbacula_latest_job_end_time{level=\"I\",name=\"app1-job\",status=\"T\"} 1.605661203e+09\n# TYPE bacula_latest_job_files_total gauge\nbacula_latest_job_files_total{level=\"F\",name=\"app1-job\",status=\"T\"} 5135\nbacula_latest_job_files_total{level=\"I\",name=\"app1-job\",status=\"T\"} 34\n# TYPE bacula_latest_job_sched_time counter\nbacula_latest_job_sched_time{level=\"F\",name=\"app1-job\",status=\"T\"} 1.605790438e+09\nbacula_latest_job_sched_time{level=\"I\",name=\"app1-job\",status=\"T\"} 1.605790438e+09\n# TYPE bacula_latest_job_start_time counter\nbacula_latest_job_start_time{level=\"F\",name=\"app1-job\",status=\"T\"} 1.605402002e+09\nbacula_latest_job_start_time{level=\"I\",name=\"app1-job\",status=\"T\"} 1.605661201e+09\n```\n\n### Jobs summary\n\n**Metrics details**\n\n| Name                             | Exposed informations                                                  |\n| -------------------------------- | --------------------------------------------------------------------- |\n| `bacula_summary_job_files_total` | Total files saved for server during all backups for client combined   |\n| `bacula_summary_job_bytes_total` | Total bytes saved for server during all backups for client combined   |\n\n**Metrics output details**\n\n```txt\n# TYPE bacula_summary_job_bytes_total gauge\nbacula_summary_job_bytes_total{level=\"F\",name=\"app1-job\"} 5.472818095e+09\nbacula_summary_job_bytes_total{level=\"I\",name=\"app1-job\"} 8.4448111e+07\n# TYPE bacula_summary_job_files_total gauge\nbacula_summary_job_files_total{level=\"F\",name=\"app1-job\"} 10140\nbacula_summary_job_files_total{level=\"I\",name=\"app1-job\"} 348\n```\n\n## Build\n\n### From the source code\n\n```shell\nmake deps\nmake all\n```\n\n### Docker image\n\n```shell\nmake docker\n```\n\n## Deploy\n\n### Binary\n\n```\nbacula_exporter -c /path/to/bacula_exporter.knf\n```\n\n### Docker image\n\n```shell\ndocker pull funbox/bacula_exporter:1.1.0\n```\n\n## Usage\n\n### Command line\n\n```txt\nUsage: bacula_exporter {options}\n\nOptions\n\n  --config, -c file    Path to configuraion file\n  --no-color, -nc      Disable colors in output\n  --help, -h           Show this help message\n  --version, -v        Show version\n```\n\n### Configuration\n\n```txt\n[http]\n\n  # HTTP server IP\n  ip: 0.0.0.0\n\n  # HTTP server port\n  port: 33407\n\n  # HTTP metrics endpoint\n  endpoint: /metrics\n\n[db]\n\n  # Database name\n  name: bacula\n\n  # Username\n  username: bacula\n\n  # Password\n  password: keepinsecret\n\n  # IP address or FQDN\n  host: db.example.tld\n\n  # Port\n  port: 5432\n\n  # SSL mode\n  sslmode: disable\n\n[log]\n\n  # Log output (file/console)\n  output: console\n\n  # Log file dir\n  dir: /\n\n  # Path to log file\n  file: {log:dir}/bacula_exporter.log\n\n  # Log permissions\n  perms: 600\n\n  # Default log level (debug/info/warn/error/crit)\n  level: info\n```\n\n## Development\n\n### Run environment\n\nRun development environment.\n\n```shell\ndocker-compose up -d\n```\n\nOpen Grafana (http://127.0.0.1:3000).\n\n### Build status\n\n| Artifact | Status |\n|------------|--------|\n| `docker` | [![Build Status](https://github.com/funbox/bacula_exporter/workflows/docker/badge.svg?branch=master)](https://github.com/funbox/bacula_exporter) |\n\n## Contribute\n\nIf you like Bacula Exporter, please give it a star. This will help more people know Bacula Exporter.\n\nPlease feel free to send your [pull requests](https://github.com/funbox/bacula_exporter/pulls).\n\n## License\n\nMIT\n\n[![Sponsored by FunBox](https://funbox.ru/badges/sponsored_by_funbox_centered.svg)](https://funbox.ru)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffunbox%2Fbacula_exporter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffunbox%2Fbacula_exporter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffunbox%2Fbacula_exporter/lists"}