pixelant / platformsh-analytics Goto Github PK
View Code? Open in Web Editor NEWAnalytics tools for Platform.sh
License: GNU General Public License v2.0
Analytics tools for Platform.sh
License: GNU General Public License v2.0
It would be nice to also have a column "number of requests" for the "top requests" tables, to better judge the impact of the top requests.
Hello,
It seems that with the latest CLI version, the arguments [-A|--app APP]
or [--worker WORKER]
are no longer optional.
Running:
php platformGoAccess.php
Results to:
Available Platform.sh projects:
[1] YYY (yyy)
[2] XXX (xxx)
[3] ZZZ (zzz)
[4] AAA (aaa)
Enter a project number > 2
XXX was selected.
Please choose the number of lines to fetch:
[1] 5000
[2] 20000
[3] Max
Please select (default: [2]) > 3
Getting the log...
Parsing... [0] [0/s]
[InvalidArgumentException]
Specifying the --app or --worker is required in non-interactive mode
Usage: platform log [--lines LINES] [--tail] [-p|--project PROJECT] [--host HOST] [-e|--environment ENVIRONMENT] [-A|--app APP] [--worker WORKER] [--] [<type>]
For more information, type: platform help environment:logs
-
Statistics written to: XXX-goaccess-20200903123409.html
With the latest version of the CLI.
I think that parsing in the platformGoAccess.php
similar to the "project" or the "number of lines to fetch" would be required.
Hi,
I read the introductory blog post. This looks like a very useful tool. Thanks a lot for sharing ๐
I'm curious about using it for projects in other languages than PHP, such as Python. It's not clear to me whether it's possible or, if not, what it would take.
Describe the bug
platformPhpAnalyzer does not seem to recognize that I am logged in.
Just launching with Platform.sh
To Reproduce
I run platformPhpAnalyzer.php
It starts running, but then says authentication is required.
I run platform login as suggested, successfully (platform suggested I was already logged in)
But when I run the Analyzer again, I get the same response.
It asks for a project number then -- but I am not sure what that is referring to. The platform.sh project ID is not a number and is rejected.
Desktop (please complete the following information):
$averageMemoryUsage = 0;
$peakMemoryUsage = 0;
foreach($lineData as $line) {
$averageMemoryUsage = ($averageMemoryUsage + $line['peakMemory']) / 2;
if ($line['peakMemory'] > $peakMemoryUsage) {
$peakMemoryUsage = $line['peakMemory'];
}
}
$averageMemoryUsage = ($averageMemoryUsage + $line['peakMemory']) / 2;
It should be calculated with the sum of memory used divided by the number of processed records. The way it's done for now values the last request processed more than the previous ones.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.