Python script for pushing data about peers into PostgreSQL
Go to file
Jakub Sokołowski 7d025dc40d
add postgres flags and initialization
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2020-07-14 11:28:40 +02:00
.gitignore add gitignore 2020-07-14 10:54:17 +02:00
README.md add parts of script from es-retention-graphs 2020-07-14 10:37:18 +02:00
main.py add postgres flags and initialization 2020-07-14 11:28:40 +02:00
postgres.py add postgres flags and initialization 2020-07-14 11:28:40 +02:00
query.py add parts of script from es-retention-graphs 2020-07-14 10:37:18 +02:00
requirements.txt add requirements 2020-07-14 10:54:03 +02:00

README.md

Description

This Python script queries for unique Status peers and pushes them to an SQL database.

Details

The script queries an ElasticSearch endpoint for logstash-* indices and aggregates counts of instances of log messages with set peer_id field.

This data is pushed to a PostgreSQL database in the following format:

Example