-
Notifications
You must be signed in to change notification settings - Fork 54
Home
Welcome! This wiki is a resource for maintainers of the Sensu docs.
Sensu docs live primarily at docs.sensu.io, but they also include information stored elsewhere:
- docs.sensu.io: Sensu docs
- bonsai.sensu.io: Docs for individual assets and Bonsai instructions
- grafana-sensu-go-datasource README
- sensu-go-plugin: Sensu Go plugin skeleton
- sensu/examples: Repo of config examples and usage patterns for Sensu Go
- sensu/sandbox: Source code for the Vagrant-based sandbox and the Katacoda+Docker sandbox
- sensu-k8s-quick-start: Source code for a Kubernetes tutorial
- sensu/katacoda-scenarios: Scenario content for the Katacoda+Docker sandbox (sunsetted at the end of March 2021) -- the three published scenarios (up-and-running, sandbox, and sensu-pagerduty) have been reproduced in the docs as guides
The docs site is organized by product, version, and section.
# URL structure
https://docs.sensu.io/{ product name }/{ version number }/{ section name }/{ page name }
# Example
https://docs.sensu.io/sensu-go/5.11/api/overview
- URL: https://docs.sensu.io/
- Layout: https://github.com/sensu/sensu-docs/blob/master/layouts/index.html
- Styles: https://github.com/sensu/sensu-docs/blob/master/static/stylesheets/scss/_product-grid.scss
- Content: https://github.com/sensu/sensu-docs/blob/master/config.toml
- Sensu Go: Documentation for https://github.com/sensu/sensu-go and https://github.com/sensu/sensu-enterprise-go. This is our highest priority and most active content.
- [removed] Plugins: Originally created as a companion to the Sensu Plugins organization, these docs were ported over from http://sensu-plugins.io/ in mid-2018. The plugins docs were updated for Sensu Go in early 2021 and moved into the plugins category in the Sensu Go docs.
- Sensu Core: Documentation for https://github.com/sensu/sensu and related projects like https://github.com/sensu/sensu-omnibus. This project reached EOL on December 31, 2019.
- Uchiwa: Documentation for https://github.com/sensu/uchiwa. This project reached EOL on December 31, 2019.
- Sensu Enterprise: Documentation for https://github.com/sensu/sensu-enterprise. This project reached EOL on March 31, 2020.
- Sensu Enterprise Dashboard: Documentation for https://github.com/sensu/sensu-enterprise-dashboard. This project reached EOL on March 31, 2020.
Product names are defined in a few key locations: config.toml, static/stylesheets/homepage.css, static.json, footer.js. See this PR as a reference for creating new products or changing product names.
The Platforms and distributions page lists the versions of RHEL/CentOS, Debian, Ubuntu, and Windows with supported commercial distributions. We add a note explaining that users can search packagecloud for supported commercial distributions for other platforms.
Within each product, docs are versioned through 100% duplication, which means that for every version of each product, we have a folder containing all the docs.
Versioned products:
- Sensu Go (starts at 5.0)
- Sensu Core
- Sensu Enteprise (starts at 2.6)
- Sensu Enteprise Dashboard (starts at 2.9)
Non-versioned products:
- Uchiwa: Although the Uchiwa project is versioned, historically the docs have always lived at /uchiwa/1.0.
The system of 100% duplication was designed for a release system with a relatively slow progression of minor versions. With the higher rate of minor version releases in Sensu Go, docs are published for only supported versions (current version + three previous minor versions.
Update the current version and all versions supported under the Sensu License (current version + three previous minor versions), plus any pre-release versions currently published on the docs site.
Read Add a docs version in this wiki for more information.
The docs project include a feature to serve the latest version of a given doc by substituting latest
for the version number in the URL. For example docs.sensu.io/sensu-go/latest/guides always takes you to the latest version of that page. The version alert bar also works using this feature.
The latest redirect feature is configured in static.json, which must be manually updated to list the latest version of each product to use in the redirect.
The version alert bar appears if you're viewing a version other than the latest; selecting it takes you to the latest version of the page. It can be dismissed, but the dismissed state does not persist when navigating to other pages.
- Layout: https://github.com/sensu/sensu-docs/blob/master/layouts/partials/alertSection.html
- Javascript: https://github.com/sensu/sensu-docs/blob/master/layouts/partials/alert.html
Users can switch versions using the dropdown. Because the version dropdown is available on every page, it can create broken links for pages that don't exist in previous versions.
- Layout: https://github.com/sensu/sensu-docs/blob/master/layouts/partials/productVersionDropdown.html
Within a product and version, individual docs can live at the root level or within a section. Sections are surfaced in the sidebar. Sections require an _index.md
file within the section directory.
Sensu Go sections:
- Sensu Go (top level)
- Release notes (top level)
- Get Started with Sensu (top level)
- Platforms and Distributions (top level)
- Commercial Features (top level)
- Supported Versions (top level)
- Observability Pipeline
- Operations
- Guides Index
- Sensuctl CLI
- Web UI
- API
- Reference Index
- Plugins
- Learn Sensu
Docs are written as markdown files with extension .md
. See the style guide.
To redirect a URL, use static.json to apply redirects using URL matching.
Images are not versioned within the docs project. Images are stored at /static/images
.
Files have the option to be versioned or not. To create a versioned file, add the file to a /files
directory within the version directory (example). To create a not versioned file, add the file to /static/files
.
# Reference an image in /static/images
<div style="text-align:center">
<img alt="Sensu Clustered Architecture" title="Clustered Sensu Go Backend with Embedded etcd." src="/images/clustered_architecture.svg" width="800 px">
</div>
<!-- Diagram source: https://www.lucidchart.com/documents/edit/475f950e-2770-4bf7-af73-57bc834cebdd -->
# Reference a file in a versioned /files directory
See the [example config file](../../files/agent.yml) for flags and defaults.
The Sensu diagram template is available in Lucidchart. Diagrams are clearest and smallest when uploaded as SVGs with transparent backgrounds, but images must be saved as PNGs so that docs can be converted to PDF for offline access (PDF does not display SVGs).
Refer to the Sensu docs template and the Templates section in the Sensu docs style guide for template guidelines and requirements.
- Docs user personas
- Company strategy docs with personas
- "Model-based thinkers" (Reference: YouTube)
- Google Analytics
- Qualitative feedback spreadsheet
The Sensu docs use Algolia DocSearch configured in the footer_js partial. Log in at algolia.com with the Reliability team credentials stored in 1Password to see search analytics.
Search results should be scoped to the currently viewed product and version. Searches from the docs home page should be scoped to the latest version of all products.
-
Katacoda+Docker monitoring event pipeline tutorial (sunsetted)
- Content: https://github.com/sensu/katacoda-scenarios/tree/master/sandbox
- Content milestone: https://github.com/sensu/katacoda-scenarios/milestone/1
- Source: https://github.com/sensu/sandbox/tree/master/sensu-go-docker
- Source enhancement ideas: https://github.com/sensu/sandbox/issues/58
- Vagrant monitoring event pipeline
- Kubernetes+Sample app container and application monitoring
- Sensu+Prometheus metrics
- Live demo
See the Sensupedia for source code references for future automation.
service
agent
backend
sensuctl
platform
generic linux
specific linux
windows
macOS
artifact
binary
package
Docker image
Build from source
use case
containers
bare metal
VM
config management
support level
supported
available
not supported
tier
OSS (engine)
free
licensed
Include tabs along the bottom of the header. When selected, the tabs should cause a unique sidebar to display. Individual pages should be assigned to a tab using a frontmatter attribute. Implementation of tabs should not require changes to page URLs.
Design reference: https://developers.nest.com/guides/get-started (Get Started, API Guides, Account Management, Samples tabs)
A slot-machine style command builder that produces docs for different combinations.
An expandable, contractable config template with built in docs, possibly using the data used for the dashboard form generator.
Design references:
API docs should be re-organized by task, expanded to include attribute details, expanded to include guides to get started and accomplish common tasks, and integrated with automated testing.
References:
The Sensu docs were originally part of the sensu/website project. They moved to a standalone Hugo site and launched in March 2018.