CloudWatch Metrics
Kubemq cloudwatch-metrics target connector allows services using kubemq server to access aws cloudwatch-metrics service.

Prerequisites

The following required to run the aws-cloudwatch-metrics target connector:
  • kubemq cluster
  • aws account with cloudwatch-metrics active service
  • kubemq-source deployment

Configuration

cloudwatch-metrics target connector configuration properties:
Properties Key
Required
Description
Example
aws_key
yes
aws key
aws key supplied by aws
aws_secret_key
yes
aws secret key
aws secret key supplied by aws
region
yes
region
aws region
token
no
aws token ("default" empty string
aws token
Example:
1
bindings:
2
- name: kubemq-query-aws-cloudwatch-metrics
3
source:
4
kind: kubemq.query
5
name: kubemq-query
6
properties:
7
address: "kubemq-cluster:50000"
8
client_id: "kubemq-query-aws-cloudwatch-metrics"
9
auth_token: ""
10
channel: "query.aws.cloudwatch.metrics"
11
group: ""
12
auto_reconnect: "true"
13
reconnect_interval_seconds: "1"
14
max_reconnects: "0"
15
target:
16
kind: aws.cloudwatch.metrics
17
name: aws-cloudwatch-metrics
18
properties:
19
aws_key: "id"
20
aws_secret_key: 'json'
21
region: "region"
22
token: ""
Copied!

Usage

Put Metrics

Put Metrics:
Metadata Key
Required
Description
Possible values
method
yes
type of method
"put_metrics"
namespace
yes
aws namespace name
"string"
data
yes
array of aws MetricDatum
W3siQ291bnRzIjpudWxsLCJEaW1lbnNpb25zIjpudWxsLCJNZXRyaWNOYW1lIjoiTmV3IE1ldHJpYyIsIlN0YXRpc3RpY1ZhbHVlcyI6bnVsbCwiU3RvcmFnZVJlc29sdXRpb24iOm51bGwsIlRpbWVzdGFtcCI6IjIwMjAtMDgtMTJUMTc6MDk6NDguMzg5NTgyMiswMzowMCIsIlVuaXQiOiJDb3VudCIsIlZhbHVlIjoxMzEsIlZhbHVlcyI6bnVsbH1d
Example:
1
{
2
"metadata": {
3
"method": "put_metrics",
4
"namespace": "Logs"
5
},
6
"data": "W3siQ291bnRzIjpudWxsLCJEaW1lbnNpb25zIjpudWxsLCJNZXRyaWNOYW1lIjoiTmV3IE1ldHJpYyIsIlN0YXRpc3RpY1ZhbHVlcyI6bnVsbCwiU3RvcmFnZVJlc29sdXRpb24iOm51bGwsIlRpbWVzdGFtcCI6IjIwMjAtMDgtMTJUMTc6MDk6NDguMzg5NTgyMiswMzowMCIsIlVuaXQiOiJDb3VudCIsIlZhbHVlIjoxMzEsIlZhbHVlcyI6bnVsbH1d"
7
}
Copied!

List Metrics

List Metrics:
Metadata Key
Required
Description
Possible values
method
yes
type of method
"list_metrics"
namespace
no
aws namespace name
"string"
Example:
1
{
2
"metadata": {
3
"method": "list_metrics"
4
},
5
"data": null
6
}
Copied!
Last modified 11mo ago