Skip to content

Commit 5d62eb9

Browse files
committed
add comment for unknow_type for alert_manager
1 parent 1b87e4d commit 5d62eb9

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

internal/services/cockpit/types.go

+3-2
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,9 @@ func flattenCockpitEndpoints(dataSources []*cockpit.DataSource, grafanaURL strin
3434

3535
endpoints := []map[string]interface{}{
3636
{
37-
"metrics_url": endpointMap["metrics_url"],
38-
"logs_url": endpointMap["logs_url"],
37+
"metrics_url": endpointMap["metrics_url"],
38+
"logs_url": endpointMap["logs_url"],
39+
// The alert manager data source is returned with the type unknown_type. waiting a more logical type
3940
"alertmanager_url": endpointMap["alertmanager_url"],
4041
"grafana_url": grafanaURL,
4142
"traces_url": endpointMap["traces_url"],

0 commit comments

Comments
 (0)