set

netq set otlp endpoint-ca-cert

Sets the CA certificate of your time-series database; used together with the netq add otlp endpoint command.

Syntax

netq set otlp endpoint-ca-cert 
    tsdb-name <text-tsdb-endpoint> 
    ca-cert <text-path-to-ca-crt>

Required Arguments

Argument Value Description
tsdb-name <text-tsdb-endpoint> Specify the name of your TSDB
ca-cert <text-path-to-ca-crt> Specify the path to the CA certificate

Options

None

  • netq add otlp endpoint

netq set otlp exporter-security-mode

Sets the OTLP exporter security mode.

Syntax

netq set otlp exporter-security-mode (insecure | tls | mtls) 

Required Arguments

Argument Value Description
exporter-security-mode insecure, mtls, tls Set the security mode to mtls, tls or insecure

Options

None

netq show otlp exporter-security-mode


netq set otlp ingress-security-mode

Sets the OTLP ingress security mode.

Syntax

netq set otlp ingress-security-mode (disabled | mtls) 

Required Arguments

Argument Value Description
ingress-security-mode disabled, mtls Set the security mode to mtls or disable security

Options

None

netq show otlp ingress-security-mode


netq set otlp security-mode

Sets the OTLP security mode.

Syntax

netq set otlp security-mode (insecure | tls | mtls) 

Required Arguments

Argument Value Description
security-mode insecure, mtls, tls Set the security mode to tls, mtls, or insecure

Options

None

None


netq set otlp tls-cert

Configures the server certificate (server.crt) and server key (server.key) on the NetQ server.

Syntax

netq set otlp tls-cert 
    server-crt <text-path-to-server-crt> 
    server-key <text-path-to-server-key>

Required Arguments

Argument Value Description
server-crt <text-path-to-server-crt> Specify path to the server certificate
server-key <text-path-to-server-key> Specify path to the server key

Options

None

None


netq set otlp whitelist

Use this command to add and update the whitelist ConfigMap for a time-series database. Executing the command automatically triggers a rolling restart of the OTLP pods and will not cause downtime. You can view the contents of the whitelist using the netq show whitelist custom command.

Syntax

netq set otlp 
    whitelist file <path-to-yaml-file> 
    tsdb-name <tsdb-name>

Required Arguments

Argument Value Description
whitelist file <path-to-yaml-file> Specify the path to the YAML file
tsdb-name <tsdb-name> Specify the name of the time-series database

Options

None

Sample Usage

nvidia@netq-server:~$ netq set otlp whitelist file /path/to/custom.yaml tsdb-name default
  • netq show otlp whitelist