Skip to content

Logentries/Rapid7 exporter for Prometheus

License

Notifications You must be signed in to change notification settings

Diogo-Costa/logentries_exporter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Logentries/Rapid7 Exporter for Prometheus

Go Report Card

Simple server that scrapes logentries/rapid7 metrics endpoint and exports them as Prometheus metrics.

Flags/Arguments

  --telemetry.address string
        Address on which to expose metrics. (default -> ":9582")
  --metricsPath string
        Path under which to expose metrics. (default -> "/metrics")
  --apikey string
        ApiKey to connect logentries metrics. (required)
  --region string
        Region logentries (us, eu, ca or au). (default -> "us")
  --isDebug string
        Output verbose debug information. (default -> "false")

Collectors

The exporter collects the following metrics:

Metrics:

# HELP logentries_size_month_size_total Account size month in bytes.
# TYPE logentries_size_month_size_total gauge
logentries_size_month_size_total{account="Your account name"} XXXXXX
# HELP logentries_log_usage_daily Log Usage Size in bytes (d-1).
# TYPE logentries_log_usage_daily gauge
logentries_log_usage_daily{logID="XXXXXX-XXX-XXX-XXX-XXXXXXXXX",logName="XXX-XXXXXXX",logSet="XXXXXXX"} XXXXX
# HELP logentries_log_usage_up Was the last scrape of log usage Size successful (0-successful / 1-Fail)
# TYPE logentries_log_usage_up gauge
logentries_log_usage_up 0
...

Building and running

$ make setup
$ go build
$ ./logentries_exporter --apikey xxxx-xxxx-xxxx-xxxx

Contribute

Feel free to open an issue or PR if you have suggestions or ideas about what to add.