Skip to content

parachutehealth/prometheus-net-discovery

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

prometheus-net-discovery

Scan entire networks for open ports with known prometheus exporters and generate files with targets to be used with file_sd_config file based discovery

install

go get -u github.com/fortnoxab/prometheus-net-discovery

example run

prometheus-net-discovery -networks "192.168.1.0/24" --filesdpath /tmp/

usage

$ prometheus-net-discovery --help
Usage of prometheus-net-discovery:
  -filesdpath
    	Change value of FileSdPath.
  -interval
    	Change value of Interval. (default 60m)
  -log-format
    	Change value of Log-Format. (default text)
  -log-formatter
    	Change value of Log-Formatter. (default <nil>)
  -log-level
    	Change value of Log-Level.
  -networks
    	Change value of Networks.
  -skipresolve
	skip reverse resolution of ip addresses and use ip address instead (default: false)

Generated environment variables:
   CONFIG_FILESDPATH
   CONFIG_INTERVAL
   CONFIG_LOG_FORMAT
   CONFIG_LOG_FORMATTER
   CONFIG_LOG_LEVEL
   CONFIG_NETWORKS

About

network based prometheus target discovery

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 100.0%