Skip to content

Commit

Permalink
Adding a usage comment for cluster_sqlactivity.yaml.
Browse files Browse the repository at this point in the history
Fixes #68.
  • Loading branch information
sravotto committed Nov 28, 2023
1 parent 2d742ff commit 7aff338
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions examples/cluster_sqlactivity.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
# Note: This query is meant to be executed at a cluster level,
# and very low frequency.
# If visus is deployed in a self hosted cluster as a sidecar for each node,
# sqlactivity.yaml should be used instead.
name: cluster_sqlactivity
enabled: true
scope: node
scope: cluster
frequency: 20
maxresults: 20
labels: [statement,application,database]
Expand Down Expand Up @@ -40,7 +44,7 @@ metrics:
help : number of times the statement was executed.
query:
WITH
max AS (select max(aggregated_ts) from crdb_internal.statement_statistics),
max AS (select max(aggregated_ts) from system.statement_statistics),
total AS (
SELECT
encode(fingerprint_id, 'hex') as statement,
Expand Down

0 comments on commit 7aff338

Please sign in to comment.