Skip to content

Commit

Permalink
Add login and metrics docs
Browse files Browse the repository at this point in the history
  • Loading branch information
joecorall committed Nov 18, 2023
1 parent b8f0196 commit caf9600
Show file tree
Hide file tree
Showing 7 changed files with 41 additions and 1 deletion.
Binary file added docs/assets/img/metrics/coldstart.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/assets/img/metrics/container-metrics.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/assets/img/metrics/php-logs.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
29 changes: 29 additions & 0 deletions docs/development/metrics.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# LibOps Metrics

Your LibOps site services emits metrics that are aggregated and displayed on your LibOps Metrics dashboard. You can find the link to you dashboard at [https://www.libops.io/user](https://www.libops.io/user)

## Timing metrics

At the top of the metrics dashboard are metrics related to the number of requests and latency of those requests to your site, grouped by environment.

There's also a metric to record how long your environment takes to come online after a cold start. Keep in mind, cold starts only happen during a period of inactivity to your development environment (and also your production environment for sites not on a payment plan)

![Coldstart](../assets/img/metrics/coldstart.png)

## PHP Logs

The dashboard contains a filtered log view of any PHP errors that might be occurring on your site. There's also a link to the log explorer for further log analysis/troubleshooting.

![PHP Logs](../assets/img/metrics/php-logs.gif)

## Container metrics

All of the services running on your LibOps envionrment have CPU, memory, i/o, and network metrics emitted. These metrics can be viewed as an aggregate of all environments and all containers

![Container metrics](../assets/img/metrics/container-metrics.gif)

### Filter container metrics

You also can filter which container metrics to view by selecting `cluster` to filter by a given LibOps environment and/or selectioning `name` to filter by a given service

![Filter metrics](../assets/img/metrics/container-metrics-filters.gif)
8 changes: 8 additions & 0 deletions docs/site/login.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
## Logging into your Drupal site

When you first create a site on LibOps, logging into the admin account on the Drupal site can only be done by:

1. Using [the LibOps CLI to run drush uli](../development/cli.md#drush).
2. Accessing the login link [from your site dashboard](https://www.libops.io/user)

Both approaches generate a one-time login link for the super user account on your Drupal site. Keep the link safe and never share it with anyone you don't want to have full administrative access to your site.
5 changes: 4 additions & 1 deletion mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,7 @@ nav:
- LibOps CLI: development/cli.md
- LibOps YML: development/yml.md
- Redis: development/redis.md
- Site: 'site/index.md'
- Metrics: development/metrics.md
- Site:
- Overview: 'site/index.md'
- Login: 'site/login.md'

0 comments on commit caf9600

Please sign in to comment.