Lightstreamer logback appender for AWS CloudWatch Metric

Send asynchronously Lightstreamer server statistics to Amazon CloudWatch Metric

License

License

Categories

Categories

Logback Application Layer Libs Logging
GroupId

GroupId

com.lightstreamer
ArtifactId

ArtifactId

cloudwatch-metric-logback-appender
Last Version

Last Version

0.0.3
Release Date

Release Date

Type

Type

jar
Description

Description

Lightstreamer logback appender for AWS CloudWatch Metric
Send asynchronously Lightstreamer server statistics to Amazon CloudWatch Metric
Project URL

Project URL

https://github.com/Lightstreamer/cloudwatch-metric-logback-appender
Source Code Management

Source Code Management

https://github.com/Lightstreamer/cloudwatch-metric-logback-appender

Download cloudwatch-metric-logback-appender

How to add to project

<!-- https://jarcasting.com/artifacts/com.lightstreamer/cloudwatch-metric-logback-appender/ -->
<dependency>
    <groupId>com.lightstreamer</groupId>
    <artifactId>cloudwatch-metric-logback-appender</artifactId>
    <version>0.0.3</version>
</dependency>
// https://jarcasting.com/artifacts/com.lightstreamer/cloudwatch-metric-logback-appender/
implementation 'com.lightstreamer:cloudwatch-metric-logback-appender:0.0.3'
// https://jarcasting.com/artifacts/com.lightstreamer/cloudwatch-metric-logback-appender/
implementation ("com.lightstreamer:cloudwatch-metric-logback-appender:0.0.3")
'com.lightstreamer:cloudwatch-metric-logback-appender:jar:0.0.3'
<dependency org="com.lightstreamer" name="cloudwatch-metric-logback-appender" rev="0.0.3">
  <artifact name="cloudwatch-metric-logback-appender" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.lightstreamer', module='cloudwatch-metric-logback-appender', version='0.0.3')
)
libraryDependencies += "com.lightstreamer" % "cloudwatch-metric-logback-appender" % "0.0.3"
[com.lightstreamer/cloudwatch-metric-logback-appender "0.0.3"]

Dependencies

compile (1)

Group / Artifact Type Version
com.amazonaws : aws-java-sdk-cloudwatchmetrics jar 1.11.295

provided (1)

Group / Artifact Type Version
ch.qos.logback : logback-classic jar 1.1.11

Project Modules

There are no modules declared in this project.

Lightstreamer logback appender for AWS CloudWatch Metric

CloudWatch Metric Logback Appender

Send asynchronously Lightstreamer server statistics to Amazon CloudWatch Metric.

Requirements:

  • Amazon IAM user with 'CloudWatchFullAccess' (arn:aws:iam::aws:policy/CloudWatchFullAccess) policy

or

{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Effect": "Allow",
      "Action": [
        "cloudwatch:putMetricData"
    ],
      "Resource": [
        "*"
    ]
  }
 ]
}

Usage:

Setup lightstreamer_log_conf.xml:

<?xml version="1.0" encoding="UTF-8"?>
<configuration>

	<appender name="AWS_LS_METRIC" class="com.lightstreamer.cloudwatch_metric.logback.appender.AwsMetricAppender">
		<namespace>Lightstreamer</namespace>
	</appender>

    <logger name="LightstreamerMonitorTAB" level="info">
        <appender-ref ref="AWS_LS_METRIC"/>
    </logger>

</configuration>

Setup lightstreamer_conf.xml:

Set collector_millis=1000 and log level=info to produce metrics every minute.

Properties:

Property Required Description
namespace no CloudWatch metric name.
dimensions no Extra dimension in java.util.Properties text format
storageResolution no Metric storage resolution (default 60)
com.lightstreamer

Lightstreamer

The Lightstreamer company

Versions

Version
0.0.3
0.0.2
0.0.1