Jump to content

Metrics: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 3: Line 3:
== 🎯 Roadmap for metrics harvesting ==
== 🎯 Roadmap for metrics harvesting ==


 
== How ? ==
== Reporting dashboard ==
=== Reporting dashboard ===
An InfluxDB/Grafana stack has been set up to allow Open Food Facts team to be able to follow essential metrics. The dashboards can be viewed at https://metrics.openfoodfacts.org.   
An InfluxDB/Grafana stack has been set up to allow Open Food Facts team to be able to follow essential metrics. The dashboards can be viewed at https://metrics.openfoodfacts.org.   


Line 13: Line 13:
We have a single [https://en.wikipedia.org/wiki/InfluxDB InfluxDB] bucket (=similar to SQL database) ''<code>off_metrics</code>''. There are two measurements (=similar to SQL table): ''<code>facets</code>'' and ''<code>insights</code>''.
We have a single [https://en.wikipedia.org/wiki/InfluxDB InfluxDB] bucket (=similar to SQL database) ''<code>off_metrics</code>''. There are two measurements (=similar to SQL table): ''<code>facets</code>'' and ''<code>insights</code>''.


=== <code>insights</code> ===
==== <code>insights</code> ====


Save metrics about Robotoff <code>product_insight</code> PostgreSQL table. The export is performed daily at night time by Robotoff.
Save metrics about Robotoff <code>product_insight</code> PostgreSQL table. The export is performed daily at night time by Robotoff.
Line 26: Line 26:
* <code>percent</code>: the % of insights with the previous characteristics, over the total number of insights.
* <code>percent</code>: the % of insights with the previous characteristics, over the total number of insights.


=== <code>facets</code> ===
==== <code>facets</code> ====
Save metrics about Product Opener facets, using public facet API. The export is performed daily at night time by Robotoff by calling Product Opener API.
Save metrics about Product Opener facets, using public facet API. The export is performed daily at night time by Robotoff by calling Product Opener API.