darshank15 / GSoC_2020_FOSSOlogy

FOSSology generates a large set of data that is exported to the time-series influx database and visualized with the help of Grafana. I Wrote a fossdash_publisher script that collects useful data from FOSSology DB (Postgres) and exposes them to influx DB. Developed a visualization dashboard in Grafana by integrating influx as an input data source.
GNU General Public License v2.0
2 stars 0 forks source link

Dashboard Configuration #2

Closed NicolasToussaint closed 4 years ago

NicolasToussaint commented 4 years ago

The point of this issue is to add the possibility to configure various elements around the Fossology dashboard.

Cron execution

The Python script that pushes metrics is triggered with cron.

For the moment, that Cron configuration is hardcoded, or cumbersome to configure

Grafana URL

  1. The remote Grafana database URL is configured in the docker-compose file
  2. It is then written to a conf file, from Envronment variable, in the docker-entrypoint script
  3. and then read from the file in the script (because env variable are not passed to the Cron script)

How to configure

In the branch, there is already a customize entry to configure the Fossdash URL, that is not used.

image

The need is to be able to:

NicolasToussaint commented 4 years ago

As discussed, it is now expected to enter the full URL to InfluxDB, including the database name. The change in the UI is correctly taken into account for following pushes.

Could we add a hint to a proper configuration to the user ? For ex. indicate a possible conf for source code and Docker setup:

darshank15 commented 4 years ago

Done

NicolasToussaint commented 4 years ago

URL configuration works well, closing