-
Notifications
You must be signed in to change notification settings - Fork 668
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
tmpnet
: Write config enabling metrics collection by prometheus
#2764
Closed
Conversation
This file contains 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
5 tasks
f9c51f9
to
3058261
Compare
812405e
to
7b96e9f
Compare
3058261
to
fdd36d2
Compare
7b96e9f
to
ad1de96
Compare
fdd36d2
to
7e7a61a
Compare
7e7a61a
to
b23daef
Compare
a5cb88c
to
de22c95
Compare
b779e0a
to
99ac7d6
Compare
Previously, tmpnet networks were only identified by their path on disk. In anticipation of centralizing metrics collection for temporary networks, tmpnet will now generate a UUID for each temporary network to ensure a unique identifier across execution environments.
0971832
to
779044e
Compare
779044e
to
88c226b
Compare
88c226b
to
38f3d0d
Compare
Temporary networks used for testing previously lacked an easy way to enable metrics collection. This PR ensures that prometheus has what it needs to scrape the metrics endpoints of a temporary network and enables scraping of CI jobs using temporary networks. - Write prometheus configuration to ~/.tmpnet/prometheus/file_sd_configs for each node on startup and remove it on shutdown. This enables scraping of all nodes in a network no matter when they are started. Ref: https://prometheus.io/docs/guides/file-sd/ - Add script to scrape temporary networks with agent-mode prometheus. Works locally and in CI
38f3d0d
to
f83d77a
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Why this should be merged
Temporary networks used for testing previously lacked an easy way to enable metrics collection. This PR ensures that prometheus has what it needs to scrape the metrics endpoints of a temporary network.
How this works
How this was tested
Locally tested.
TODO
tmpnet
: Add a UUID to temporary networks to support metrics collection #2763