Skip to content

Commit

Permalink
Merge pull request #22, call metadata service in admin/metadata api
Browse files Browse the repository at this point in the history
  • Loading branch information
chickenlj committed Sep 13, 2023
2 parents 00e8fec + 081872c commit 6d0d795
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/admin/handlers/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ func ClusterMetrics(c *gin.Context) {
// @Failure 500 {object} model.HTTPError
// @Router /api/{env}/metrics/metadata [get]
func Metadata(c *gin.Context) {
res, err := monitorService.ClusterMetrics()
res, err := monitorService.Metadata()
if err != nil {
c.JSON(http.StatusInternalServerError, gin.H{
"error": err.Error(),
Expand Down

0 comments on commit 6d0d795

Please sign in to comment.