Skip to content

Commit

Permalink
DPDK: qp_stats: change rx errors instance to if_rx_errors
Browse files Browse the repository at this point in the history
Signed-off-by: Vlad Zolotarov <[email protected]>
  • Loading branch information
Vlad Zolotarov committed Apr 21, 2015
1 parent 3aa3dd7 commit 78cf7a2
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions net/dpdk.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1669,26 +1669,26 @@ dpdk_qp<HugetlbfsMemBackend>::dpdk_qp(dpdk_device* dev, uint8_t qid,
scollectd::add_polled_metric(scollectd::type_instance_id(
_stats_plugin_name
, scollectd::per_cpu_plugin_instance
, "requests", "rx-csum-errors")
, scollectd::make_typed(scollectd::data_type::GAUGE
, "if_rx_errors", "Bad CSUM")
, scollectd::make_typed(scollectd::data_type::DERIVE
, _stats.rx.bad.csum)
));

_collectd_regs.push_back(
scollectd::add_polled_metric(scollectd::type_instance_id(
_stats_plugin_name
, scollectd::per_cpu_plugin_instance
, "requests", "rx-errors")
, scollectd::make_typed(scollectd::data_type::GAUGE
, "if_rx_errors", "Total")
, scollectd::make_typed(scollectd::data_type::DERIVE
, _stats.rx.bad.total)
));

_collectd_regs.push_back(
scollectd::add_polled_metric(scollectd::type_instance_id(
_stats_plugin_name
, scollectd::per_cpu_plugin_instance
, "requests", "rx-no-mem")
, scollectd::make_typed(scollectd::data_type::GAUGE
, "if_rx_errors", "No Memory")
, scollectd::make_typed(scollectd::data_type::DERIVE
, _stats.rx.bad.no_mem)
));
}
Expand Down

0 comments on commit 78cf7a2

Please sign in to comment.