EnglishFrenchSpanish

Ad


OnWorks favicon

mon-get-stats - Online in the Cloud

Run mon-get-stats in OnWorks free hosting provider over Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

This is the command mon-get-stats that can be run in the OnWorks free hosting provider using one of our multiple free online workstations such as Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

PROGRAM:

NAME


mon-get-stats - Get metric statistics

SYNOPSIS


mon-get-stats
MetricName --namespace value --statistics value[,value...]
[--dimensions "key1=value1,key2=value2..." ] [--end-time value ]
[--period value ] [--start-time value ] [--unit value ]
[General Options]

DESCRIPTION


This call will get time-series data for one or more statistics of a
given
MetricName.

ARGUMENTS


MetricName
The metric name that corresponds to one contained in the gathered
Metric.
You can also set this value using "--metric-name". Required.

SPECIFIC OPTIONS


-d, --dimensions "key1=value1,key2=value2..."
Dimensions (one or more) along which the metric data was originally
stored. If no dimensions are specified, then the statistics
belonging to
the specified non-dimensional metric will be returned.

--end-time VALUE
The timestamp of the last datapoint to return, inclusive. For
example,
2009-11-25T19:00:00+00:00Z. Timestamp will be rounded down to the
nearest
minute.The dateTime type uses ISO 8601 (UTC). The default for this
is
now.

-n, --namespace VALUE
The namespace of the desired metric. This must match the namespace
that
was specified when the desired metric was initially reported.
Required.

-p, --period VALUE
The granularity (in seconds) of the returned datapoints. Period
must be
at least 60 seconds and must be a multiple of 60. The default is 60
seconds.

-s, --statistics VALUE1,VALUE2,VALUE3...
The statistics to be returned for the desired metric. Valid values
are:
Average, Sum, SampleCount, Maximum, or Minimum. Required.

--start-time VALUE
The timestamp of the first datapoint to return, inclusive. For
example,
2009-11-25T19:00:00+00:00Z. Timestamp will be rounded down to the
nearest
minute. The dateTime type uses ISO 8601 (UTC). The default for this
is 1
hour in the past.

-u, --unit VALUE
The unit that the metric was reported in. Valid unit values are
Seconds,
Bytes, Bits, Percent, Count, Bytes/Second, Bits/Second,
Count/Second,
None.

GENERAL OPTIONS


--aws-credential-file VALUE
Location of the file with your AWS credentials. This value can be
set by
using the environment variable 'AWS_CREDENTIAL_FILE'.

-C, --ec2-cert-file-path VALUE
Location of your EC2 certificate file. This value can be set by
using the
environment variable 'EC2_CERT'.

--connection-timeout VALUE
Specify a connection timeout VALUE (in seconds). The default value
is
'30'.

--delimiter VALUE
What delimiter to use when displaying delimited (long) results.

--headers
If you are displaying tabular or delimited results, it includes the
column headers. If you are showing xml results, it returns the HTTP
headers from the service request, if applicable. This is off by
default.

-I, --access-key-id VALUE
Specify VALUE as the AWS Access Id to use.

-K, --ec2-private-key-file-path VALUE
Location of your EC2 private key file. This value can be set by
using the
environment variable 'EC2_PRIVATE_KEY'.

--region VALUE
Specify region VALUE as the web service region to use. This value
can be
set by using the environment variable 'EC2_REGION'.

-S, --secret-key VALUE
Specify VALUE as the AWS Secret Key to use.

--show-empty-fields
Show empty fields and rows, using a "(nil)" value. The default is
to not
show empty fields or columns.

--show-request
Displays the URL the tools used to call the AWS Service. The
default
value is 'false'.

--show-table, --show-long, --show-xml, --quiet
Specify how the results are displayed: tabular, delimited (long),
xml, or
no output (quiet). Tabular shows a subset of the data in fixed
column-width form, while long shows all of the returned values
delimited
by a character. The xml is the raw return from the service, while
quiet
suppresses all standard output. The default is tabular, or
'show-table'.

-U, --url VALUE
This option will override the URL for the service call with VALUE.
This
value can be set by using the environment variable
'AWS_CLOUDWATCH_URL'.

INPUT EXAMPLES


This returns the average, min, and max CPU utilization for EC2
instance
i-c07704a9, at 1 hour resolution.

$PROMPT>mon-get-stats CPUUtilization --start-time
2009-02-14T23:00:00.000Z --end-time 2009-03-14T23:00:00.000Z --period
3600 --statistics "Average,Minimum,Maximum" --namespace "AWS/EC2"
--dimensions "InstanceId=i-c07704a9"

This returns CPU utilization across your EC2 fleet.

$PROMPT2>mon-get-stats CPUUtilization --start-time
2009-02-14T23:00:00.000Z --end-time 2009-03-14T23:00:00.000Z --period
3600 --statistics "Average,Minimum,Maximum" --namespace "AWS/EC2"

This returns the average, min, and max Request count made to the test
stack
of "MyService" for a particular user, at 1 hour resolution.

$PROMPT>mon-get-stats RequestCount --start-time
2009-11-24T23:00:00.000Z --end-time 2009-11-25T23:00:00.000Z --period
3600 --statistics "Average,Minimum,Maximum" --namespace "MyService"
--dimensions "User=SomeUser,Stack=Test"

This shows RequestCount statistics across all of "MyService".

$PROMPT2>mon-get-stats RequestCount --start-time
2009-11-24T23:00:00.000Z --end-time 2009-11-25T23:00:00.000Z --period
3600 --statistics "Average,Minimum,Maximum,SampleCount" --namespace
"MyService"

OUTPUT


This command returns a table that contains the following:
* Time - Time the metrics were taken.
* SampleCount - No description available for this column.
* Average - Average value.
* Sum - Sum of values.
* Minimum - Minimum observed value.
* Maximum - Maximum observed value.
* Unit - Unit of the metric.

OUTPUT EXAMPLES


This is an example of an output of the Samples and Average metrics at
one
minute resolution.

Use mon-get-stats online using onworks.net services


Free Servers & Workstations

Download Windows & Linux apps

  • 1
    Clover EFI bootloader
    Clover EFI bootloader
    Project has moved to
    https://github.com/CloverHackyColor/CloverBootloader..
    Features:Boot macOS, Windows, and Linux
    in UEFI or legacy mode on Mac or PC with
    UE...
    Download Clover EFI bootloader
  • 2
    unitedrpms
    unitedrpms
    Join us in Gitter!
    https://gitter.im/unitedrpms-people/Lobby
    Enable the URPMS repository in your
    system -
    https://github.com/UnitedRPMs/unitedrpms.github.io/bl...
    Download unitedrpms
  • 3
    Boost C++ Libraries
    Boost C++ Libraries
    Boost provides free portable
    peer-reviewed C++ libraries. The
    emphasis is on portable libraries which
    work well with the C++ Standard Library.
    See http://www.bo...
    Download Boost C++ Libraries
  • 4
    VirtualGL
    VirtualGL
    VirtualGL redirects 3D commands from a
    Unix/Linux OpenGL application onto a
    server-side GPU and converts the
    rendered 3D images into a video stream
    with which ...
    Download VirtualGL
  • 5
    libusb
    libusb
    Library to enable user space
    application programs to communicate with
    USB devices. Audience: Developers, End
    Users/Desktop. Programming Language: C.
    Categories...
    Download libusb
  • 6
    SWIG
    SWIG
    SWIG is a software development tool
    that connects programs written in C and
    C++ with a variety of high-level
    programming languages. SWIG is used with
    different...
    Download SWIG
  • More »

Linux commands

Ad