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.md
Then 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,true
when an issue is resolvedresolvedWhen
, date when the issue was resolved (required ifresolved
istrue
!)severity
, can benotice
,disrupted
ordown
(from lower to higher severity)affected
, list of systems affected, e.g.Control Panel
orKubernetes Cluster
section
, 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 server
Then 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 Panel
Kubernetes 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