Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: have diagnostics endpoint always return a string for hmetric
Previously the diagnositcs endpoint would return either a string or number for hmetric. The agent always assumed it was a string. We have not ran into this previously due to cluster_stats being somewhat broken and would always returns string. But now that has been fixedwith 79a29b3 and e139053 it can now return a number which was breaking the agent. This change makes it that hmetric is always a string. Due to this, we also move the 'Unknown health' prefix if there are no requests yet to envoy_stats.py instead if in the diag jinja template. Signed-off-by: Hamzah Qudsi <[email protected]>
- Loading branch information