-
Notifications
You must be signed in to change notification settings - Fork 1
feat: improve validation and error handling #27
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 all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
90a91ec
fix: fixed the config file generation error and ignored --config flag…
segunjkf b419db9
wip: test push to dockerhub
segunjkf bcab1a3
chore: revert test push
segunjkf cb32e12
feat: Update README with usage instructions and configuration options
segunjkf 72558fb
chore(readme): fix readme misconfig
segunjkf 4db5326
docs: more docs
segunjkf 4dc81fb
feat: enable cadvisor
segunjkf ecaf099
wip: test push
segunjkf 76d2d91
wip(revert): test push
segunjkf 6babf1a
comment fixes
segunjkf 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 |
|---|---|---|
|
|
@@ -4,7 +4,7 @@ | |
| </a> | ||
| </p> | ||
|
|
||
| <h1 align="center">Blocks</h1> | ||
| <h1 align="center">BlocksOp Network</h1> | ||
|
|
||
| - [Summary](#summary) | ||
| - [Language](#language) | ||
|
|
@@ -13,7 +13,96 @@ | |
|
|
||
| ## Summary | ||
|
|
||
| Node Monitoring Platform for blockchain nodes | ||
| An All-in-One Web3 Observability tooling that collects metrics and logs from blockchain nodes and related infrastructure. | ||
|
|
||
| ## Usage | ||
|
|
||
| Telescope can be configured either through command line flags or a YAML configuration file. | ||
|
|
||
| Using Command Line Flags | ||
| Basic usage with metrics enabled: | ||
|
|
||
| ```bash | ||
| agent \ | ||
| --metrics \ | ||
| --network=ethereum \ | ||
| --project-id=my-project \ | ||
| --project-name=my-name \ | ||
| --telescope-username=user \ | ||
| --telescope-password=pass \ | ||
| --remote-write-url=https://metrics.example.com | ||
| ``` | ||
|
|
||
| Enable both metrics and logs: | ||
|
|
||
| ```bash | ||
| agent \ | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. the binary name should be telescope |
||
| --metrics \ | ||
| --enable-logs \ | ||
| --network=ethereum \ | ||
| --project-id=my-project \ | ||
| --project-name=my-name \ | ||
| --telescope-username=user \ | ||
| --telescope-password=pass \ | ||
| --remote-write-url=https://metrics.example.com \ | ||
| --logs-sink-url=https://logs.example.com \ | ||
| --telescope-loki-username=loki-user \ | ||
| --telescope-loki-password=loki-pass | ||
| ``` | ||
|
|
||
| #### Using Configuration File | ||
|
|
||
| Create a YAML configuration file and run: | ||
|
|
||
| ```bash | ||
| agent --config-file=telescope_config.yaml | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. please update the binary name here as well |
||
| ``` | ||
|
|
||
| Example configuration file: | ||
|
|
||
| ```yaml | ||
| server: | ||
| log_level: info | ||
| metrics: | ||
| global: | ||
| scrape_interval: 15s | ||
| external_labels: | ||
| project_id: my-project | ||
| project_name: my-name | ||
| remote_write: | ||
| - url: https://metrics.example.com | ||
| basic_auth: | ||
| username: user | ||
| password: pass | ||
| wal_directory: /tmp/telescope | ||
| configs: | ||
| - name: my-name_ethereum_metrics | ||
| host_filter: false | ||
| scrape_configs: | ||
| - job_name: ethereum | ||
| static_configs: | ||
| - targets: ["localhost:8545"] | ||
| logs: | ||
| configs: | ||
| - name: telescope_logs | ||
| clients: | ||
| - url: https://logs.example.com | ||
| basic_auth: | ||
| username: loki-user | ||
| password: loki-pass | ||
| external_labels: | ||
| project_id: my-project | ||
| project_name: my-name | ||
| positions: | ||
| filename: /tmp/telescope_logs | ||
| integrations: | ||
| agent: | ||
| enabled: false | ||
| node_exporter: | ||
| enabled: true | ||
| ``` | ||
|
|
||
|
|
||
|
|
||
| ## Language | ||
| - Golang | ||
|
|
||
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.
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.
Telescope