grafana job from grafana/3
Github source:
238c3e8
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
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
proxy
¶
auto_sign_up
¶Enable sign up of users who do not exist in Grafana DB
enabled
¶Handle authentication in a http reverse proxy
header_name
¶The name of the http header used to forward authenticated user
header_property
¶Whether the header contains a user name or an email address (allowed values are ‘username’ or ‘email’).
datasource
¶
database_name
¶The name of the metrics database
database_type
¶The type of the metrics database
name
¶The name of the datasource that points to the metrics database
password
¶The password for the metrics database
url
¶The url of the metrics database. No datasource will be created if this is set to nil.
user
¶The user name for the metrics database
datasources
¶
- If you want to configure multiple datasources, you can define an array of hashes here. Each hash must have ‘name’, ‘url’, ‘database_type’, ‘user’, ‘password’ and ‘database_name’ defined.
- These datasources will be created in addition to the datasource defined in ‘grafana.datasource’. The latter property is for backwards compatibility.
- Example
|+ - name: influxdb url: http://1.2.3.4:8086 database_type: influxdb user: admin password: admin123 database_name: metrics
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/create-update-datasources
(fromcreate-update-datasources.erb
)bin/grafana_ctl
(fromgrafana_ctl
)bin/post-start
(frompost-start
)config/config.ini
(fromconfig.ini.erb
)config/ssl.crt
(fromssl.crt.erb
)config/ssl.key
(fromssl.key.erb
)
Packages¶
Packages are compiled and placed onto corresponding
instances during the deployment process. Packages will be
placed into /var/vcap/packages/
directory.