{"id":21017074,"url":"https://github.com/cloudalchemy/ansible-systemd-exporter","last_synced_at":"2025-05-15T05:33:31.682Z","repository":{"id":41320738,"uuid":"300209366","full_name":"cloudalchemy/ansible-systemd-exporter","owner":"cloudalchemy","description":"Deploy https://github.com/povilasv/systemd_exporter","archived":false,"fork":false,"pushed_at":"2023-09-20T14:22:41.000Z","size":40,"stargazers_count":6,"open_issues_count":4,"forks_count":6,"subscribers_count":1,"default_branch":"master","last_synced_at":"2023-09-21T04:01:04.455Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","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/cloudalchemy.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","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-10-01T08:45:05.000Z","updated_at":"2023-09-24T17:19:51.781Z","dependencies_parsed_at":"2023-09-24T17:34:25.441Z","dependency_job_id":null,"html_url":"https://github.com/cloudalchemy/ansible-systemd-exporter","commit_stats":null,"previous_names":[],"tags_count":3,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudalchemy%2Fansible-systemd-exporter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudalchemy%2Fansible-systemd-exporter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudalchemy%2Fansible-systemd-exporter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudalchemy%2Fansible-systemd-exporter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cloudalchemy","download_url":"https://codeload.github.com/cloudalchemy/ansible-systemd-exporter/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225332349,"owners_count":17457710,"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":[],"created_at":"2024-11-19T10:17:46.957Z","updated_at":"2024-11-19T10:17:47.567Z","avatar_url":"https://github.com/cloudalchemy.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp\u003e\u003cimg src=\"https://brand.systemd.io/assets/png/systemd-logomark.png\" alt=\"systemd logo\" title=\"systemd\" align=\"right\" height=\"60\" /\u003e\u003c/p\u003e\n\n# Ansible Role: systemd exporter\n\n[![CircleCI](https://circleci.com/gh/cloudalchemy/ansible-systemd-exporter.svg?style=svg)](https://circleci.com/gh/cloudalchemy/ansible-systemd-exporter)\n[![License](https://img.shields.io/badge/license-MIT%20License-brightgreen.svg)](https://opensource.org/licenses/MIT)\n[![Ansible Role](https://img.shields.io/badge/ansible%20role-cloudalchemy.systemd_exporter-blue.svg)](https://galaxy.ansible.com/cloudalchemy/systemd_exporter/)\n[![GitHub tag](https://img.shields.io/github/tag/cloudalchemy/ansible-systemd-exporter.svg)](https://github.com/cloudalchemy/ansible-systemd-exporter/tags)\n\n## Description\n\nDeploy prometheus [systemd exporter](https://github.com/povilasv/systemd_exporter) using ansible.\n\n## Requirements\n\n- Ansible \u003e= 2.7 (It might work on previous versions, but we cannot guarantee it)\n- gnu-tar on Mac deployer host (`brew install gnu-tar`)\n\n## Role Variables\n\nAll variables which can be overridden are stored in [defaults/main.yml](defaults/main.yml) file as well as in table below.\n\n| Name           | Default Value | Description                        |\n| -------------- | ------------- | -----------------------------------|\n| `systemd_exporter_version` | 0.4.0 | SystemD exporter package version. Also accepts latest as parameter. |\n| `systemd_exporter_binary_local_dir` | \"\" | Allows to use local packages instead of ones distributed on github. As parameter it takes a directory where `systemd_exporter` binary is stored on host on which ansible is ran. This overrides `systemd_exporter_version` parameter |\n| `systemd_exporter_web_listen_address` | \"0.0.0.0:9558\" | Address on which systemd exporter will listen |\n| `systemd_exporter_enable_restart_count` | false | Enables service restart count metrics. This feature only works with systemd 235 and above |\n| `systemd_exporter_enable_ip_accounting` | false | Enables service ip accounting metrics. This feature only works with systemd 235 and above |\n| `systemd_exporter_enable_file_descriptor_size` | false | Enables file descriptor size metrics. This feature will cause exporter to run as root as it needs access to /proc/X/fd |\n| `systemd_exporter_unit_allowlist` | \"\" | Include some systemd units. Expects a regex. More in https://github.com/povilasv/systemd_exporter#configuration |\n| `systemd_exporter_unit_denylist` | \"\" | Exclude some systemd units. Expects a regex. More in https://github.com/povilasv/systemd_exporter#configuration |\n\n## Example\n\n### Playbook\n\nUse it in a playbook as follows:\n```yaml\n- hosts: all\n  roles:\n    - cloudalchemy.systemd_exporter\n```\n\n## Local Testing\n\nThe preferred way of locally testing the role is to use Docker and [molecule](https://github.com/ansible-community/molecule) (v3.x). You will have to install Docker on your system. See \"Get started\" for a Docker package suitable to for your system. Running your tests is as simple as executing `molecule test`.\n\n## Continuous Intergation\n\nCombining molecule and circle CI allows us to test how new PRs will behave when used with multiple ansible versions and multiple operating systems. This also allows use to create test scenarios for different role configurations. As a result we have a quite large test matrix which can take more time than local testing, so please be patient.\n\n## Contributing\n\nSee [contributor guideline](CONTRIBUTING.md).\n\n## Troubleshooting\n\nSee [troubleshooting](TROUBLESHOOTING.md).\n\n## License\n\nThis project is licensed under MIT License. See [LICENSE](/LICENSE) for more details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcloudalchemy%2Fansible-systemd-exporter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcloudalchemy%2Fansible-systemd-exporter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcloudalchemy%2Fansible-systemd-exporter/lists"}