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: README.md
+6-3Lines changed: 6 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,5 @@
1
1
# visus
2
+
2
3
Visus (latin for "the action of looking") enables users to collect metrics using arbitrary SQL queries and expose them in a Prometheus format. Optionally, it can be configured to filter the metrics CockroachDB available in the `/_status/vars` endpoint.
3
4
4
5
Visus runs as a sidecar on each node of a CockroachDB cluster, as shown in the diagram below.
@@ -29,11 +30,12 @@ LIMIT
29
30
30
31
The Prometheus collectors will add additional labels to track the cluster name as well as the instance where the metrics are coming from.
31
32
32
-
## Database Security
33
+
## Database Security
34
+
33
35
It is recommended to use separate users for managing the configuration and to run the sidecar.
34
36
The sidecar needs `SELECT ON TABLES` privileges on the `_visus` database to read the configuration. It also needs the `SELECT,INSERT,UPDATE` privileges on the `_visus.node` table, used to determine which node should collect cluster wide metrics.
35
37
36
-
To run many of the sample collections available in the examples directory,
38
+
To run many of the sample collections available in the examples directory,
37
39
the 'VIEWACTIVITY' option should be granted to the user.
38
40
The `./visus init` command will provision a `visus` user with the minimal privileges to run the sidecar. Defining new collection may require additional privileges, depending on what data the SQL query associated to the collection has to access.
Visus can also act as a proxy to filter and rewrite CockroachDB histograms (v22.1 and earlier) from a log-2 linear format (HDR histograms) to a log-10 linear format.
177
+
Visus can also act as a proxy to filter and rewrite CockroachDB histograms (v22.1 and earlier) from a log-2 linear format (HDR histograms) to a log-10 linear format.
176
178
Users can specify which histograms to rewrite based on a regular expression. For instance to rewrite all the histograms that match "^sql_exec_latency$" and keep buckets between 1ms and 20sec, we specify in the configuration file `latency.yaml`:
0 commit comments