codenotary / immudb

immudb - immutable database based on zero trust, SQL/Key-Value/Document model, tamperproof, data change history
https://immudb.io
Other
8.54k stars 341 forks source link

immugw runs consistency check #197

Closed vchain-us-mgmt closed 4 years ago

vchain-us-mgmt commented 4 years ago

immugw needs to be able to audit immudb for consistency check and report when data tampering has been identified.

for immugw to be able to report the results of its trust audit it needs to provide a Prometheus exporter that can be scraped to run alerts

Please align with Mert and Michele for the exporter to be consistent on all components

padurean commented 4 years ago

This is how exported metrics look:

# Current root index used for the latest trust check.
immugw_audit_curr_root_per_server{server_address="127.0.0.1:3322",server_id="br0k1l6g10l02akjaso0"} 19

# Previous root index used for the latest trust check.
immugw_audit_prev_root_per_server{server_address="127.0.0.1:3322",server_id="br0k1l6g10l02akjaso0"} 18

# Latest trust check result (1 means consistency check passed, 0 means failed).
immugw_audit_result_per_server{server_address="127.0.0.1:3322",server_id="br0k1l6g10l02akjaso0"} 0

# Timestamp in unix seconds at which latest trust check run.
immugw_audit_run_at_per_server{server_address="127.0.0.1:3322",server_id="br0k1l6g10l02akjaso0"} 1.5899319945398211e+09