This is the repository containing the Analytical Platform status page.
The static website is under the /analytical-platform directory.
The static website is generated using Hugo a popular static website generator.
The Status Page use the cState which also provide the "issue" archetype.
On a Mac you can hugo by running brew install hugo, alternatively you
can follow the installation instructions on the Hugo website.
Incidents are simply Markdown files (like test-issue.md) that are under content/issues/. They are formatted in such a way that cState can recognize the inputted data and generate your status page appropriately.
To create a new incident copy the content/issues/YYYY-MM-DD-template.md file:
# remember to tweak the destination filename
$ cp analytical-platform/content/issues/YYYY-MM-DD-template.md analytical-platform/content/issues/YYYY-MM-DD-incident-slug.mdThen edit this newly created file updating the following fields as necessary:
title, title of the issue, e.g. "DB Connection Issues"date, ISO-8601 formatted date when the incident was first discovered - including the seconds. (required)resolved, boolean,truewhen an issue is resolvedresolvedWhen, date when the issue was resolved (required ifresolvedistrue!)severity, can benotice,disruptedordown(from lower to higher severity)affected, list of systems affected, e.g.Control PanelorKubernetes Clustersection, is alwaysissue(don't change it)published, boolean which determine if the incident page is published
The details of the incident will go under --- (there are some
example issues under content/issues/).
Note the use of the {{< track "2019-01-01 15:56:00" >}} shortcode which
will be displayed nicely in the rendered page - just remember to include
the seconds.
Remember to change published: true when you're happy with
the incident content.
See: cState documentation on creating a new incident.
You can see how the Status Page will look like by running the Hugo server locally.
From the /analytical-platform/ directory
run the following command:
$ hugo serverThen go to http://localhost:1313/ in your browser (or at whatever URL/port Hugo will run at).
TODO
The "issue" archetype is just a custom page type with the following attributes:
Systems are high level (ish) components. Users may want to know if these are operational or not.
At the moment we only have the following Systems:
Control PanelKubernetes Cluster
We may want to add more or tweak the description. This can be done
updating the params.systems configuration in the /analytical-platform/config.yml file if necessary.
NOTE: When using these in the affected field of an issue be sure
that the case is the same.
Custom Tabs are shown in the page and we use them to link to the status pages of the following services:
- Auth0
- AWS
- GitHub
Again, if necessary this list can be changed by changing the customTabs
configuration in the /analytical-platform/config.yml file.
For additional information you can look at the cState wiki at https://github.com/cstate/cstate/wiki