Dashboards for Prometheus.

$ bundle exec rake
$ RAILS_ENV=test bundle exec rake karma:run
JSHint is run against all pull requests. To shorten the feedback loop, it is recommended that you run JSHint locally. With NPM installed, install and run JSHint:
$ npm install jshint -g
$ jshint app/assets/javascripts
Install gems:
bundle
Set up your database:
cp config/database.yml.example config/database.yml
RAILS_ENV=development bundle exec rake db:setup
Start the Rails server:
bundle exec rails s
In production mode, you need to define a number of environment variables to configure the database parameters:
DATABASE_URL="mysql2://username:password@host/database"
RAILS_ENV="production"
Create a self-contained Ruby environment and precompile assets:
make build
Run the production server from the bundled environment:
bin/env bin/bundle exec bin/thin -p $PORT start
To deploy PromDash with Docker, use the prom/promdash. By default, the image will start the thin webserver webserver in production mode. To run rake tasks like migrations, you can specify any kind of command as parameter to the Docker image:
docker run -e DATABASE_URL=... prom/promdash ./bin/rake db:migrate
To deploy PromDash behind a reverse proxy you can set a global path prefix
using the environment variable PROMDASH_PATH_PREFIX. Once set all URLs will
start with the given prefix.
Before deploying a new version of PromDash, follow this checklist:
bundle exec rake db:migrate)?After deploying a new version:
Since we frequently need to display various PromDash views in inline frames, we
disabled Rails' default header X-Frame-Options: SAMEORIGIN for all views:
https://github.com/prometheus/promdash/commit/5b1da215296b5316568ad7c8449652f0d7f74ebe
If you are worried about clickjacking attacks, it is safe to revert this commit as long as you don't need to display dashboards in iframes.
Content type
Image
Digest
sha256:bb96d1128…
Size
387.6 MB
Last updated
almost 11 years ago
docker pull crccheck/promdash