hi guys, where i can find statistics/usage in dat...
# ingestion
f
hi guys, where i can find statistics/usage in datahub mysql?
d
Usage is not supported on mysql. column/table stats can be collected with profiling -> https://datahubproject.io/docs/metadata-ingestion/source_docs/sql_profiles
f
i mean, after i insert the profiles in datahub
the data are stored in mysql right?
i find the lineage and urn in datahub.metadata_aspect_v2, but i cant find the stats
d
you should be able to find it in Elasticsearch
b
Profiles in particular are only persisted to elastic (as are all timeseries metadata)
f
Oh, got it, thx😇. Do you have any example of how can i extract some data from eleasticsearch using python? I never use elasticsearch before 😅
d
You can also use the graphql interface if it is better -> https://datahubproject.io/docs/graphql/objects#datasetprofile
f
its a way to get all the tables stats using 1 graphql call? I try a python script to gett all the tables, but i need to iterare over project, after that over datase, and after that over tables