You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

8 lines
330 B

  1. local function scrape()
  2. metric("node_nf_conntrack_entries", "gauge", nil,
  3. string.sub(get_contents("/proc/sys/net/netfilter/nf_conntrack_count"), 1, -2))
  4. metric("node_nf_conntrack_entries_limit", "gauge", nil,
  5. string.sub(get_contents("/proc/sys/net/netfilter/nf_conntrack_max"), 1, -2))
  6. end
  7. return { scrape = scrape }