Skip to content
e-dardPublic

About

teeny function for use with telegraf exec plugin

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

A tiny function for fetching a web-page, applying an xpath expression and then returning the count of nodes as influx line-protocol.

For use with the Telegraf exec plugin.

Usage:

The function requires three arguments:

  • URL
  • xpath expressino
  • tagset (influx measurment and tag pairs)
$ xpath "https://www.example.com" "//button[contains(text(), 'In stock')]" "xpath,retailer=company"

About

teeny function for use with telegraf exec plugin

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages

⌂ 换网址