-
Notifications
You must be signed in to change notification settings - Fork 3
Improve Documentation and Add Configuration Flexibility #1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
## Configuration Options The script can be configured using command-line arguments, environment variables, or hardcoded default values. The priority is as follows: 1. **Command-Line Arguments**: Take the highest precedence. 2. **Environment Variables**: Used if no command-line argument is provided for that option. 3. **Hardcoded Defaults**: Used if neither command-line arguments nor environment variables are provided. ### Command-Line Arguments | Argument | Description | Example | |-------------------|------------------------------|----------| | `--fulcrum-stats-url` | Fulcrum stats URL | `http://localhost:8080/stats` | | `--metrics-addr` | Metrics address | `0.0.0.0` | | `--metrics-port` | Metrics port | `8080` | | `--retries` | Number of retries | `3` | | `--timeout` | Timeout in seconds | `20` | | `--log-level` | Log level | `DEBUG` | ### Environment Variables | Variable | Description | Default | |-------------------|------------------------------|----------| | `FULCRUM_STATS_URL` | Fulcrum stats URL | `http://127.0.0.1:8080/stats` | | `METRICS_ADDR` | Metrics address | `""` (any address) | | `METRICS_PORT` | Metrics port | `50039` | | `RETRIES` | Number of retries | `5` | | `TIMEOUT` | Timeout in seconds | `30` | | `LOG_LEVEL` | Log level | `INFO` | ### Hardcoded Defaults If neither command-line arguments nor environment variables are provided, the script falls back to hardcoded default values. These are specified in the script and serve as the last-resort configuration options. ### Example Usage To run the script with custom settings: ```bash python fulcrum-monitor.py --fulcrum-stats-url http://localhost:8080/stats --metrics-addr 0.0.0.0 --metrics-port 8080 --retries 3 --timeout 20 --log-level DEBUG
The changes look good, but I'm not sure why you assume this repository is abandoned. Multiple people and I run this code without issue and there aren't any open issues here. I'd be happy to merge your PR if you remove the part suggesting that this repository is abandoned. Also, if you want to fork it, no need to credit me in the readme, the existing copyright notices / git log are fine. |
Hello Axel! I am happy to hear the repo is alive. In that case no fork is needed. I took out that part.- |
There still is |
### Quick Start | ||
1. Clone this repository. | ||
``` | ||
git clone https://github.com/federicociro/fulcrum-prometheus-exporter.git |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This also needs to be changed
We welcome contributions from the community. Please read the [contribution guidelines](CONTRIBUTING.md) for more information. | ||
|
||
#### License | ||
This project is licensed under the [BSD 3-Clause License](https://github.com/federicociro/fulcrum-prometheus-exporter/blob/master/LICENSE). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we somehow use relative links for these so it doesn't matter which repo? It seems to work for other markdown files.
Description:
This pull request aims to make several improvements to the repository:
Changes:
Why This Pull Request is Needed:
Checklist:
Please review the changes and let me know if further modifications are required.