-
Notifications
You must be signed in to change notification settings - Fork 0
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
Fix deploying latency monitor #2
Conversation
WalkthroughWalkthroughThe pull request introduces updates to the Changes
Assessment against linked issues
Possibly related issues
Possibly related PRs
Tip OpenAI O1 model for chat
Recent review detailsConfiguration used: CodeRabbit UI Files selected for processing (1)
Additional comments not posted (11)
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
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.
Actionable comments posted: 0
Outside diff range, codebase verification and nitpick comments (1)
.env.sample (1)
7-7
: LGTM! The change enhances observability.The change to the
UHTTP_LM_PUSH_GATEWAY
variable is approved.Pushing latency monitoring data to a Prometheus push gateway is a good practice for enhancing observability. It allows you to collect and analyze metrics from your application, which can help in identifying performance bottlenecks and optimizing the application.
A few additional suggestions:
- Consider setting up alerts based on the latency metrics to proactively detect and resolve performance issues.
- Ensure that the Prometheus server is configured to scrape data from the push gateway at an appropriate interval.
- Regularly monitor the disk usage of the Prometheus server to avoid running out of storage space due to the accumulation of metrics data over time.
- Explore visualizing the latency metrics using a tool like Grafana to gain better insights into the application's performance.
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.
Actionable comments posted: 1
Outside diff range, codebase verification and nitpick comments (3)
.github/workflows/merge.yaml (1)
1-45
: LGTM!The workflow configuration looks good. It defines a workflow for merging pull requests, triggered when a pull request is closed and merged into the main branch. The workflow runs on a self-hosted runner, checks out the repository, sets up Node.js and GCP, and builds and pushes a Docker image.
The use of reusable actions from the
hoprnet/hopr-workflows
repository is a good practice for maintaining consistency across workflows.The static analysis tool flagged the self-hosted runner label as unknown. If this is a custom label for a self-hosted runner, consider adding it to the
actionlint.yaml
config file to suppress the warning:# actionlint.yaml runner_labels: - self-hosted-hoprnet-smallTools
actionlint
17-17: label "self-hosted-hoprnet-small" is unknown. available labels are "windows-latest", "windows-latest-8-cores", "windows-2022", "windows-2019", "ubuntu-latest", "ubuntu-latest-4-cores", "ubuntu-latest-8-cores", "ubuntu-latest-16-cores", "ubuntu-24.04", "ubuntu-22.04", "ubuntu-20.04", "macos-latest", "macos-latest-xl", "macos-latest-xlarge", "macos-latest-large", "macos-14-xl", "macos-14-xlarge", "macos-14-large", "macos-14", "macos-14.0", "macos-13-xl", "macos-13-xlarge", "macos-13-large", "macos-13", "macos-13.0", "macos-12-xl", "macos-12-xlarge", "macos-12-large", "macos-12", "macos-12.0", "macos-11", "macos-11.0", "self-hosted", "x64", "arm", "arm64", "linux", "macos", "windows". if it is a custom label for self-hosted runner, set list of labels in actionlint.yaml config file
(runner-label)
.github/workflows/build.yaml (1)
17-30
: Workflow configuration changes look good!The changes to the workflow configuration improve the clarity and functionality by explicitly defining the environment setup steps, such as checking out the repository, setting up Node.js, and setting up GCP. This enhances the overall build process.
The static analysis tool flagged the self-hosted runner label as unknown. If this is a custom label for a self-hosted runner, consider adding it to the
actionlint.yaml
config file to suppress the warning:# actionlint.yaml runner_labels: - self-hosted-hoprnet-small.github/workflows/release.yaml (1)
1-108
: Release workflow configuration looks good!The new workflow configuration defines a comprehensive process for closing a release, including building the project, running tests, creating a release, pushing a Docker image, bumping the version, creating a pull request, and notifying about the new release. The use of reusable actions from the
hoprnet/hopr-workflows
repository is a good practice for maintaining consistency across workflows.The static analysis tool flagged the self-hosted runner label as unknown. If this is a custom label for a self-hosted runner, consider adding it to the
actionlint.yaml
config file to suppress the warning:# actionlint.yaml runner_labels: - self-hosted-hoprnet-smallTools
actionlint
23-23: label "self-hosted-hoprnet-small" is unknown. available labels are "windows-latest", "windows-latest-8-cores", "windows-2022", "windows-2019", "ubuntu-latest", "ubuntu-latest-4-cores", "ubuntu-latest-8-cores", "ubuntu-latest-16-cores", "ubuntu-24.04", "ubuntu-22.04", "ubuntu-20.04", "macos-latest", "macos-latest-xl", "macos-latest-xlarge", "macos-latest-large", "macos-14-xl", "macos-14-xlarge", "macos-14-large", "macos-14", "macos-14.0", "macos-13-xl", "macos-13-xlarge", "macos-13-large", "macos-13", "macos-13.0", "macos-12-xl", "macos-12-xlarge", "macos-12-large", "macos-12", "macos-12.0", "macos-11", "macos-11.0", "self-hosted", "x64", "arm", "arm64", "linux", "macos", "windows". if it is a custom label for self-hosted runner, set list of labels in actionlint.yaml config file
(runner-label)
60-60: shellcheck reported issue in this script: SC2086:info:2:46: Double quote to prevent globbing and word splitting
(shellcheck)
80-80: shellcheck reported issue in this script: SC2086:info:3:40: Double quote to prevent globbing and word splitting
(shellcheck)
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (3)
- .github/workflows/build.yaml (2 hunks)
- .github/workflows/merge.yaml (1 hunks)
- .github/workflows/release.yaml (1 hunks)
Additional context used
actionlint
.github/workflows/merge.yaml
17-17: label "self-hosted-hoprnet-small" is unknown. available labels are "windows-latest", "windows-latest-8-cores", "windows-2022", "windows-2019", "ubuntu-latest", "ubuntu-latest-4-cores", "ubuntu-latest-8-cores", "ubuntu-latest-16-cores", "ubuntu-24.04", "ubuntu-22.04", "ubuntu-20.04", "macos-latest", "macos-latest-xl", "macos-latest-xlarge", "macos-latest-large", "macos-14-xl", "macos-14-xlarge", "macos-14-large", "macos-14", "macos-14.0", "macos-13-xl", "macos-13-xlarge", "macos-13-large", "macos-13", "macos-13.0", "macos-12-xl", "macos-12-xlarge", "macos-12-large", "macos-12", "macos-12.0", "macos-11", "macos-11.0", "self-hosted", "x64", "arm", "arm64", "linux", "macos", "windows". if it is a custom label for self-hosted runner, set list of labels in actionlint.yaml config file
(runner-label)
.github/workflows/build.yaml
14-14: label "self-hosted-hoprnet-small" is unknown. available labels are "windows-latest", "windows-latest-8-cores", "windows-2022", "windows-2019", "ubuntu-latest", "ubuntu-latest-4-cores", "ubuntu-latest-8-cores", "ubuntu-latest-16-cores", "ubuntu-24.04", "ubuntu-22.04", "ubuntu-20.04", "macos-latest", "macos-latest-xl", "macos-latest-xlarge", "macos-latest-large", "macos-14-xl", "macos-14-xlarge", "macos-14-large", "macos-14", "macos-14.0", "macos-13-xl", "macos-13-xlarge", "macos-13-large", "macos-13", "macos-13.0", "macos-12-xl", "macos-12-xlarge", "macos-12-large", "macos-12", "macos-12.0", "macos-11", "macos-11.0", "self-hosted", "x64", "arm", "arm64", "linux", "macos", "windows". if it is a custom label for self-hosted runner, set list of labels in actionlint.yaml config file
(runner-label)
.github/workflows/release.yaml
23-23: label "self-hosted-hoprnet-small" is unknown. available labels are "windows-latest", "windows-latest-8-cores", "windows-2022", "windows-2019", "ubuntu-latest", "ubuntu-latest-4-cores", "ubuntu-latest-8-cores", "ubuntu-latest-16-cores", "ubuntu-24.04", "ubuntu-22.04", "ubuntu-20.04", "macos-latest", "macos-latest-xl", "macos-latest-xlarge", "macos-latest-large", "macos-14-xl", "macos-14-xlarge", "macos-14-large", "macos-14", "macos-14.0", "macos-13-xl", "macos-13-xlarge", "macos-13-large", "macos-13", "macos-13.0", "macos-12-xl", "macos-12-xlarge", "macos-12-large", "macos-12", "macos-12.0", "macos-11", "macos-11.0", "self-hosted", "x64", "arm", "arm64", "linux", "macos", "windows". if it is a custom label for self-hosted runner, set list of labels in actionlint.yaml config file
(runner-label)
60-60: shellcheck reported issue in this script: SC2086:info:2:46: Double quote to prevent globbing and word splitting
(shellcheck)
80-80: shellcheck reported issue in this script: SC2086:info:3:40: Double quote to prevent globbing and word splitting
(shellcheck)
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.
Tested it and it works great.
Unfortunately we cannot really print the payload pushed to the push gateway with a reasonable effort.
…prnet/uHTTP-latency-monitor into ausias/deploy-latency-monitor
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.
Great
Summary by CodeRabbit
New Features
.prettierignore
file to exclude sensitive files from automated formatting.Improvements