{"id":36454999,"url":"https://github.com/crisu1710/foreman-exporter","last_synced_at":"2026-01-11T23:02:13.345Z","repository":{"id":41827945,"uuid":"484781454","full_name":"Crisu1710/foreman-exporter","owner":"Crisu1710","description":null,"archived":false,"fork":false,"pushed_at":"2023-09-04T14:31:47.000Z","size":46,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-06-21T12:48:05.361Z","etag":null,"topics":["foreman","prometheus-exporter","underdevelopment"],"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/Crisu1710.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-04-23T15:15:04.000Z","updated_at":"2023-09-04T14:33:50.000Z","dependencies_parsed_at":"2024-06-21T11:53:15.926Z","dependency_job_id":null,"html_url":"https://github.com/Crisu1710/foreman-exporter","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/Crisu1710/foreman-exporter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Crisu1710%2Fforeman-exporter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Crisu1710%2Fforeman-exporter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Crisu1710%2Fforeman-exporter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Crisu1710%2Fforeman-exporter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Crisu1710","download_url":"https://codeload.github.com/Crisu1710/foreman-exporter/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Crisu1710%2Fforeman-exporter/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28326166,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-11T22:11:01.104Z","status":"ssl_error","status_checked_at":"2026-01-11T22:10:58.990Z","response_time":60,"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":["foreman","prometheus-exporter","underdevelopment"],"created_at":"2026-01-11T23:02:13.125Z","updated_at":"2026-01-11T23:02:13.326Z","avatar_url":"https://github.com/Crisu1710.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Foreman Prometheus Exporter (!!! under development !!!)\n\nThis is a Prometheus exporter for [Foreman](https://www.theforeman.org).\n\n## Prerequisites\n\n* [Go](https://golang.org/doc/)\n\n## Installation\n\n### From sources\n\n```bash\n$ git clone https://github.com/Crisu1710/foreman-exporter.git\n$ cd foreman-exporter\n```\n\nBuild the binary:\n```bash\n$ RUN CGO_ENABLE=0 GOOS=linux GOARCH=amd64 go build -o foreman-exporter .\n```\n\n## Usage\n\nTo run the exporter, type the following commands:\n\n\n```bash\n$ export FOREMAN_HOST=\"foreman.example.com\" #Set Foremen host\n$ echo -n USER:PASSWORD | base64\n$ export FOREMAN_PW=\"Basic THE_OUTPUT_FROM_ECHO\" #Password for the API User\n```\nBinary:\n```bash\n$ ./foreman_exporter\n```\n\nSources:\n```bash\n$ go run main.go\n```\n\n## Using K8s\n\n```bash\napiVersion: apps/v1\nkind: Deployment\nmetadata:\n  name: foreman-exporter-deploy\n  labels:\n    app.kubernetes.io/name: foreman-exporter\n    app.kubernetes.io/version: \"0.1.0\"\nspec:\n  replicas: 1\n  selector:\n    matchLabels:\n      app: foreman-exporter\n  template:\n    metadata:\n      labels:\n        app: foreman-exporter\n      annotations:\n        prometheus.io/scrape: \"true\"\n        prometheus.io/port: \"2112\"\n    spec:\n      containers:\n        - name: foreman-exporter\n          image: ghcr.io/crisu1710/foreman_exporter:0.1.0\n          env:\n            - name: FOREMAN_HOST\n              value: foreman.example.com\n            - name: FOREMAN_PW\n              value: \"Basic THE_OUTPUT_FROM_ECHO\" #echo -n USER:PASSWORD | base64\n          ports:\n            - containerPort: 2112\n              name: metrics\n```\n\n## Available Prometheus metrics\n\n|            Metric name            | Description                                                     |\n|:---------------------------------:|-----------------------------------------------------------------|\n|     foreman_puppet_last_report    | Timestamp of the last puppet run of each host                   |   \n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcrisu1710%2Fforeman-exporter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcrisu1710%2Fforeman-exporter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcrisu1710%2Fforeman-exporter/lists"}