-
Notifications
You must be signed in to change notification settings - Fork 42
Add SHIP Status Dashboard component-monitor deployment #920
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
Merged
rioliu-rh
merged 4 commits into
openshift:master
from
rioliu-rh:add-ship-status-component-monitor
Feb 13, 2026
Merged
Changes from 1 commit
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
d91c037
Add SHIP Status Dashboard component-monitor deployment
rioliu-rh dc7b71a
Update build script to extract binary from container image
rioliu-rh 1264f88
Run component-monitor as a container via podman
rioliu-rh a8032f9
Run component-monitor container as root
rioliu-rh File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,25 @@ | ||
| #!/bin/bash | ||
| # Build the SHIP Status Dashboard component-monitor binary from source | ||
| # and install it to /usr/local/bin (requires sudo). | ||
|
|
||
| set -euo pipefail | ||
|
|
||
| REPO_URL="https://github.com/openshift-eng/ship-status-dash.git" | ||
| CLONE_DIR=$(mktemp -d) | ||
| INSTALL_PATH="/usr/local/bin/component-monitor" | ||
|
|
||
| trap "rm -rf ${CLONE_DIR}" EXIT | ||
|
|
||
| echo "==> Cloning ship-status-dash into temp directory..." | ||
| git clone --depth 1 "${REPO_URL}" "${CLONE_DIR}" | ||
|
|
||
| echo "==> Building component-monitor binary..." | ||
| cd "${CLONE_DIR}" | ||
| go build -mod=vendor -o component-monitor ./cmd/component-monitor | ||
|
|
||
| echo "==> Installing to ${INSTALL_PATH} (requires sudo)..." | ||
| sudo install -m 0755 component-monitor "${INSTALL_PATH}" | ||
|
|
||
| echo "==> Installed successfully:" | ||
| ls -lh "${INSTALL_PATH}" | ||
| component-monitor --help 2>&1 | head -1 || true | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| frequency: 30s | ||
| components: | ||
| - component_slug: "errata-reliability" | ||
| sub_component_slug: "mcp-server" | ||
| http_monitor: | ||
| url: "http://10.0.76.71:8000/health" | ||
| code: 200 | ||
| retry_after: 5s | ||
| severity: "Down" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,28 @@ | ||
| [Unit] | ||
| Description=SHIP Status Dashboard Component Monitor | ||
| After=network-online.target | ||
| Wants=network-online.target | ||
|
|
||
| [Service] | ||
| Type=simple | ||
|
|
||
| # IMPORTANT: Replace 'cloud-user' with your actual username on the VM | ||
| User=cloud-user | ||
|
|
||
| WorkingDirectory=/home/cloud-user/release-tests/deployment/component-monitor | ||
|
|
||
| ExecStart=/usr/local/bin/component-monitor \ | ||
| --config-path=/home/cloud-user/release-tests/deployment/component-monitor/config.yaml \ | ||
| --dashboard-url=https://protected.ship-status.ci.openshift.org \ | ||
| --name=ert-component-monitor \ | ||
| --report-auth-token-file=/etc/component-monitor/token.txt | ||
|
|
||
| Restart=always | ||
| RestartSec=10 | ||
|
|
||
| StandardOutput=journal | ||
| StandardError=journal | ||
| SyslogIdentifier=ship-status-component-monitor | ||
|
|
||
| [Install] | ||
| WantedBy=multi-user.target |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
The component-monitor is available as a public image at: quay.io. The latest tag is automatically updated whenever a change is made.
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.
that's great, I can extract the latest binary from the image, don't have to build it from the source code
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.
The binary in the container image is dynamically linked and requires GLIBC_2.32, but RHEL8 ships with GLIBC 2.28. The binary was likely built on a newer base image.
I have Go 1.24.6 installed on RHEL8 vm, seems like I have to rollback image based logic
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.
I will update the service file to launch it in container directly. so this file is not needed