{"id":20357874,"url":"https://github.com/gandi/xenlight_exporter","last_synced_at":"2026-03-13T11:33:04.770Z","repository":{"id":49208901,"uuid":"194627309","full_name":"Gandi/xenlight_exporter","owner":"Gandi","description":"Prometheus exporter for Xen using xenlight library","archived":false,"fork":false,"pushed_at":"2021-06-23T14:26:36.000Z","size":30,"stargazers_count":5,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-12T03:14:52.654Z","etag":null,"topics":["prometheus-exporter","xen"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Gandi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-07-01T08:03:12.000Z","updated_at":"2021-09-25T21:09:01.000Z","dependencies_parsed_at":"2022-08-28T10:21:05.441Z","dependency_job_id":null,"html_url":"https://github.com/Gandi/xenlight_exporter","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Gandi%2Fxenlight_exporter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Gandi%2Fxenlight_exporter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Gandi%2Fxenlight_exporter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Gandi%2Fxenlight_exporter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Gandi","download_url":"https://codeload.github.com/Gandi/xenlight_exporter/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248510001,"owners_count":21116130,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["prometheus-exporter","xen"],"created_at":"2024-11-14T23:24:18.443Z","updated_at":"2026-03-13T11:33:04.729Z","avatar_url":"https://github.com/Gandi.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Xenlight Exporter\nPrometheus exporter for [xen](https://xenproject.org/) using `libxl` go bindings.\n\n## Installation\nYou can build the latest version using Go v1.11+ via `go get`:\n```\ngo get -u github.com/Gandi/xenlight_exporter\n```\n\nYou need `xen` headers as well as `yajl` headers to be able to compile xenlight go\nbindings\n\n## Dockerfile\nYou can build the binary on an arbitrary machine using the dockerfile. \n```\ndocker build -t xenlight-exporter .\n```\n\nTo build it for a xen version other than 4.14 you have to replace the dnf package in the dockerfile and update the `go.mod` file.\n```\ngo get xenbits.xenproject.org/git-http/xen.git/tools/golang/xenlight@RELEASE-4.14.0\n```\n\n## Usage\n\n```\nusage: xenlight_exporter [\u003cflags\u003e]\n\nFlags:\n  -h, --help                Show context-sensitive help (also try --help-long and --help-man).\n      --collector.domain.show-vcpus-details\n                            Enable the collection of per-vcpu time\n      --collector.domain    Enable the domain collector (default: enabled).\n      --collector.physical  Enable the physical collector (default: enabled).\n      --collector.version   Enable the version collector (default: enabled).\n      --web.listen-address=\":9603\"\n                            Address on which to expose metrics and web interface.\n      --web.telemetry-path=\"/metrics\"\n                            Path under which to expose metrics.\n      --log.level=\"info\"    Only log messages with the given severity or above. Valid levels: [debug, info, warn, error, fatal]\n      --log.format=\"logger:stderr\"\n                            Set the log target and format. Example: \"logger:syslog?appname=bob\u0026local=7\" or \"logger:stdout?json=true\"\n      --version             Show application version.\n```\n\n## Notes about golang bindings of `libxl`\n\nThe Go bindings are expected to be imported (according to Xen makefiles) using\nthe following import path: `golang.xenproject.org/xenlight`. However the domain\n`golang.xenproject.org` doesn't exists (thus not allowing the use of Go modules)\nso I chose to import the bindings from their official repository.\n\nWould the situation evolve and the Xen project provide an universally usable import path,\nI will reconsider this choice and switch to its official import path.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgandi%2Fxenlight_exporter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgandi%2Fxenlight_exporter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgandi%2Fxenlight_exporter/lists"}