Skip to content

Auto deployment of Lambda function for collecting ping statistics metrics for addresses and shipping them to Logz.io.

License

Notifications You must be signed in to change notification settings

logzio/logzio-ping-statistics

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ping Statistics Auto-Deployment

Auto-deployment of Lambda function that collects ping statistics metrics of addresses and sends them to Logz.io.

  • The Lambda function will be deployed with the layer LogzioLambdaExtensionLogs. For more information about the extension click here.

Getting Started

To start just press the button and follow the instructions:

Deploy to AWS

Parameters

Parameter Description Required/Optional Default
Addresses The addresses to ping. You can add port for each address (default port for address is 80). Addresses must be separated by comma. (Example addresses: www.google.com, tcp://www.google.com, https://www.google.com, http://www.google.com). Required -
PingCount The number of pings for each address. Required 3
PingInterval The time to wait (seconds) between each ping. Required 1 (second)
PingTimeout The timeout (seconds) for each ping. Required 10 (seconds)
LogzioListener The Logz.io listener URL for your region. (For more details, see the regions page: https://docs.logz.io/user-guide/accounts/account-region.html) Required https://listener.logz.io
LogzioMetricsToken Your Logz.io metrics token (Can be retrieved from the Manage Token page). Required -
LogzioLogsToken Your Logz.io logs token (Can be retrieved from the Manage Token page). Required -
SchedulingInterval The scheduling expression that determines when and how often the Lambda function runs. Rate below 6 minutes will cause the lambda to behave unexpectedly due to cold start and custom resource invocation. Required rate(30 minutes)

Searching in Logz.io

All metrics that were sent from the Lambda function will have the prefix ping_stats in their name.

Changelog

v1.0.3:

  • Fix custom resource run logic
  • Update LogzioLambdaExtensionLogs version 16 -> 18

v1.0.2:

  • Update logzio logs lambda extention version

v1.0.1:

  • Remove IP label from the metrics.
  • After deployment the Lambda function will be invoked immediately instead of waiting for scheduler to invoke it, and will be invoked each interval (according the scheduling expression).

v1.0.0

About

Auto deployment of Lambda function for collecting ping statistics metrics for addresses and shipping them to Logz.io.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages