Fix alignment in charts endpoint #13275
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.
Summary
Our current json output for chart labels is not aligned, because we are missing a tab:
This PR is fixing this issue aligning the JSON:
Test Plan
netdata
and access http://localhost:19999/api/v1/charts?all, you will have chart labels not aligned.Additional Information
For users: How does this change affect me?
Describe the PR affects users: - Which area of Netdata is affected by the change? API - Can they see the change or is it an under the hood? If they can see it, where? It is not visible for uses - How is the user impacted by the change? When users work directly with API, they will have data better organized. - What are there any benefits of the change? It keeps the JSON cleaner.