Class: GiraffeWeb

GiraffeWeb

new GiraffeWeb(options)

Parameters:
Name Type Description
options hash
Properties
Name Type Description
port integer

Port to start the webserver on

graphiteUrl string

Graphite URL to connect to

configFile string

Path for the dashboardsfile to read

proxyGraphite boolean

Flag if we need to proxy Graphite requests via this webserver

Source:

Members

<static> loadConfig

Method to read the config dashboard and replace the graphite according to settings If we proxy it replaces the graphiteURL to point to this webserver/graphite

Source:

<static> start

Method to launch the webserver

  • If we proxyGraphite, we will proxy the request to another Graphite HTTP server
  • We override the dashboards.js file provided by plain Giraffe by our own dashboard file specified
Source: