monasca-log-api  2.9.0
About: OpenStack Monasca Log API is a RESTful API server acting as gateway for logs collected from log-agents.
The "Stein" series (latest release).
  Fossies Dox: monasca-log-api-2.9.0.tar.gz  ("inofficial" and yet experimental doxygen-generated source code documentation)  

grafana.py File Reference

Go to the source code of this file.

Namespaces

 grafana
 

Functions

def grafana.retry (retries=5, delay=2.0, exc_types=(RequestException,))
 
def grafana.create_login_payload ()
 
def grafana.login (session, user)
 
def grafana.create_dashboard_payload (json_path)
 
def grafana.main ()
 

Variables

 grafana.LOG_LEVEL = logging.getLevelName(os.environ.get('LOG_LEVEL', 'INFO'))
 
 grafana.level
 
 grafana.logger = logging.getLogger(__name__)
 
 grafana.GRAFANA_URL = os.environ.get('GRAFANA_URL', 'http://localhost:3000')
 
 grafana.GRAFANA_USERNAME = os.environ.get('GRAFANA_USERNAME', 'mini-mon')
 
 grafana.GRAFANA_PASSWORD = os.environ.get('GRAFANA_PASSWORD', 'password')
 
list grafana.GRAFANA_USERS = [{'user': GRAFANA_USERNAME, 'password': GRAFANA_PASSWORD, 'email': ''}]
 
 grafana.DASHBOARDS_DIR = sys.argv[1]