Simple server that scrapes logentries/rapid7
metrics endpoint and exports them as Prometheus metrics.
--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")
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
...
$ make setup
$ go build
$ ./logentries_exporter --apikey xxxx-xxxx-xxxx-xxxx
Feel free to open an issue or PR if you have suggestions or ideas about what to add.