Summary:
```
yba telemetry-provider splunk create
Create a Splunk telemetry provider in YugabyteDB Anywhere
Usage:
yba telemetry-provider splunk create [flags]
Aliases:
create, add
Examples:
yba telemetry-provider splunk create --name <name> \
--endpoint <endpoint> --access-token <access-token>
Flags:
--access-token string [Required] Splunk Access Token.
--endpoint string [Required] Splunk Endpoint.
--source string [Optional] Splunk Source.
--source-type string [Optional] Splunk Source Type.
--index string [Optional] Splunk Index.
--tags stringToString [Optional] Tags to be applied to the exporter config. Provide as key-value pairs per flag. Example "--tags name=test --tags owner=development" OR "--tags name=test,owner=development". (default [])
-h, --help help for create
Global Flags:
-a, --apiToken string YugabyteDB Anywhere api token.
--ca-cert string CA certificate file path for secure connection to YugabyteDB Anywhere. Required when the endpoint is https and --insecure is not set.
--config string Full path to a specific configuration file for YBA CLI. If provided, this takes precedence over the directory specified via --directory, and the generated files are added to the same path. If not provided, the CLI will look for '.yba-cli.yaml' in the directory specified by --directory. Defaults to '$HOME/.yba-cli/.yba-cli.yaml'.
--debug Use debug mode, same as --logLevel debug.
--directory string Directory containing YBA CLI configuration and generated files. If specified, the CLI will look for a configuration file named '.yba-cli.yaml' in this directory. Defaults to '$HOME/.yba-cli/'.
--disable-color Disable colors in output. (default false)
-H, --host string YugabyteDB Anywhere Host (default "http://localhost:9000")
--insecure Allow insecure connections to YugabyteDB Anywhere. Value ignored for http endpoints. Defaults to false for https.
-l, --logLevel string Select the desired log level format. Allowed values: debug, info, warn, error, fatal. (default "info")
-n, --name string [Optional] The name of the provider for the action. Required for create, delete, describe.
-o, --output string Select the desired output format. Allowed values: table, json, pretty. (default "table")
--timeout duration Wait command timeout, example: 5m, 1h. (default 168h0m0s)
--wait Wait until the task is completed, otherwise it will exit immediately. (default true)
```
```
Create a Loki telemetry provider in YugabyteDB Anywhere
Usage:
yba telemetry-provider loki create [flags]
Aliases:
create, add
Examples:
yba telemetry-provider loki create --name <name> \
--endpoint <loki-endpoint> --auth-type <auth-type>
Flags:
--endpoint string [Required] Loki endpoint URL. Provide the endpoint in the following format: http://<loki-url>:<loki-port>Ensure loki is accessible through the mentioned port. YugbayteDB Anywhere will push logs to <endpoint>/loki/api/v1/push.
--organization-id string [Optional] Organization/Tenant ID is required when multi-tenancy is set up in Loki. Optional for Grafana Cloud since the authentication reroutes requests according to scope.
--auth-type string [Optional] Authentication type to be used for Loki telemetry provider. Allowed values: none, basic. (default "none")
--username string [Optional] Username for basic authentication. Required if auth-type is set to basic.
--password string [Optional] Password for basic authentication. Required if auth-type is set to basic.
--tags stringToString [Optional] Tags to be applied to the exporter config. Provide as key-value pairs per flag. Example "--tags name=test --tags owner=development" OR "--tags name=test,owner=development". (default [])
-h, --help help for create
Global Flags:
-a, --apiToken string YugabyteDB Anywhere api token.
--ca-cert string CA certificate file path for secure connection to YugabyteDB Anywhere. Required when the endpoint is https and --insecure is not set.
--config string Full path to a specific configuration file for YBA CLI. If provided, this takes precedence over the directory specified via --directory, and the generated files are added to the same path. If not provided, the CLI will look for '.yba-cli.yaml' in the directory specified by --directory. Defaults to '$HOME/.yba-cli/.yba-cli.yaml'.
--debug Use debug mode, same as --logLevel debug.
--directory string Directory containing YBA CLI configuration and generated files. If specified, the CLI will look for a configuration file named '.yba-cli.yaml' in this directory. Defaults to '$HOME/.yba-cli/'.
--disable-color Disable colors in output. (default false)
-H, --host string YugabyteDB Anywhere Host (default "http://localhost:9000")
--insecure Allow insecure connections to YugabyteDB Anywhere. Value ignored for http endpoints. Defaults to false for https.
-l, --logLevel string Select the desired log level format. Allowed values: debug, info, warn, error, fatal. (default "info")
-n, --name string [Optional] The name of the provider for the action. Required for create, delete, describe.
-o, --output string Select the desired output format. Allowed values: table, json, pretty. (default "table")
--timeout duration Wait command timeout, example: 5m, 1h. (default 168h0m0s)
--wait Wait until the task is completed, otherwise it will exit immediately. (default true)
```
```
yba telemetry-provider datadog create
Create a DataDog telemetry provider in YugabyteDB Anywhere
Usage:
yba telemetry-provider datadog create [flags]
Aliases:
create, add
Examples:
yba telemetry-provider datadog create --name <name> \
--api-key <api-key> --site <site>
Flags:
--api-key string [Required] DataDog API Key.
--site string [Optional] DataDog Site URL. (default "datadoghq.com")
--tags stringToString [Optional] Tags to be applied to the exporter config. Provide as key-value pairs per flag. Example "--tags name=test --tags owner=development" OR "--tags name=test,owner=development". (default [])
-h, --help help for create
Global Flags:
-a, --apiToken string YugabyteDB Anywhere api token.
--ca-cert string CA certificate file path for secure connection to YugabyteDB Anywhere. Required when the endpoint is https and --insecure is not set.
--config string Full path to a specific configuration file for YBA CLI. If provided, this takes precedence over the directory specified via --directory, and the generated files are added to the same path. If not provided, the CLI will look for '.yba-cli.yaml' in the directory specified by --directory. Defaults to '$HOME/.yba-cli/.yba-cli.yaml'.
--debug Use debug mode, same as --logLevel debug.
--directory string Directory containing YBA CLI configuration and generated files. If specified, the CLI will look for a configuration file named '.yba-cli.yaml' in this directory. Defaults to '$HOME/.yba-cli/'.
--disable-color Disable colors in output. (default false)
-H, --host string YugabyteDB Anywhere Host (default "http://localhost:9000")
--insecure Allow insecure connections to YugabyteDB Anywhere. Value ignored for http endpoints. Defaults to false for https.
-l, --logLevel string Select the desired log level format. Allowed values: debug, info, warn, error, fatal. (default "info")
-n, --name string [Optional] The name of the provider for the action. Required for create, delete, describe.
-o, --output string Select the desired output format. Allowed values: table, json, pretty. (default "table")
--timeout duration Wait command timeout, example: 5m, 1h. (default 168h0m0s)
--wait Wait until the task is completed, otherwise it will exit immediately. (default true)
```
```
yba telemetry-provider awscloudwatch create
Create a AWS CloudWatch telemetry provider in YugabyteDB Anywhere
Usage:
yba telemetry-provider awscloudwatch create [flags]
Aliases:
create, add
Examples:
yba telemetry-provider awscloudwatch create --name <name> \
--access-key-id <access-key-id> --secret-access-key <secret-access-key> --region <region> \
--log-group <log-group> --log-stream <log-stream>
Flags:
--access-key-id string AWS Access Key ID. Can also be set using environment variable AWS_ACCESS_KEY_ID.
--secret-access-key string AWS Secret Access Key. Can also be set using environment variable AWS_SECRET_ACCESS_KEY.
--region string AWS region. Can also be set using environment variable AWS_REGION
--log-group string [Required] AWS CloudWatch Log Group.
--log-stream string [Required] AWS CloudWatch Log Stream.
--role-arn string [Optional] AWS Role ARN.
--endpoint string [Optional] AWS Endpoint.
--tags stringToString [Optional] Tags to be applied to the exporter config. Provide as key-value pairs per flag. Example "--tags name=test --tags owner=development" OR "--tags name=test,owner=development". (default [])
-h, --help help for create
Global Flags:
-a, --apiToken string YugabyteDB Anywhere api token.
--ca-cert string CA certificate file path for secure connection to YugabyteDB Anywhere. Required when the endpoint is https and --insecure is not set.
--config string Full path to a specific configuration file for YBA CLI. If provided, this takes precedence over the directory specified via --directory, and the generated files are added to the same path. If not provided, the CLI will look for '.yba-cli.yaml' in the directory specified by --directory. Defaults to '$HOME/.yba-cli/.yba-cli.yaml'.
--debug Use debug mode, same as --logLevel debug.
--directory string Directory containing YBA CLI configuration and generated files. If specified, the CLI will look for a configuration file named '.yba-cli.yaml' in this directory. Defaults to '$HOME/.yba-cli/'.
--disable-color Disable colors in output. (default false)
-H, --host string YugabyteDB Anywhere Host (default "http://localhost:9000")
--insecure Allow insecure connections to YugabyteDB Anywhere. Value ignored for http endpoints. Defaults to false for https.
-l, --logLevel string Select the desired log level format. Allowed values: debug, info, warn, error, fatal. (default "info")
-n, --name string [Optional] The name of the provider for the action. Required for create, delete, describe.
-o, --output string Select the desired output format. Allowed values: table, json, pretty. (default "table")
--timeout duration Wait command timeout, example: 5m, 1h. (default 168h0m0s)
--wait Wait until the task is completed, otherwise it will exit immediately. (default true)
```
> GCP Cloud monitoring is currently blocked due to https://yugabyte.atlassian.net/browse/PLAT-18378
Test Plan:
`yba telemetry-provider loki create -n dkumar-cli-loki --endpoint http://<>:3100`
`yba telemetry-provider datadog create -n dkumar-datadog-cli --api-key <>`
`yba telemetry-provider awscloudwatch create -n dkumar-aws-cli --access-key-id <> --secret-access-key <> --log-group <> --log-stream <> --region us-west-2 --tags dkumar-test=cli`
Reviewers: skurapati
Reviewed By: skurapati
Differential Revision: https://phorge.dev.yugabyte.com/D46216