Skip to content

grafana job from grafana/1

Github source: 02f120d1 or master branch

Properties

grafana

admin_password

Password for the initial admin user.

admin_username

Username for the initial admin user.

auth

anonymous
enabled

If enabled, users do not have to log in.

Default
false
organization

The organization that should be used for unauthenticated users.

Default
Main Org.
organization_role

The role to assume for anonymous users.

Default
Viewer
github
allow_sign_up

Permit users to register via GitHub OAuth.

Default
true
allowed_email_domains

E-mail address domains to allow. If empty, all are allowed.

Default
[]
allowed_organizations

GitHub organizations to allow. If empty, all are allowed.

Default
[]
api_url

GitHub users API endpoint.

Default
https://api.github.com/user
auth_url

GitHub OAuth authorization endpoint.

Default
https://github.com/login/oauth/authorize
client_id

GitHub OAuth client ID.

client_secret

GitHub OAuth client secret.

enabled

Permit users to authenticate via GitHub OAuth.

Default
false
team_ids

GitHub team IDs to allow. If empty, all are allowed.

Default
[]
token_url

GitHub OAuth access token endpoint.

Default
https://github.com/login/oauth/access_token
google
allow_sign_up

Permit users to register via Google OAuth.

Default
true
allowed_email_domains

E-mail address domains to allow. If empty, all are allowed.

Default
[]
api_url

Google users API endpoint.

Default
https://www.googleapis.com/oauth2/v1/userinfo
auth_url

Google OAuth authorization endpoint.

Default
https://accounts.google.com/o/oauth2/auth
client_id

Google OAuth client ID.

client_secret

Google OAuth client secret.

enabled

Permit users to authenticate via Google OAuth.

Default
false
token_url

Google OAuth access token endpoint.

Default
https://accounts.google.com/o/oauth2/token

listen_port

TCP port on which the Grafana server should listen.

Default
3000

root_url

The full root URL for the instance. Used for OAuth callbacks.

ssl

cert

SSL cert to use for HTTPS. If not specified, the server will listen in plaintext.

key

SSL private key to use for HTTPS. If not specified, the server will listen in plaintext.

users

allow_organization_creation

If enabled, non-admin users can create organizations.

Default
false
allow_sign_up

If enabled, users can create their own accounts.

Default
false
auto_assign_organization

If enabled, new users will be automatically added to the default organization (id 1).

Default
true
auto_assign_organization_role

The role for new users when automatically added to the default organization.

Default
Viewer

Templates

Templates are rendered and placed onto corresponding instances during the deployment process. This job's templates will be placed into /var/vcap/jobs/grafana/ directory (learn more).

  • bin/grafana_ctl (from grafana_ctl)
  • config/config.ini (from config.ini.erb)
  • config/ssl.crt (from ssl.crt.erb)
  • config/ssl.key (from ssl.key.erb)

Packages

Packages are compiled and placed onto corresponding instances during the deployment process. Packages will be placed into /var/vcap/packages/ directory.