prometheus-node-exporter-lua: Make listen IP address configurable
@champtar is already working on this.
Since Jun 2, 2024.
- Dominant language
- Makefile
- Stars
- 4.6k
- Forks
- 4k
- Avg merge
- 3d 12h
- Merged PRs (30d)
- 134
Description
Maintainer: @champtar
Description:
The init script only allows the exporter to be configured to bind to an ip address from an openwrt managed interface, this excludes interfaces configured externally, aka "unmanaged" protocol in the network config. For mesh network solutions like zerotier, ip addresses are assigned dynamically by a controller. Also an interface can have multiple ipv6 addresses configured, and some hosts might only be able to reach the node exporter from a specific address.
I propose to add another option called listen_addrs, being a list of addresses to bind to, to simplify the code, ipv6 addresses will have to be wrapped in brackets unless there's a simple way to check for valid ipv6 addresses. If this list is given, the option listen_interface should be ignored.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.