-
Notifications
You must be signed in to change notification settings - Fork 186
/
root.go
44 lines (35 loc) 路 1.5 KB
/
root.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
package cmd
import (
"os"
"github.com/odigos-io/odigos/common/utils"
"github.com/spf13/cobra"
)
// rootCmd represents the base command when called without any subcommands
var rootCmd = &cobra.Command{
Use: "odigos",
Short: "Automate OpenTelemetry Observability in Kubernetes",
Long: `Odigos is primarily focused on automating OpenTelemetry observability pipelines for traces, metrics, and logs, without the need for extensive code changes. The core of Odigos functionality lies in the Kubernetes operators it deploys within your cluster, enabling seamless observability.
Key Features of Odigos:
- Automatic creation of OpenTelemetry observability pipelines.
- Simplified tracing, metrics, and log collection.
- Enhanced visibility into your Kubernetes services.
- Streamlined Kubernetes operations with observability at the forefront.
Get started with Odigos today to effortlessly improve the observability of your Kubernetes services!`,
// Uncomment the following line if your bare application
// has an action associated with it:
// Run: func(cmd *cobra.Command, args []string) { },
}
var (
kubeConfig string
)
// Execute adds all child commands to the root command and sets flags appropriately.
// This is called by main.main(). It only needs to happen once to the rootCmd.
func Execute() {
err := rootCmd.Execute()
if err != nil {
os.Exit(1)
}
}
func init() {
rootCmd.PersistentFlags().StringVar(&kubeConfig, "kubeconfig", utils.GetDefaultKubeConfigPath(), "(optional) absolute path to the kubeconfig file")
}