{"id":18100150,"url":"https://github.com/carlocorradini/node_exporter_installer","last_synced_at":"2025-06-26T02:03:09.641Z","repository":{"id":38311865,"uuid":"488710943","full_name":"carlocorradini/node_exporter_installer","owner":"carlocorradini","description":"Node exporter installation script","archived":false,"fork":false,"pushed_at":"2024-03-11T11:27:38.000Z","size":556,"stargazers_count":19,"open_issues_count":5,"forks_count":5,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-26T02:02:55.619Z","etag":null,"topics":["automation","bash","nodeexporter","posix-sh","prometheus","script"],"latest_commit_sha":null,"homepage":"","language":"Shell","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/carlocorradini.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"carlocorradini"}},"created_at":"2022-05-04T19:00:11.000Z","updated_at":"2025-03-23T11:15:20.000Z","dependencies_parsed_at":"2024-10-31T21:13:15.364Z","dependency_job_id":null,"html_url":"https://github.com/carlocorradini/node_exporter_installer","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/carlocorradini/node_exporter_installer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/carlocorradini%2Fnode_exporter_installer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/carlocorradini%2Fnode_exporter_installer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/carlocorradini%2Fnode_exporter_installer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/carlocorradini%2Fnode_exporter_installer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/carlocorradini","download_url":"https://codeload.github.com/carlocorradini/node_exporter_installer/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/carlocorradini%2Fnode_exporter_installer/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261984644,"owners_count":23240302,"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":["automation","bash","nodeexporter","posix-sh","prometheus","script"],"created_at":"2024-10-31T21:13:09.296Z","updated_at":"2025-06-26T02:03:09.622Z","avatar_url":"https://github.com/carlocorradini.png","language":"Shell","funding_links":["https://github.com/sponsors/carlocorradini"],"categories":[],"sub_categories":[],"readme":"# [Node exporter](https://github.com/prometheus/node_exporter) installation script\n\n[![check](https://github.com/carlocorradini/node_exporter_installer/actions/workflows/check.yaml/badge.svg)](https://github.com/carlocorradini/node_exporter_installer/actions/workflows/check.yaml)\n\nInspired by [K3s](https://github.com/k3s-io/k3s) `install.sh`\n\n## Usage\n\n```sh\ncurl -sSfL https://raw.githubusercontent.com/carlocorradini/node_exporter_installer/main/install.sh | sh -\n```\n\n### Uninstall\n\n```sh\n$INSTALL_NODE_EXPORTER_BIN_DIR/node_exporter.uninstall.sh\n```\n\n## Example\n\n### Enable only os collector\n\n\u003e **Note**: The following commands result in the same behavior\n\n```sh\ncurl ... | INSTALL_NODE_EXPORTER_EXEC=\"--collector.disable-defaults --collector.os\" sh -s -\n```\n\n```sh\ncurl ... | INSTALL_NODE_EXPORTER_EXEC=\"--collector.disable-defaults\" sh -s - --collector.os\n```\n\n```sh\ncurl ... | sh -s - --collector.disable-defaults --collector.os\n```\n\n### Download a specific version without starting the service\n\n```sh\ncurl ... | INSTALL_NODE_EXPORTER_VERSION=\"v1.5.0\" INSTALL_NODE_EXPORTER_SKIP_START=\"true\" sh -\n```\n\n## Environment variables\n\n| **Name**                              | **Description**                                                                                         | **Default**                    |\n| ------------------------------------- | ------------------------------------------------------------------------------------------------------- | ------------------------------ |\n| `INSTALL_NODE_EXPORTER_SKIP_DOWNLOAD` | Skip downloading Node exporter. There must already be an executable binary at `\u003cBIN_DIR\u003e/node_exporter` | `false`                        |\n| `INSTALL_NODE_EXPORTER_FORCE_RESTART` | Force restarting Node exporter service                                                                  | `false`                        |\n| `INSTALL_NODE_EXPORTER_SKIP_ENABLE`   | Skip enabling Node exporter service at startup                                                          | `false`                        |\n| `INSTALL_NODE_EXPORTER_SKIP_START`    | Skip starting Node exporter service                                                                     | `false`                        |\n| `INSTALL_NODE_EXPORTER_SKIP_FIREWALL` | Skip firewall rules. Supported firewalls are `firewall-cmd`, `ufw` and `iptables`                       | `false`                        |\n| `INSTALL_NODE_EXPORTER_SKIP_SELINUX`  | Skip changing `SELinux` context for Node exporter binary                                                | `false`                        |\n| `INSTALL_NODE_EXPORTER_VERSION`       | Version of Node exporter to download                                                                    | `latest`                       |\n| `INSTALL_NODE_EXPORTER_BIN_DIR`       | Directory to install Node exporter binary and uninstall script                                          | `/usr/local/bin` or `/opt/bin` |\n| `INSTALL_NODE_EXPORTER_SYSTEMD_DIR`   | Directory to install systemd service files                                                              | `/etc/systemd/system`          |\n| `INSTALL_NODE_EXPORTER_EXEC`          | Node exporter arguments                                                                                 |\n\n## Contributing\n\nI would love to see your contribution :heart:\n\nSee [CONTRIBUTING](./CONTRIBUTING.md) guidelines.\n\n## License\n\nThis project is licensed under the [MIT](https://opensource.org/licenses/MIT) License. \\\nSee [LICENSE](./LICENSE) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcarlocorradini%2Fnode_exporter_installer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcarlocorradini%2Fnode_exporter_installer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcarlocorradini%2Fnode_exporter_installer/lists"}