Skip to content
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

Implement servername env and random generator and emit such metric #95

Merged
merged 11 commits into from
Apr 2, 2024

Conversation

pablomendezroyo
Copy link
Contributor

@pablomendezroyo pablomendezroyo commented Apr 1, 2024

User would be allowed to set the server name desired for its instance so its human readable (not like the tor instance ...onion:9090). This parameter can be set throug the package config env SERVER_NAME.

If no SERVER_NAME is defined then it will be created determinastically a random name using as seed the tor instance and the lib unique-names-generator

Furthermore, this servername will be posted in the dappmanager package info view

There will be exposed a new metric containing the servername and tor instance as labels

@pablomendezroyo pablomendezroyo changed the title Implement servername env and random generator Implement servername env and random generator and emit such metric Apr 1, 2024
@pablomendezroyo
Copy link
Contributor Author

"labels": {
"job": "api-ui"
},
"targets": ["api-ui.ethical-metrics.dappnode:9090"]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why send the server name metric to DMS?

Copy link
Contributor Author

@pablomendezroyo pablomendezroyo Apr 2, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

to allow easy data filtering by server name label, and not only tor instance

@pablomendezroyo pablomendezroyo merged commit c3f95c0 into main Apr 2, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants