Skip to content

Instantly share code, notes, and snippets.

@SodaDev
Created November 28, 2023 09:23
Show Gist options
  • Save SodaDev/6ba66b4c65ff94fee8f9ecd9cd4e0289 to your computer and use it in GitHub Desktop.
Save SodaDev/6ba66b4c65ff94fee8f9ecd9cd4e0289 to your computer and use it in GitHub Desktop.
Elasticache Serverless Cost Diagram
{
"metrics": [
[ { "expression": "pricestorage+(ecpus/1000000*0.0038)", "label": "Serverless Elasticache Pricing", "id": "price", "yAxis": "right" } ],
[ { "expression": "SUM(METRICS())/1000", "label": "ECPus", "id": "ecpus" } ],
[ { "expression": "$YOUR_CLUSTER_GB_SIZE*0.14*24*30", "label": "PriceStorage", "id": "pricestorage", "yAxis": "right", "visible": false } ],
[ "AWS/ElastiCache", "NetworkBytesOut", "CacheClusterId", "$YOUR_CLUSTER_NAME-001", "CacheNodeId", "0001", { "region": "$YOUR_REGION", "id": "m1", "visible": false } ],
[ "...", "$YOUR_CLUSTER_NAME-002", ".", ".", { "region": "$YOUR_REGION", "id": "m2", "visible": false } ],
[ "...", "$YOUR_CLUSTER_NAME-003", ".", ".", { "region": "$YOUR_REGION", "id": "m3", "visible": false } ],
[ ".", "NetworkBytesIn", ".", "$YOUR_CLUSTER_NAME-001", ".", ".", { "region": "$YOUR_REGION", "id": "m4", "visible": false } ],
[ "...", "$YOUR_CLUSTER_NAME-002", ".", ".", { "region": "$YOUR_REGION", "id": "m5", "visible": false } ],
[ "...", "$YOUR_CLUSTER_NAME-003", ".", ".", { "region": "$YOUR_REGION", "id": "m6", "visible": false } ]
],
"region": "$YOUR_REGION",
"title": "Elasticsearch Serverlss ECPus & pricing",
"stat": "Sum",
"view": "timeSeries",
"period": 86400
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment