Configuration - absalon-james/grafanizer GitHub Wiki
A configuration file, environment variables, and command line arguments can all be used to configure Grafanizer. Command line argument have the highest precedence while values in the configuration file hold the least precedence.
Example Configuration File
datasource:
username: some-username
tenant: some-tenant-id
api_key: some-api-key
url: https://monitoring.api.rackspacecloud.com/v1.0
retries: 10
template_dir: /home/someuser/grafanizer/sample_templates
key | environment | command line | description |
---|---|---|---|
config_file | G_CONFIG_FILE | g_config_file | String - Location of the configuration file. Defaults to ~/.grafanizerrc |
datasource:username | G_DATASOURCE_USERNAME | g_datasource_username | String - username |
datasource:tenant | G_DATASOURCE_TENANT | g_datasource_tenant | String - tenant |
datasource:api_key | G_DATASOURCE_API_KEY | g_datasource_api_key | String - api key |
datasource:url | G_DATASOURCE_URL | g_datasource_url | String - api url |
retries | G_RETRIES | g_retries | Integer - number of retries. Defaults to 5 |
template_dir | G_TEMPLATE_DIR | g_template_dir | String - Location of directory containing templates. Defaults to '~/templates' |
pool_size | G_POOL_SIZE | g_pool_size | Integer - Number of green threads in pool when retrieving information about entities. Defaults to 100 |