GithubHelp home page GithubHelp logo

platformsh-analytics's People

Contributors

mabolek avatar mattiasnilsson avatar quentint avatar raupie avatar sebrodrigues avatar thasmo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

platformsh-analytics's Issues

Number of Requests for Top Requests

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.

Issue with platformGoAccess.php missing the app or worker

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.

Other languages than PHP

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.

[BUG]

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):

  • MacOS 14.1.1
  • Using Terminal

AverageMemory Calculation is mathematical wrong

                        $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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.