# Interface Total Data

**URL:** <https://community.netdata.cloud/t/interface-total-data/875>\
**Category:** Help\
**Tags:** agent\
**Created:** [February 4, 2021, 1:27pm UTC](https://community.netdata.cloud/t/interface-total-data/875 "2021-02-04T13:27:10Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![badenhorstadmin](https://avatars.discourse-cdn.com/v4/letter/b/8797f3/32.png) [@badenhorstadmin](https://community.netdata.cloud/u/badenhorstadmin)\
**Post date:** [February 4, 2021, 1:27pm UTC](https://community.netdata.cloud/t/interface-total-data/875/1 "2021-02-04T13:27:10Z")

</div>

Hi Guys.

I’m new to Netdata and I really like all the metrics that can be seen. I am however trying to find a way in whcih I can see the total traffic for a given interface for lets say a day, a week or maybe a year.

Is this possible with Netdata?

---

<div class="post-metadata">

**Author:** ![OdysLam](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.netdata.cloud/odyslam/32/98_2.png) [@OdysLam](https://community.netdata.cloud/u/OdysLam)\
**Post date:** [February 5, 2021, 9:25am UTC](https://community.netdata.cloud/t/interface-total-data/875/2 "2021-02-05T09:25:08Z")

</div>

Hey @badenhorstadmin and welcome to the forums!

The retention that you mention depends on the configuration you have made for the time-series database.  
Documentation:

> **[Database engine | Learn Netdata](https://learn.netdata.cloud/docs/agent/database/engine)**
>
> Netdata's highly-efficient database engine use both RAM and disk for distributed, long-term storage of per-second metrics.

According to our documentation, the Netdata Agent should automatically pick up all your network interfaces:

> **[Database engine | Learn Netdata](https://learn.netdata.cloud/docs/agent/database/engine)**
>
> Netdata's highly-efficient database engine use both RAM and disk for distributed, long-term storage of per-second metrics.

---

<div class="post-metadata">

**Author:** ![ACrazyConcept](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.netdata.cloud/acrazyconcept/32/1119_2.png) [@ACrazyConcept](https://community.netdata.cloud/u/ACrazyConcept)\
**Post date:** [September 4, 2021, 6:00pm UTC](https://community.netdata.cloud/t/interface-total-data/875/3 "2021-09-04T18:00:01Z")

</div>

I am looking for almost the same metrics. To be precise I would like to get the total recieved and sent bytes for a network interface. The same metrics that are displayed with ifconfig for RX bytes ( `589239881` ) and TX bytes ( `829409843` )  
And I must admit I don’t really understand how the link in the reply can help me with that.

```auto
$ ifconfig
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
...
        RX packets 5828126 bytes 589239881 (561.9 MiB)
        RX errors 0 dropped 0 overruns 0 frame 0
        TX packets 2083411 bytes 829409843 (790.9 MiB)
        TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

```

---

<div class="post-metadata">

**Author:** ![Christopher\_Akritid1](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.netdata.cloud/christopher_akritid1/32/419_2.png) [@Christopher\_Akritid1](https://community.netdata.cloud/u/Christopher_Akritid1)\
**Post date:** [September 6, 2021, 4:52am UTC](https://community.netdata.cloud/t/interface-total-data/875/4 "2021-09-06T04:52:28Z")

</div>

The closest thing that we have to what you want is a call like the following. The specific call takes the Mbit/sec measurements and converts it to Mbit/hour (3600 sec). The “after” just asks for the past 4 hours.

[http://london3.my-netdata.io/api/v1/data?chart=system.net&gtime=3600&after=-14400](http://london3.my-netdata.io/api/v1/data?chart=system.net&gtime=3600&after=-14400)

The link below has an example of a custom chart that would display such metrics per hour (or per whatever you want): [Custom dashboards | Learn Netdata](https://learn.netdata.cloud/docs/agent/web/gui/custom#changing-rates)

Unfortunately I don’t see a “grouping” setting available in the per chart configuration of the charts that appear in the default dashboard: [Daemon configuration | Learn Netdata](https://learn.netdata.cloud/docs/agent/daemon/config#per-chart-configuration)

Perhaps if there’s enough demand we can add the option there as well.

Hope this helps. Not exactly what you asked for, but it’s the closest we have
