-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Metrics: Add push client to push metrics to endpoint
Creates a push client that will be used to push metrics to Prometheus Aggregation Gateway. The client can be used for any type of Gateway and it takes in the URL and the HTTP Client that would have all the necessary information(authentication) required to push to the gateway. Configured to take in Prometheus Objects for pushing to gateway.
- Loading branch information
Showing
1,682 changed files
with
229,963 additions
and
323,626 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,33 @@ | ||
package azure | ||
|
||
import ( | ||
"fmt" | ||
|
||
"github.com/spf13/cobra" | ||
|
||
azmigrate "github.com/openshift/installer/pkg/migrate/azure" | ||
"github.com/openshift/installer/pkg/types/azure" | ||
) | ||
|
||
func runMigrateAzurePrivateDNSEligibleCmd(cmd *cobra.Command, args []string) error { | ||
return azmigrate.Eligible() | ||
} | ||
|
||
// NewMigrateAzurePrivateDNSEligibleCmd adds the eligble command to openshift-install | ||
func NewMigrateAzurePrivateDNSEligibleCmd() *cobra.Command { | ||
var cloudName string | ||
|
||
cmd := &cobra.Command{ | ||
Use: "azure-privatedns-eligible", | ||
Short: "Show legacy Azure zones that are eligible to be migrated", | ||
Long: "This will show legacy Azure private zones that can be migrated to new private zones.", | ||
RunE: runMigrateAzurePrivateDNSEligibleCmd, | ||
RunE: func(cmd *cobra.Command, args []string) error { | ||
return azmigrate.Eligible(azure.CloudEnvironment(cloudName)) | ||
}, | ||
} | ||
|
||
cmd.Flags().StringVar( | ||
&cloudName, | ||
"cloud-name", | ||
string(azure.PublicCloud), | ||
fmt.Sprintf("cloud environment name, one of: %s, %s, %s, %s", azure.PublicCloud, azure.USGovernmentCloud, azure.ChinaCloud, azure.GermanCloud), | ||
) | ||
|
||
return cmd | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.