How to track usage of bandwidth allowance? Is it aggregated?

1

Hi,

I read the FAQ concerning bandwidth billing. I still have following questions:

1.) Is bandwidth allowance aggregated on an account basis?
Let's say I have two LS-instances. Both come with an bandwidth allowance of 1TB. Both are running throughout the entire month. Instance-A uses up 1.2TB of outgoing traffic. Instance-B uses up 10GB. Will I have to pay an overage?

2.) Where can I track the bandwidth usage? Currently I'm using vnstat but obviously I'd like to see it somewhere on the lighsail-console-page.

Thank you!

質問済み 7年前1709ビュー
11回答
2

I wrote code that makes JSON output in a more readable format(Using jq):

aws lightsail get-instance-metric-data --instance-name Ubuntu-512MB-Tokyo-1 --metric-name NetworkOut --period 2628000 --start-time 1546304400 --end-time 1893456000 --unit Bytes --statistics Sum | jq -r '.metricData[] | "\(.timestamp | strftime("%Y-%m-%d")): \(.sum/1024/1024) MB"'

Output:

2019-05-02: 679.5360774993896 MB
2019-06-02: 1300.1841659545898 MB
回答済み 5年前
1

That sadly answers neither my first or second question.

The "Billing and Account Manangement" under https://amazonlightsail.com/docs/ doesn't give me enough information. Is bandwidth allowance aggregated on an account basis? Let's say I have two LS-instances. Both come with an bandwidth allowance of 1TB. Both are running throughout the entire month. Instance-A uses up 1.2TB of outgoing traffic. Instance-B uses up 10GB. Will I have to pay an overage?

NetworkIn and NetworkOut shows the hourly usage for the maximum timespan of two weeks.
I want to know if I'm close to reaching my monthly allowance

回答済み 7年前
0

Hello,
Thank you for using Lightsail.

Currently, the best way to gauge your usage is to monitor the NetworkIn and NetworkOut on the Instance metrics page.

You can find some information about how network transfer billing works under "Billing and Account Manangement" at https://amazonlightsail.com/docs/.

Thank you,
Gabriel

AWS
モデレーター
回答済み 7年前
0

Hello,
I've escalated your questions to someone who can answer in greater detail.

Thank you,
Gabriel

AWS
モデレーター
回答済み 7年前
0

Hi,

The data transfer quotas are on a per-instance basis, so you would be charge 0.2TB overage in the scenario you describe.

There is unfortunately no total metering of your instance data transfer. The best way to currently see if there is an overage charge is to set up a billing alarm:
http://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/free-tier-alarms.html

We're working on surfacing more data about your instance data transfer levels.

Thanks

回答済み 7年前
0

Thank you for the answer!

The overage should show up as operation "Bundle:1GB" in the cost-explorer, right? So that way I should be able to monitor any costs and not be surprised at the end of the month?

回答済み 7年前
0

So there is an option of getting the bandwidth usage for an instance using the CLI. I had to play around a bit and found out that there only will be an output if the unit used is Bytes. Megabytes, etc does not work and results in an empty output.

Documentation
http://docs.aws.amazon.com/cli/latest/reference/lightsail/get-instance-metric-data.html

Example usage:

aws lightsail get-instance-metric-data --instance-name Amazon_Linux-1GB-Virginia-1 --metric-name NetworkOut --period 2700000 --start-time 1488326400 --end-time 1490100240 --unit Bytes --statistics Sum

Output:

{
    "metricData": [
        {
            "timestamp": 1488326400.0, 
            "sum": 2282458598051.0, 
            "unit": "Bytes"
        }
    ], 
    "metricName": "NetworkOut"
}
回答済み 7年前
0

The instance name in this command is the one used in the "Name" tag?
Does it have to be an instance that was launched using Lightsail?

Edited by: es3web on Nov 13, 2018 1:33 PM

es3web
回答済み 5年前
0

Bandwidth monitors are helpful in telling how much data you used within a single day. Many corporations naturally propose their customers a bandwidth usage meter, which is the identical thing as a bandwidth monitor. Though, the bandwidth meters from most telecoms show how much data you’ve used in a day, week, and month. There are bandwidth monitors that are intended towards IT specialists, and others that everyone can easily utilize it. Here we will let you know which ones are the best Bandwidth Monitors in case you are looking for it but for more detailed description go for this website https://appuals.com/real-time-bandwidth-monitors/

1- PRTG Network Monitor: PRTG Network Monitor has a lot of detailed features that make it a controlling tool. You can simply check traffic volume at an IP level, though checking events. It can also act as a packet sniffer for an impression of Layer 4 services. PRTG Network Monitor has a complete dashboard of tools at your removal, such as a bandwidth monitor. It functions by observing sensors on your network. These devices such as things like the CPU load of your server, packet sniffing, traffic at a switch port, SNMP, and many others.

2- BitMeter OS: BitMeter OS uses a web-based interface, which means to say that you can monitor the tool via a web browser. Otherwise, you can utilize the command-line interface. It does not have a lot of, but it covers the basics effortlessly. The time you introduce the web-interface, you will see a graph that recaps your network’s present download/upload rate, and the average and peak utilization.

回答済み 5年前
0

Those tools, while useful, won't accurately track the billable Lightsail traffic because all traffic goes over a single interface, regardless of if it is going to the internet or internal resources.

If you have internal Lightsail resources (other instances, databases, S3, etc) then the data provided by those tools will inflated.

david

profile picture
David G
回答済み 5年前
0

jq FTW!

I recently discovered that tool and find it invaluable.

I'm using it for my LetsEncrypt DNS auth script (still working on it).

profile picture
David G
回答済み 5年前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ