From the course: Graphite and Grafana: Visualizing Application Performance

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Setting up the Graphite-web database

Setting up the Graphite-web database

From the course: Graphite and Grafana: Visualizing Application Performance

Start my 1-month free trial

Setting up the Graphite-web database

- [Narrator] After installing Postgres we will need to log in as the Postgres user created during instillation and create a Graphite user and Graphite database. First, we'll log into the Postgres shell. You do that by typing, "sudo -u postgres psql". Then, we'll create a Graphite user and secure it with a super secure password. So, we type, "CREATE USER graphite WITH PASSWORD 'password'" Note, please do not use the password "password" in your production set up. After creating the user, create a Graphite database and assign ownership of said database to the Graphite user. So, to create the database we'll type, "CREATE DATABASE graphite WITH OWNER graphite" and hit enter, and then once the database has been created, we can exit the Postgres shell and configure Graphite to use Postgres. So, to exit type, "\q" and we're back in the bash shell. And then we'll open up the local settings file for Graphite web, located at etc/graphite/local_settings. So, we'll type, "sudo vim…

Contents