-
Notifications
You must be signed in to change notification settings - Fork 1
Monitoring of nodes using prometheus #13
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
Merged
Changes from 13 commits
Commits
Show all changes
67 commits
Select commit
Hold shift + click to select a range
701abbd
Refactor install command and enhance network configuration handling
dviejokfs 71c065f
Refactor Fabric network service methods and enhance API functionality
dviejokfs 9d87c98
Add feedback URL
dviejokfs e1c6dc6
Fix events
dviejokfs 14acb18
Initial backend implementation for metrics with prometheus
dviejokfs 69532bb
Implement custom Prometheus query endpoint and enhance metrics handling
dviejokfs e45304f
Checkpoint
dviejokfs aedee9b
Update
dviejokfs 7bfd294
Fix tests
dviejokfs a526408
Implement audit logging functionality
dviejokfs 4eb4c9f
Enhance audit logging with session ID support
dviejokfs 3e6279c
Start e2e tests
dviejokfs f490433
Update
dviejokfs da41b90
Update tests
dviejokfs 8fc33d3
Update
dviejokfs ba1fc38
Update
dviejokfs 5d83258
Update
dviejokfs c11338e
Update
dviejokfs 58cd2f6
Update
dviejokfs 7584897
Update
dviejokfs a842328
Update
dviejokfs ce4a9f4
Update
dviejokfs 6999f3c
Update
dviejokfs d65f8e2
Fix tests
dviejokfs 82a71fa
Update
dviejokfs bfaeb88
Refactor API availability checks in workflows and update Playwright c…
dviejokfs 4ce4d1e
Fix tests
dviejokfs 38772a7
Update tests
dviejokfs adf4af0
Update
dviejokfs aac03bb
Update
dviejokfs f92351c
Update
dviejokfs c7020b5
Merge e2e tests
dviejokfs 349bc81
Update
dviejokfs 837254b
Update
dviejokfs 9d492de
Update
dviejokfs 8be1594
Update
dviejokfs bbcf835
Update
dviejokfs 4d2e6d2
Add Playwright tests for creating Fabric nodes and user management
dviejokfs afb4ca1
Update
dviejokfs 5b5d780
Update
dviejokfs 704d4a8
Update
dviejokfs 50a021c
Add testnet command and organization pagination support
dviejokfs 8d0fdfd
Implement key management and Besu network creation in Go
dviejokfs 2d372fb
Enhance Besu and Fabric testnet runners with additional configurations
dviejokfs d32dd78
Enhance E2E testing and Besu node configuration
dviejokfs 330452e
Update
dviejokfs 8e349a8
ci/cd
dviejokfs 792d945
Cache build
dviejokfs 2ebf300
Update
dviejokfs 54c1039
Update
dviejokfs 936f377
ci/cd
dviejokfs 8ff7e24
ci/cd
dviejokfs 7c90de1
ci/cd
dviejokfs 012162f
ci/cd
dviejokfs 51d13f7
ci/cd
dviejokfs d36ee61
ci/cd
dviejokfs b62daf0
Enhance CI/CD workflow and implement Docker support for orderer and p…
dviejokfs 11c2374
ci/cd
dviejokfs 94ac807
Enhance e2e-tests.yaml to improve error handling in block retrieval
dviejokfs b60b47f
Refactor logging and enhance error handling in various components
dviejokfs ebfea7e
Refactor plugin management and enhance x-source handling
dviejokfs 9c9e0e6
Improve error handling and UI enhancements in plugin pages
dviejokfs 4936956
Enhance Fabric network joining process and improve plugins page layout
dviejokfs dc4d426
Update
dviejokfs a4a1b0d
Merge branch 'feat/keep-going' of https://github.com/LF-Decentralized…
dviejokfs bd9e554
Update documentation structure and enhance plugin metadata
dviejokfs 842669d
Add Prometheus status endpoint and chaincode retrieval for Fabric peers
dviejokfs 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,89 @@ | ||
name: End-to-End Tests | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
branches: | ||
- main | ||
paths-ignore: | ||
- '**/*.md' | ||
- 'docs/**' | ||
|
||
jobs: | ||
e2e-tests: | ||
name: Run E2E Tests | ||
runs-on: ubuntu-latest | ||
|
||
services: | ||
# Mailhog for email testing | ||
mailhog: | ||
image: mailhog/mailhog | ||
ports: | ||
- 1025:1025 # SMTP server | ||
- 8025:8025 # Web interface | ||
|
||
env: | ||
API_BASE_URL: http://localhost:8100/api/v1 | ||
CYPRESS_BASE_URL: http://localhost:8100 | ||
CYPRESS_API_URL: http://localhost:8100/api/v1 | ||
CHAINLAUNCH_USER: admin | ||
CHAINLAUNCH_PASSWORD: admin123 | ||
API_USERNAME: admin | ||
API_PASSWORD: admin123 | ||
PLAYWRIGHT_USER: admin | ||
PLAYWRIGHT_PASSWORD: admin123 | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set up Go | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version: '1.23.4' | ||
cache: true | ||
|
||
- name: Setup Bun | ||
uses: oven-sh/setup-bun@v1 | ||
|
||
- name: Install dependencies | ||
run: | | ||
go mod download | ||
sudo apt-get update | ||
sudo apt-get install -y build-essential | ||
|
||
- name: Build the application | ||
run: | | ||
go build -v -o chainlaunch ./main.go | ||
chmod +x chainlaunch | ||
|
||
- name: Start the application | ||
run: | | ||
# Create test data directory | ||
mkdir -p testdata | ||
|
||
# Start the application in the background | ||
./chainlaunch serve --db data.db & | ||
sleep 10 # Wait for the application to start | ||
|
||
- name: Run API tests | ||
run: | | ||
go test -v ./e2e/... | ||
|
||
- name: Run UI tests | ||
run: | | ||
cd web | ||
bun install | ||
bun run test:e2e | ||
|
||
- name: Upload test results | ||
if: always() | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: test-results | ||
path: | | ||
web/cypress/videos | ||
web/cypress/screenshots | ||
test-results.xml | ||
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.