Giter VIP home page Giter VIP logo

vsvolunteer's Introduction

Conservation International Data Visualizations

This is a guide for volunteers and data scientists to access Conservation International's repository and create data visualizations using the Kibana tool.

Setup

Install Elasticsearch and Kibana locally. Find instructions for your operating system here: https://www.elastic.co/guide/index.html

Database Access

We've provided data in PostgreSQL format that you can view and query to get an understanding what data is available for use.

Option 1. You can access the database by connecting with our volunteer read only user. This is a PostgreSQL database hosted on Amazon RDS. We recommend using a Postgres SQL client to connect and view data, such as Postico or pgAdmin. username: volunteer password: password host: 54.242.126.6

Transcribe Data From Postgres to ElasticSearch (ETL step)

In order to create a data visualization in Kibana, the data you wish to work with must be loaded into ElasticSearch. To do this, we typically use python scripts to query data from postgres and output it to ElasticSearch. The python script could be as simple as querying a few selected columns from a table, or it could be more complex and could programmatically aggregate and transform data.

See postgresToElasticSearch.py as an example.

Creating Data Visualization in Kibana

After you run your python script, navigate to your local kibana instance and configure a visualization.

To perform this task, you must first create a new index pattern. This can be done by following these steps:

  1. In Kibana, select "Management" from the left-side tab.
  2. Select "Index Patterns" on the following screen.
  3. Locate the “Add New” button in the top left hand corner and click the button.
  4. On the following page, update the “Index name or Pattern” field to be the name of the index imported (i.e. curation__household_secb).
    • Note: To update the available indexes you will have to click outside the text field.
    • There will be a dropdown that will allow indexing on a time-based event.

Your newly imported data will now be available for creating visualizations.

Consult the Kibana User Guide as needed.

When your visualization is complete, export it to a JSON file.

Commit the JSON export file to your repository.

Submit Pull Request

When you are satisfied with the python script and visualization JSON file, submit a pull request. If approved, your script will be added to the repository, the script will be executed, and the data you staged should become available in ElasticSearch. The approver will also import your visualization JSON file into the production Kibana instance.

Support

Please open an issue for support.

vsvolunteer's People

Contributors

dave4988 avatar davidvallen avatar lesterxue avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

interpfister

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.