Skip to content

Commit

Permalink
Fix tab formatting in Longview guides (#6967)
Browse files Browse the repository at this point in the history
* Fix tab formatting in Longview guides

* Fix indendation
  • Loading branch information
wildmanonline authored May 21, 2024
1 parent 3f9f8ed commit 3743897
Show file tree
Hide file tree
Showing 3 changed files with 95 additions and 95 deletions.
102 changes: 51 additions & 51 deletions docs/products/tools/longview/get-started/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,51 +84,51 @@ If the [automatic installation](#automatic-installation) instructions failed, yo
1. Add a configuration file to store the repository information for the Longview agent:

{{< tabs >}}
{{% tab "Debian and Ubuntu" %}}
Find the codename of the distribution running on your Linode.
{{< tab "Debian and Ubuntu" >}}
Find the codename of the distribution running on your Linode.

```command
root@localhost:~# lsb_release -sc
```
```command
root@localhost:~# lsb_release -sc
```

```output
stretch
```
```output
stretch
```

Using the text editor of your choice, like [nano](/docs/guides/use-nano-to-edit-files-in-linux/), create a custom sources file that includes Longview's Debian repository and the Debian distribution codename. In the command below, replace *stretch* with the output of the previous step.
Using the text editor of your choice, like [nano](/docs/guides/use-nano-to-edit-files-in-linux/), create a custom sources file that includes Longview's Debian repository and the Debian distribution codename. In the command below, replace *stretch* with the output of the previous step.
```file {title="/etc/apt/sources.list.d/longview.list" lang="config"}
deb http://apt-longview.linode.com/ stretch main
```
{{% /tab %}}
{{% tab "CentOS" %}}
Using the text editor of your choice, like [nano](/docs/guides/use-nano-to-edit-files-in-linux/), create a `.repo` file and copy the contents of the example file below. Replace `REV` in the repository URL with your CentOS version (e.g., 7). If unsure, you can find your CentOS version number with `cat /etc/redhat-release`.
```file {title="/etc/yum.repos.d/longview.repo" lang="config"}
[longview]
name=Longview Repo
baseurl=https://yum-longview.linode.com/centos/REV/noarch/
enabled=1
gpgcheck=1
```
{{% /tab %}}
```file {title="/etc/apt/sources.list.d/longview.list" lang="config"}
deb http://apt-longview.linode.com/ stretch main
```
{{< /tab >}}
{{< tab "CentOS" >}}
Using the text editor of your choice, like [nano](/docs/guides/use-nano-to-edit-files-in-linux/), create a `.repo` file and copy the contents of the example file below. Replace `REV` in the repository URL with your CentOS version (e.g., 7). If unsure, you can find your CentOS version number with `cat /etc/redhat-release`.
```file {title="/etc/yum.repos.d/longview.repo" lang="config"}
[longview]
name=Longview Repo
baseurl=https://yum-longview.linode.com/centos/REV/noarch/
enabled=1
gpgcheck=1
```
{{< /tab >}}
{{< /tabs >}}
1. Download the repository's GPG key and import or move it to the correct location:

{{< tabs >}}
{{% tab "Debian and Ubuntu" %}}
```command
sudo curl -O https://apt-longview.linode.com/linode.gpg
sudo mv linode.gpg /etc/apt/trusted.gpg.d/linode.gpg
```
{{% /tab %}}
{{% tab "CentOS" %}}
```command
sudo curl -O https://yum-longview.linode.com/linode.key
sudo rpm --import linode.key
```
{{% /tab %}}
{{< tab "Debian and Ubuntu" >}}
```command
sudo curl -O https://apt-longview.linode.com/linode.gpg
sudo mv linode.gpg /etc/apt/trusted.gpg.d/linode.gpg
```
{{< /tab >}}
{{< tab "CentOS" >}}
```command
sudo curl -O https://yum-longview.linode.com/linode.key
sudo rpm --import linode.key
```
{{< /tab >}}
{{< /tabs >}}

1. Create a directory for the API key:
Expand All @@ -146,17 +146,17 @@ sudo rpm --import linode.key
1. Install Longview:
{{< tabs >}}
{{% tab "Debian and Ubuntu" %}}
```command
sudo apt update
sudo apt install linode-longview
```
{{% /tab %}}
{{% tab "CentOS" %}}
```command
sudo yum install linode-longview
```
{{% /tab %}}
{{< tab "Debian and Ubuntu" >}}
```command
sudo apt update
sudo apt install linode-longview
```
{{< /tab >}}
{{< tab "CentOS" >}}
```command
sudo yum install linode-longview
```
{{< /tab >}}
{{< /tabs >}}
## Start the Longview Agent {#start-agent}
Expand All @@ -170,7 +170,7 @@ sudo systemctl status longview
You should see a similar output:
{{< tabs >}}
{{% tab "Debian and Ubuntu" %}}
{{< tab "Debian and Ubuntu" >}}
```output
● longview.service - LSB: Longview Monitoring Agent
Loaded: loaded (/etc/init.d/longview; generated; vendor preset: enabled)
Expand All @@ -181,8 +181,8 @@ Process: 2997 ExecStart=/etc/init.d/longview start (code=exited, status=0/SUCCES
CGroup: /system.slice/longview.service
└─3001 linode-longview
```
{{% /tab %}}
{{% tab "CentOS" %}}
{{< /tab >}}
{{< tab "CentOS" >}}
```output
● longview.service - SYSV: Longview statistics gathering
Loaded: loaded (/etc/rc.d/init.d/longview; bad; vendor preset: disabled)
Expand All @@ -195,7 +195,7 @@ Dec 10 22:35:11 203-0-113-0.ip.linodeusercontent.com systemd[1]: Starting SYSV:
Dec 10 22:35:11 203-0-113-0.ip.linodeusercontent.com longview[12198]: Starting longview: [ OK ]
Dec 10 22:35:11 203-0-113-0.ip.linodeusercontent.com systemd[1]: Started SYSV: Longview statistics gathering.
```
{{% /tab %}}
{{< /tab >}}
{{< /tabs >}}
If the Longview agent is not running, start it with the following command:
Expand Down
58 changes: 29 additions & 29 deletions docs/products/tools/longview/guides/apache/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,23 +74,23 @@ To enable the Apache Longview integration manually, follow these steps on your s
1. Verify that **mod\_status** is enabled for Apache (it should be by default). For more information, see the [Apache Module mod\_status](https://httpd.apache.org/docs/2.4/mod/mod_status.html) documentation.

{{< tabs >}}
{{% tab "Debian and Ubuntu" %}}
```command
sudo a2enmod status
```
{{% /tab %}}
{{% tab "CentOS" %}}
```command
sudo yum install links
httpd -M | grep status
```
{{< tab "Debian and Ubuntu" >}}
```command
sudo a2enmod status
```
{{< /tab >}}
{{< tab "CentOS" >}}
```command
sudo yum install links
httpd -M | grep status
```

The output should be similar to:
The output should be similar to:

```output
status_module (shared)
```
{{% /tab %}}
```output
status_module (shared)
```
{{< /tab >}}
{{< /tabs >}}

1. Update your Apache configuration file to include the block in the example file below. Depending on your Linux distribution and version, your Apache configuration file may be stored in one of the following locations:
Expand Down Expand Up @@ -118,16 +118,16 @@ status_module (shared)
1. Restart Apache:
{{< tabs >}}
{{% tab "Debian and Ubuntu" %}}
```command
sudo systemctl restart apache2
```
{{% /tab %}}
{{% tab "CentOS" %}}
```command
sudo systemctl restart httpd
```
{{% /tab %}}
{{< tab "Debian and Ubuntu" >}}
```command
sudo systemctl restart apache2
```
{{< /tab >}}
{{< tab "CentOS" >}}
```command
sudo systemctl restart httpd
```
{{< /tab >}}
{{< /tabs >}}
1. Restart Longview:
Expand Down Expand Up @@ -348,16 +348,16 @@ ExtendedStatus On
When you've finished modifying the configuration file, restart Apache:
{{< tabs >}}
{{% tab "Debian and Ubuntu" %}}
{{< tab "Debian and Ubuntu" >}}
```command
sudo systemctl restart apache2
```
{{% /tab %}}
{{% tab "CentOS" %}}
{{< /tab >}}
{{< tab "CentOS" >}}
```command
sudo systemctl restart httpd
```
{{% /tab %}}
{{< /tab >}}
{{< /tabs >}}
### Apache Tab is Missing
Expand Down
30 changes: 15 additions & 15 deletions docs/products/tools/longview/guides/manage/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,19 +45,19 @@ To start capturing metrics for one of your Compute Instances (or other Linux sys
5. Uninstall the Longview Agent by removing the `linode-longview` package.

{{< tabs >}}
{{% tab "Debian and Ubuntu" %}}
```command
sudo apt-get remove linode-longview
```
{{% /tab %}}
{{% tab "CentOS" %}}
```command
sudo yum remove linode-longview
```
{{% /tab %}}
{{% tab "Other Distributions" %}}
```command
sudo rm -rf /opt/linode/longview
```
{{% /tab %}}
{{< tab "Debian and Ubuntu" >}}
```command
sudo apt-get remove linode-longview
```
{{< /tab >}}
{{< tab "CentOS" >}}
```command
sudo yum remove linode-longview
```
{{< /tab >}}
{{< tab "Other Distributions" >}}
```command
sudo rm -rf /opt/linode/longview
```
{{< /tab >}}
{{< /tabs >}}

0 comments on commit 3743897

Please sign in to comment.