fix: docs and minor fixes #4
Merged
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.
This pull request introduces a new Prometheus exporter for Manifest blockchain nodes and includes several enhancements, fixes, and cleanups across the codebase. The most significant changes include the addition of a detailed
README.mdfile, updates to metric names for consistency, removal of unused configuration fields, and cleanup of redundant comments in the code.Documentation Updates:
README.md: Added comprehensive documentation for the Manifest Node Exporter, including installation instructions, usage examples, global and serve flags, and a list of available metrics.Metric Name Updates:
pkg/collectors/grpc/token_count.go: Updated metric names to align with naming conventions:manifest_tokenomics_token_numbertomanifest_tokenomics_token_count.manifest_tokenomics_supply_grpc_uptomanifest_tokenomics_count_grpc_up.tests/e2e_serve_test.go: Updated test cases to reflect the new metric names.Configuration Simplifications:
pkg/config.go: Removed unusedMaxConcurrencyandMaxRetriesfields from theServeConfigstruct and their associated validations and loading logic. [1] [2]Code Cleanup:
cmd/serve.go: Updated the defaultlisten-addressflag value to0.0.0.0:2112and removed redundant comments. [1] [2]pkg/metrics_server.go: Simplified error handling inStartandShutdownmethods by removing unnecessary comments and redundant logic. [1] [2]pkg/collectors/grpc/registry.go: Cleaned up comments and removed unused code related to Prometheus collector registration. [1] [2]