-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve ceagle configurability (#10)
* Automatically try to fetch config in json format from "/etc/ceagle/config.json" * Allow to pass path to config file via CEAGLE_CONF env variable * Add readme file that describes all config options * Allow to specify name of portal
- Loading branch information
Showing
5 changed files
with
95 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
Ceagle Portal Configuration | ||
=========================== | ||
|
||
Placement | ||
--------- | ||
|
||
config.json should be placed to /etc/ceagle/config.json | ||
|
||
|
||
Configuration File Description | ||
------------------------------ | ||
|
||
Configuration file is plain json document with 3 top level keys: | ||
|
||
* flask - Flask configuration arguments with Host and Port options added. | ||
* global - All global settings (e.g. cloud portal name) | ||
* cloud_status - cloud_status pages configuration | ||
|
||
|
||
Configuration Of cloud_status In Nuts | ||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
|
||
* enabled - If True initialize /cloud_status/ API and "Cloud status" menu | ||
* enabled_dashboards - initializes sub API /cloud_status/availability and /cloud_status/health with sub menus | ||
* regions - list of regions that should be displayed | ||
** region - displayed name of region | ||
** health - dict with 2 items connection URL to Elastic Search & index from what to query health data production by | ||
https://github.com/ceagle/health | ||
** availability - dict with single argument "graphite" that is used to specify connection string to graphite that stores metrics. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
{ | ||
"flask": { | ||
"PORT": 5000, | ||
"HOST": "0.0.0.0" | ||
}, | ||
|
||
"global": { | ||
"portal_name": "Cloud Eagle" | ||
}, | ||
|
||
"cloud_status": { | ||
"enabled": true, | ||
"enabled_dashboards": ["availability", "health"], | ||
"regions": [ | ||
{ | ||
"region": "west-1.hooli.net", | ||
"health": { | ||
"elastic": "<elastic_connection_string>", | ||
"elastic_index": "<index_with_data_in_required_format>" | ||
}, | ||
"availability": { | ||
"graphite": "<graphite_connection_string>" | ||
} | ||
}, | ||
{ | ||
"region": "west-2.hooli.net", | ||
"health": { | ||
"elastic": "<elastic_connection_string>", | ||
"elastic_index": "<index_with_data_in_required_format>" | ||
}, | ||
"availability": { | ||
"graphite": "<graphite_connection_string>" | ||
} | ||
} | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters