Skip to content

Commit

Permalink
fix query and health.hql
Browse files Browse the repository at this point in the history
  • Loading branch information
Jesse Schmidt committed Oct 17, 2023
1 parent 7278162 commit a7794b8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
5 changes: 2 additions & 3 deletions lib/health/query.py
Original file line number Diff line number Diff line change
Expand Up @@ -1503,8 +1503,7 @@
// Secondary Index Aggregation Query Statistics, fromally Query Agg statistics
s = select "si_query_aggr_complete" as "val" from NAMESPACE.STATISTICS save;
e = select "si_query_aggr_error" as "val" from NAMESPACE.STATISTICS save;
total_transactions = do s + e;
total_transaction = do total_transactions + a save as "total sindex query aggregations";
total_transactions = do s + e save as "total sindex query aggregations";
total_transactions_per_sec = do total_transactions/u;
total_transactions_per_sec = group by CLUSTER, NAMESPACE, NODE do MAX(total_transactions_per_sec);
Expand Down Expand Up @@ -1620,7 +1619,7 @@
// Scan Basic statistics
s = select "scan_basic_complete" as "cnt" from NAMESPACE.STATISTICS;
e = select "scan_basic_error", as "cnt" from NAMESPACE.STATISTICS;
e = select "scan_basic_error" as "cnt" from NAMESPACE.STATISTICS;
total_transactions = do s + e save as "total basic scans";
total_transactions_per_sec = do total_transactions/u;
total_transactions_per_sec = group by CLUSTER, NAMESPACE, NODE do MAX(total_transactions_per_sec);
Expand Down
8 changes: 2 additions & 6 deletions lib/health/query/health.hql
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.

QUERIES = """
/***************************************************
* System Resource *
****************************************************/
Expand Down Expand Up @@ -1503,8 +1502,7 @@ ASSERT(r, True, "Non-zero sindex basic short query errors", "OPERATIONS", INFO,
// Secondary Index Aggregation Query Statistics, fromally Query Agg statistics
s = select "si_query_aggr_complete" as "val" from NAMESPACE.STATISTICS save;
e = select "si_query_aggr_error" as "val" from NAMESPACE.STATISTICS save;
total_transactions = do s + e;
total_transaction = do total_transactions + a save as "total sindex query aggregations";
total_transactions = do s + e save as "total sindex query aggregations";
total_transactions_per_sec = do total_transactions/u;
total_transactions_per_sec = group by CLUSTER, NAMESPACE, NODE do MAX(total_transactions_per_sec);

Expand Down Expand Up @@ -1620,7 +1618,7 @@ ASSERT(r, True, "Non-zero scan aggregation errors", "OPERATIONS", INFO,

// Scan Basic statistics
s = select "scan_basic_complete" as "cnt" from NAMESPACE.STATISTICS;
e = select "scan_basic_error", as "cnt" from NAMESPACE.STATISTICS;
e = select "scan_basic_error" as "cnt" from NAMESPACE.STATISTICS;
total_transactions = do s + e save as "total basic scans";
total_transactions_per_sec = do total_transactions/u;
total_transactions_per_sec = group by CLUSTER, NAMESPACE, NODE do MAX(total_transactions_per_sec);
Expand Down Expand Up @@ -2154,5 +2152,3 @@ ASSERT(m, False, "Outlier[s] detected by the server health check.", "OPERATIONS"
"Server health check outlier detection. Run command 'asinfo -v health-outliers' to see list of outliers");

SET CONSTRAINT VERSION ALL;
"""

0 comments on commit a7794b8

Please sign in to comment.