Skip to content

Commit 880b00f

Browse files
committed
Tweak README
1 parent 74ffc4c commit 880b00f

File tree

1 file changed

+7
-12
lines changed

1 file changed

+7
-12
lines changed

samples/speedystore/README.md

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -50,12 +50,7 @@ In the following command, the `VIYA_NS` environment variable is defined and assi
5050
#### Create the SingleStore pipeline and metrics database
5151
The `sdb-admin start-monitoring-kube` command is used to configure and start the monitoring. It has a number of flags to control its operations. See the [SingleStore documentation](https://docs.singlestore.com/db/v8.9/reference/singlestore-tools-reference/sdb-admin-commands/start-monitoring-kube/) for more information.
5252

53-
To configure and start the monitoring, including the metrics database, the following command will be used:
54-
55-
`sdb-admin start-monitoring-kube --cluster-name sas-singlestore-cluster --namespace $VIYA_NS --user root --password $ROOT_PWD --exporter-host $CLUSTER_MASTER_IP`
56-
57-
Before submitting the command, the various parameters being passed to the command and how to determine their proper values will be reviewed.
58-
53+
Before submitting the `sdb-admin start-monitoring-kube` command, the various parameters being passed to the command and how to determine their proper values will be reviewed.
5954

6055
#### The `cluster-name` parameter
6156
The default name for the SingleStore cluster in a SAS SpeedyStore deployment is: ***sas-singlestore-cluster***. However, since it is possible to change this name, it is important to confirm the actual cluster name before configuring the monitoring.
@@ -71,22 +66,22 @@ A core part of the monitoring is the exporter process which collects the metric
7166

7267
NOTE: It is possible to run the process as another user but the user must have the low level permissions needed to create and control the metrics database and pipelines. Setting up an alternate user for this is out-of-scope for this sample and we will use the 'root' user.
7368

74-
You will need the password for the SingleStore 'root' user. You can use the following command to get the password for the 'root' user and store it in the `ROOT_PWD` environment variable:
69+
You need the password for the SingleStore 'root' user. You can use the following command to get the password for the 'root' user and store it in the `ROOT_PWD` environment variable:
7570

7671
`ROOT_PWD=$(kubectl -n ${VIYA_NS} get secret sas-singlestore-cluster -o yaml | grep "ROOT_PASSWORD"|awk '{print $2}'|base64 -d --wrap=0)`
7772

7873
#### The `exporter-host` parameter
79-
As shown in the diagram above, the export process runs on the Master Aggregator. Therefore, you need to target the SingleStore Master node; i.e. the **node-sas-singlestore-cluster-master-0** node (pod) in a SAS SpeedyStore deployment. In this example you will use that pod's IP address for the `exporter-host` parameter.
74+
As shown in the diagram above, the export process runs on the Master Aggregator. Therefore, you need to target the SingleStore Master node; i.e. the **node-sas-singlestore-cluster-master-0** node (pod) in a SAS SpeedyStore deployment. In this example, that pod's IP address will be used for the `exporter-host` parameter.
8075

8176
You can obtain the IP address for the Master node and store it in the `CLUSTER_MASTER_IP` environment variable by submitting the following command:
8277

8378
`CLUSTER_MASTER_IP=$(kubectl -n ${VIYA_NS} get pods -o wide | grep 'node-sas-singlestore-cluster-master-0' | awk '{print $6}')`
8479

8580
#### Disabling interactive mode
86-
By default, the `sdb-admin start-monitoring-kube` command will display some information and ask the user if they would like to continue. To skip this prompt and have the configuration continue automatically, include the `--yes` parameter.
81+
By default, the `sdb-admin start-monitoring-kube` command displays some information and asks the user if they would like to continue. To skip this prompt and have the configuration continue automatically, this example includes the `--yes` parameter.
8782

8883
#### Accessing the Kubernetess Cluster
89-
The `sb-admin` command needs to access the Kubernetes cluster on which SAS Viya and SingleStore are running. It does this through a Kubernetes configuration file. By default, the command will attempt to use the file identified in the `KUBECONFIG` environment variable, if defined, or the `~/.kube/config` file, if it exists, to discover the cluster. Alternatively, the `--config-file` option can be used to specify the kube config file to use.
84+
The `sb-admin` command needs to access the Kubernetes cluster on which SAS Viya and SingleStore are running. It does this through a Kubernetes configuration file. By default, the command uses the file identified in the `KUBECONFIG` environment variable (if defined), or the `~/.kube/config` file (if it exists) to discover the cluster. Alternatively, the `--config-file` option can be used to specify the kube config file to use.
9085

9186
#### Run the `sb-admin start-monitoring-kube` command
9287
After setting all of the required parameters, submit the following command to configure and start the monitoring, including the metrics database:
@@ -136,7 +131,7 @@ You should consider your organization's specific needs before deciding whether t
136131
#### Configure the Grafana Datasource
137132
Grafana datasources provide connection information allowing Grafana to access metric information in response to user queries and to populate dashboards.
138133

139-
The file [speedystore-datasource.yaml](speedystore-datasource.yaml) in this directory defines the datasource that will allow Grafana to access the '**metrics**' database created above. However, before it can be used, it needs to be edited to provide the proper credentials (i.e. the ***user*** and ***password*** fields in the file). You will also need to update the ***url*** field to reflect the namespace in which SAS Viya deployment is deployed.
134+
The file [speedystore-datasource.yaml](speedystore-datasource.yaml) in this directory defines the datasource that will allow Grafana to access the '**metrics**' database created above. However, before it can be used, it needs to be edited to provide the proper credentials (i.e. the ***user*** and ***password*** fields in the file). You also need to update the ***url*** field to reflect the namespace in which SAS Viya deployment is deployed.
140135

141136
For example, if SAS Viya is deployed into the ***myviya*** namespace, you would revise the ***url*** value from:
142137

@@ -146,7 +141,7 @@ to:
146141

147142
`url: svc-sas-singlestore-cluster-ddl.myviya.svc.cluster.local:3306`
148143

149-
If the name of the SingleStore cluster is not ***sas-singlestore-cluster***, you will need to update that portion of the ***url*** field in the file as well.
144+
If the name of the SingleStore cluster is not ***sas-singlestore-cluster***, you need to update that portion of the ***url*** field in the file as well.
150145

151146
Copy the file to some location, update the necessary information, and save your changes. We suggest copying the file into your `$USER_DIR/monitoring` sub-directory, i.e. the same directory used for any other customizations related to the metric monitoring components you have made to your deployment of SAS Viya Monitoring. This will ensure all of the files related to this deployment of SAS Viya Monitoring are in one place.
152147

0 commit comments

Comments
 (0)