Skip to content

Commit

Permalink
Merge pull request #75 from last9/cloudstream-modules
Browse files Browse the repository at this point in the history
fix: elasticache metric names
  • Loading branch information
ashwiniag authored Apr 20, 2022
2 parents d1382bb + b087f83 commit 4362181
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/aws/cloudstream/elasticache.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ ingester aws_elasticache_cloudstream module {
aggregator = "SUM"

source prometheus "NetworkBytesOut" {
query = "sum by (CacheClusterId) (amazonaws_com_AWS_NetworkBytesOut_sum{CacheClusterId=~'$input{CacheClusterId}',CacheNodeId='0001'})"
query = "sum by (CacheClusterId) (amazonaws_com_AWS_ElastiCache_NetworkBytesOut_sum{CacheClusterId=~'$input{CacheClusterId}',CacheNodeId='0001'})"

join_on = {
"$output{CacheClusterId}" = "$input{CacheClusterId}"
Expand All @@ -193,7 +193,7 @@ ingester aws_elasticache_cloudstream module {
aggregator = "SUM"

source prometheus "NetworkBytesIn" {
query = "sum by (CacheClusterId) (amazonaws_com_AWS_NetworkBytesIn_sum{CacheClusterId=~'$input{CacheClusterId}',CacheNodeId='0001'})"
query = "sum by (CacheClusterId) (amazonaws_com_AWS_ElastiCache_NetworkBytesIn_sum{CacheClusterId=~'$input{CacheClusterId}',CacheNodeId='0001'})"

join_on = {
"$output{CacheClusterId}" = "$input{CacheClusterId}"
Expand Down

0 comments on commit 4362181

Please sign in to comment.