Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature] Add support for PG Query Log exporter #254

Merged
merged 8 commits into from
Oct 22, 2024
Merged
7 changes: 6 additions & 1 deletion cmd/cluster/cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,15 @@ package cluster
import (
"github.com/spf13/cobra"
"github.com/yugabyte/ybm-cli/cmd/cluster/cert"
connectionpooling "github.com/yugabyte/ybm-cli/cmd/cluster/connection-pooling"
encryption "github.com/yugabyte/ybm-cli/cmd/cluster/encryption"
log_exporter "github.com/yugabyte/ybm-cli/cmd/cluster/log-exporter"
"github.com/yugabyte/ybm-cli/cmd/cluster/namespace"
"github.com/yugabyte/ybm-cli/cmd/cluster/network"
"github.com/yugabyte/ybm-cli/cmd/cluster/node"
pitrconfig "github.com/yugabyte/ybm-cli/cmd/cluster/pitr-config"
readreplica "github.com/yugabyte/ybm-cli/cmd/cluster/read-replica"
"github.com/yugabyte/ybm-cli/cmd/util"
connectionpooling "github.com/yugabyte/ybm-cli/cmd/cluster/connection-pooling"
)

// getCmd represents the list command
Expand All @@ -41,6 +42,10 @@ var ClusterCmd = &cobra.Command{
func init() {
ClusterCmd.AddCommand(cert.CertCmd)

ClusterCmd.AddCommand(log_exporter.DbQueryLoggingCmd)
log_exporter.DbQueryLoggingCmd.PersistentFlags().StringVarP(&log_exporter.ClusterName, "cluster-name", "c", "", "[REQUIRED] The name of the cluster.")
log_exporter.DbQueryLoggingCmd.MarkPersistentFlagRequired("cluster-name")

ClusterCmd.AddCommand(network.NetworkCmd)
network.NetworkCmd.PersistentFlags().StringVarP(&network.ClusterName, "cluster-name", "c", "", "[REQUIRED] The name of the cluster.")
network.NetworkCmd.MarkPersistentFlagRequired("cluster-name")
Expand Down
Loading
Loading