Skip to content

Commit 4f20bba

Browse files
committed
Fix snapshot_stats metrics which happens on HA hdfs type snapshot repository
fix issue 415 err logs: "failed to fetch and decode snapshot stats" err:"json: cannot unmarshal object into Go struct field .settings of type string" " repository-hdfs is an elasticsearch plugin: https://www.elastic.co/guide/en/elasticsearch/plugins/current/repository-hdfs-config.html#repository-hdfs-config Signed-off-by: bruc vv <[email protected]>
1 parent a4c1f63 commit 4f20bba

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

collector/snapshots_reponse.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,6 @@ type SnapshotStatDataResponse struct {
4343

4444
// SnapshotRepositoriesResponse is a representation snapshots repositories
4545
type SnapshotRepositoriesResponse map[string]struct {
46-
Type string `json:"type"`
47-
Settings map[string]string `json:"settings"`
46+
Type string `json:"type"`
47+
Settings map[string]interface{} `json:"settings"`
4848
}

0 commit comments

Comments
 (0)