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

Store host label information in the metadata database #13441

Merged
merged 4 commits into from
Jul 28, 2022

Conversation

stelfrag
Copy link
Collaborator

Summary

Currently we do not store the host label information in the database. A new table host_label is added to store the information.
The host labels stored will be used to properly populate the host structure for archived hosts (in a followup PR)

Test Plan
  • After applying this PR, notice a new table host_label in netdata-meta.db. It will contain information for the localhost and also any children

Add function to store host labels
Cleanup old host labels
Remove the host label info if the host is deleted
@stelfrag stelfrag marked this pull request as ready for review July 27, 2022 14:12
@github-actions github-actions bot added area/collectors Everything related to data collection area/database collectors/plugins.d labels Jul 27, 2022
@stelfrag stelfrag requested a review from MrZammler July 28, 2022 13:54
@stelfrag stelfrag merged commit 9a6fd63 into netdata:master Jul 28, 2022
@stelfrag stelfrag deleted the 0_host_labels branch July 28, 2022 18:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/collectors Everything related to data collection area/database collectors/plugins.d
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants