Application Analytics: Traffic, PHP, Database & Disk

Traffic, PHP performance, database activity and disk usage for one application, in one place.

5 min read, 7 sections, Updated , Published

Analytics shows traffic, performance, database activity and disk usage for one application, read live from the server. Use it to see who is visiting, spot errors and bots, find slow pages and check what is using space.

Getting here: Servers → select a server → Applications → select an application → Analytics.

1. Tabs and Time Range

TabShows
TrafficRequests, visitors, bots, errors and bandwidth from the web server's access log.
PHP (PHP applications) or Performance (other applications)Server load, running processes and, for PHP, slow requests.
DatabaseConnections, running queries and database size.
Disk usageThe application's files and database size, the largest folders and files, and free disk space.

Choose a time range of 15 min, 1 hour, 24 hours or 7 days, and click the refresh button to load the latest figures. Times are shown in the server's time zone.

2. Traffic

Screenshot: 2. Traffic

The summary cards show, for the selected time range:

CardMeaning
RequestsThe number of requests the application answered.
Unique IPsDistinct visitor and bot IP addresses.
Bot trafficThe share and number of requests from bots and crawlers.
Server errorsThe share and number of 5xx error responses.
BandwidthData sent to visitors.

Requests over time charts requests by response type: 2xx (success), 3xx (redirects), 4xx (client errors such as not found) and 5xx (server errors). A rise in 5xx means the application is failing; a rise in 4xx often means broken links or bots probing for pages.

Below the chart, switch between:

  • Top IPs: the busiest IP addresses, with a reputation badge, who they are, request count and share. Click Details for the user agent.
  • Top URLs: the most requested addresses.
  • Bots: requests from known bots and crawlers.
  • Status codes: requests by HTTP status code.
  • Bandwidth: the files and pages sending the most data.

Traffic is read from the most recent 10,000 lines of the application's access log, so on very busy sites the longer ranges may only cover part of the period. When the application is behind Cloudflare or another proxy, real visitor IPs are taken from the CF-Connecting-IP or X-Forwarded-For header.

3. PHP and Performance

Screenshot: 3. PHP and Performance

PHP applications (such as Laravel, WordPress and Magento) show a PHP tab; other applications show Performance.

PHP

CardMeaning
Slow requestsRequests recorded in the PHP-FPM slow log.
PHP workers busyPHP-FPM worker processes currently running.

The Slow pages list groups slow-log entries by script, and Running processes lists the PHP processes with their CPU and memory use.

Performance

Shows the server's total CPU and memory use, and the busiest Running processes with their CPU and memory share. These are whole-server figures, so they include other applications on the same server.

Average response time and slowest page show N/A: they need application performance monitoring, which is not built in.

4. Database

Screenshot: 4. Database

For applications using MySQL or MariaDB:

CardMeaning
Active connectionsCurrently open database connections.
Running queriesQueries running right now, listed under Running queries.
Slow queriesNot tracked; shows 0.
Database sizeThe size of the application's database, including indexes.

Use Running queries to spot a query that is holding things up. For PostgreSQL and MongoDB applications, this tab shows no figures.

5. Disk Usage

Screenshot: 5. Disk Usage
CardMeaning
Total sizeThe application's files plus its database.
File storageThe size of the application's folder.
Database storageThe size of the application's database tables.
Free spaceFree space left on the server's disk.

Top folders and Largest files show what is taking the most space, with each one's share of the application's files. Common causes are log files, caches, uploaded media and old backups or exports left in the application folder.

6. Using Analytics

  • Site slow or failing: check Traffic for a rise in 5xx errors, then PHP or Performance for slow pages and busy processes, then Database for long-running queries.
  • Unexpected traffic: check Top IPs and Bots. Block abusive IPs from the server's Security page.
  • Disk filling up: check Disk usage for the largest folders and files, and set up a Health alert for disk usage on the server's Monitoring page.

7. Common Problems

ProblemWhat to check
No graph data availableThere were no requests in the selected range, or the access log could not be found. Try a longer range, and check the application has a working domain.
All visitors show the same IPThe application is behind a proxy that does not pass the visitor's IP. Make sure it sends X-Forwarded-For or, for Cloudflare, CF-Connecting-IP.
Database tab shows nothingThe tab supports MySQL and MariaDB only, and needs the application's database credentials.
Average response time shows N/AExpected: response times need application performance monitoring, which is not built in.
Figures look out of dateClick the refresh button.

Frequently asked questions

Why do all visitors in Analytics show the same IP address?

The application is behind a proxy that does not pass the visitor's IP. Make sure the proxy sends X-Forwarded-For or, for Cloudflare, CF-Connecting-IP.

How do I find out why my site is slow using Analytics?

Check Traffic for a rise in 5xx errors, then the PHP or Performance tab for slow requests and busy processes, then Database for long-running queries.

Why does Analytics show N/A for average response time?

Average response time and slowest page need application performance monitoring, which is not built in, so they show N/A.

What does application Analytics show?

Analytics shows traffic, PHP or process performance, database activity and disk usage for one application, read live from the server, so you can spot errors, bots, slow pages and what is using space.

Something here not matching what you see in the panel?

Start your journey today

How do you start with SharkCluster?

Create a SharkCluster account, then create your first server on DigitalOcean, Contabo or OVHcloud. SharkCluster provisions it, installs your stack, and handles the firewall, backups and health alerts from one panel. You can start without a credit card and with no lock-in contract.

No lock-in contractsNo credit card requiredSupport replies within one business day