You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: samples/speedystore/README.md
+7-12Lines changed: 7 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -50,12 +50,7 @@ In the following command, the `VIYA_NS` environment variable is defined and assi
50
50
#### Create the SingleStore pipeline and metrics database
51
51
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.
52
52
53
-
To configure and start the monitoring, including the metrics database, the following command will be used:
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.
59
54
60
55
#### The `cluster-name` parameter
61
56
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
71
66
72
67
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.
73
68
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:
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.
80
75
81
76
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:
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.
87
82
88
83
#### 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.
90
85
91
86
#### Run the `sb-admin start-monitoring-kube` command
92
87
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
136
131
#### Configure the Grafana Datasource
137
132
Grafana datasources provide connection information allowing Grafana to access metric information in response to user queries and to populate dashboards.
138
133
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.
140
135
141
136
For example, if SAS Viya is deployed into the ***myviya*** namespace, you would revise the ***url*** value from:
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.
150
145
151
146
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.
0 commit comments