zenit
zenit copied to clipboard
The Swiss Army Knife of Database Management
Example: ~~~go package main import ( "fmt" ) func main() { tags := make(map[string]string) tags["schema"] = "identity" tags["table"] = "user" fields := make(map[string]interface{}) fields["percentage"] = 10 item := make(map[string]interface{}) item["tags"]...
To start, logs to send: - pt-kill - pt-deadlock-logger - slow log
Like xinetd, you can specify TCP port, and this return http code 200 when everything MySQL checks are ok, if have any MySQL error return http code 503.
Error gathering metrics: 7 error(s) occurred: * collected metric **zenit_os** label: label: untyped: has label dimensions inconsistent with previously collected metrics in the same metric family * collected metric **zenit_os**...
Use the same port from node_exporter. https://github.com/prometheus/client_golang
``` 2018/09/28 09:34:23 E! - MySQL:Indexes - Impossible to execute query: Error 1317: Query execution was interrupted panic: runtime error: invalid memory address or nil pointer dereference panic: runtime error:...
The values stored in the field sqltext in auditlog have query with this special symbols: - `>` Stands for the greater-than sign ( > ) - `<` Stands for the...
Create a YAML or JSON with all custom queries to execute every x time: Example: ``` queries: - description: "purchase by hours" query: "SELECT count(id) FROM purchases WHERE created_at >=..."...