Hello,
Using v7.6.0
I'm attempting to collect some custom metrics using metricbeat, but not having any luck. I have tried pretty much every combination of the below possible
- module: aws
period: 60s
access_key_id: '${AWS_ACCESS_KEY_ID}'
secret_access_key: '${AWS_SECRET_ACCESS_KEY}'
tags: "pre"
metricsets:
- cloudwatch
metrics:
- namespace: ELK
name: ["ELKResponseTime"]
statistic: ["Average"]
dimensions:
- name: ELKResponseTime
value: ELK
I am able to successfully pull from cloudwatching using get-metric-data
using the same info.
{
"MetricDataQueries": [
{
"Id": "m1",
"MetricStat": {
"Metric": {
"Namespace": "ELK",
"MetricName": "ELKResponseTime",
"Dimensions" : [{
"Name": "ELKResponseTime",
"Value": "ELK"
}]
},
"Period": 60,
"Stat": "Average"
}
}
],
"StartTime": "2020-02-27T14:00:0000",
"EndTime": "2020-02-27T14:15:0000"
}
response
{
"Messages": [],
"MetricDataResults": [
{
"Id": "m1",
"Timestamps": [
"2020-02-27T14:14:00Z",
"2020-02-27T14:13:00Z",
"2020-02-27T14:12:00Z",
"2020-02-27T14:11:00Z",
"2020-02-27T14:10:00Z",
"2020-02-27T14:09:00Z",
"2020-02-27T14:08:00Z",
"2020-02-27T14:07:00Z",
"2020-02-27T14:06:00Z",
"2020-02-27T14:05:00Z",
"2020-02-27T14:04:00Z",
"2020-02-27T14:03:00Z",
"2020-02-27T14:02:00Z",
"2020-02-27T14:01:00Z",
"2020-02-27T14:00:00Z"
],
"StatusCode": "Complete",
"Label": "ELKResponseTime",
"Values": [
0.09296989440917969,
0.0331873893737793,
0.11049914360046387,
0.03397560119628906,
0.045053720474243164,
0.04449105262756348,
0.0390627384185791,
0.03135561943054199,
0.0417938232421875,
0.04479169845581055,
0.12064003944396973,
0.11304378509521484,
0.03579378128051758,
0.026007890701293945,
0.19768404960632324
]
}
]
}