Introduction
- Welcome!
- What are we trying to do?
- Who is this book for?
- What will we need?
- Why on earth did I write this rambling tome?
- Where can you get more information?
The History of the Raspberry Pi
Raspberry Pi Versions
- Raspberry Pi B+, B2, B3 and B3+
- USB Ports
- Video Out
- Ethernet Network Connection
- USB Power Input Jack
- MicroSD Flash Memory Card Slot
- Stereo and Composite Video Output
- 40 Pin Header
- Raspberry Pi 4
- Pi 4 USB ports and Ethernet Ports
- Pi 4 USB C Power Input
- Pi 4 Dual Video Out
Raspberry Pi Peripherals
- SD Card
- Keyboard / Mouse
- Video
- Network
- Power supply
- Cases
Operating Systems
- Welcome to Raspberry Pi OS
- Raspberry Pi OS and Raspbian
- Operating System Evolution
- Downloading
- Writing the Operating System image to the SD Card
- Powering On
- The Command Line interface
- Raspberry Pi Software Configuration Tool
- Software Updates
Power Up the Pi
- Static IP Address
- The Netmask
- CIDR Notation
- Distinguish Dynamic from Static
- Default Gateway
- For OS’s Prior to bookworm
- For OS’s From bookworm onward
- Remote access
- Remote access via SSH
- Setting up the Server (Raspberry Pi)
- Setting up the Client (Windows)
- WinSCP
- Setting up a WiFi Network Connection
- Built in WiFi Enabling
- Make the changes operative
- Make the built in WiFi IP address static
- Make the changes operative
- WiFi Via USB Dongle
- Editing files
- Make the changes operative
- Make USB WiFi IP address static
- Make the changes operative
About Prometheus
About Grafana
Installation
- Installing Prometheus
- Installing Grafana
- Installing Grafana Manually
- Installing Grafana Automatically Using ‘apt-get’
- Using Grafana
Exporters
- Node Exporter
Prometheus Collector Configuration
globalalertingrule_filesscrape_configs
Adding a monitoring node to Prometheus
- Let’s see our new node in Grafana!
WMI exporter
- Installing the WMI exporter
- Adding adding our Windows exporter to Prometheus
- Let’s see our new node in Grafana!
Custom Exporters
- Metrics
- Metric Types
- Metric Names
- Metric Labels
- Configuring the exporter
- Adding adding our custom exporter to Prometheus
- Creating a new graph in Grafana
Dashboards
- Overview
- New Panel
- Query Options
- Visualization Options
- Graph
- Stat
- Gauge
- Bar Gauge
- Table
- Singlestat
- Text
- Heatmap
- Dashboard List
- News Panel
- Logs
- General
- Alerting
Upgrading Prometheus
- Download
- Stop the services
- Copy the configuration and data
- Run the new version manually and test
- Stop the newer version
- Change the directory names
- Start the services.
Upgrading Grafana
- Download
- Stop the old version
- Copy the configuration and data
- Run the new version manually and test
- Stop the newer version
- Change the directory names
- Start the Grafana service.
Prometheus and Grafana Tips and Tricks
- Fill in Null Values in a Graph
- Exporting Data from a Grafana Graph
Linux Concepts
- What is Linux?
- Linux Directory Structure
//bin/boot/dev/etc/etc/cron.d/etc/rc?.d/home/lib/lost+found/media/mnt/opt/proc/root/sbin/srv/tmp/usr/usr/bin/usr/lib/usr/local/usr/sbin/var/var/lib/var/log/var/spool/var/tmp- Everything is a file in Linux
- Traditional Files
- Directories
- System Information
- Devices
File Editing
- The nano Editor
Linux Commands
- Executing Commands in Linux
- The Commands
- Options
- Arguments
- Putting it all together
apt-get- The
apt-getcommand apt-get updateapt-get upgradeapt-get installapt-get removecd- The
cdcommand - Options
- Arguments
- Examples
- Test yourself
ifconfig- The
ifconfigcommand - Options
- Arguments
- Test yourself
mv- The
mvcommand - Options
- Examples
- Test yourself
rm- The
rmcommand - Options
- Arguments
- Test yourself
sudo- The
sudocommand - The ‘sudoers’ file
sudovssu- Test yourself
tar- The
tarcommand - Options
- Test yourself
wget- The
wgetcommand - Test yourself