Rajan Subramanian
04/13/2022, 10:15 PMtemporary failure in name resolution
I'm not even sure whom to ask this, but since i was using prefect i figured someone here knows about this.
I raised it here, https://stackoverflow.com/questions/71864208/unable-to-connect-to-redis-elasticcache-from-fargate, curious if someone had any suggestions? My fargate profile has same 4 subnets that my cluster in elastic cache has. they also have the same security group.Anna Geller
04/14/2022, 12:36 AMRajan Subramanian
04/14/2022, 5:41 AMAnna Geller
04/14/2022, 9:09 AMrecords = [
{
"Time": now,
"TimeUnit": "MILLISECONDS",
"Dimensions": [{"Name": "crypto", "Value": "BTC"}],
"MeasureName": "Price",
"MeasureValue": str(btc),
"MeasureValueType": "DOUBLE",
},
{
"Time": now,
"TimeUnit": "MILLISECONDS",
"Dimensions": [{"Name": "crypto", "Value": "ETH"}],
"MeasureName": "Price",
"MeasureValue": str(eth),
"MeasureValueType": "DOUBLE",
},
{
"Time": now,
"TimeUnit": "MILLISECONDS",
"Dimensions": [{"Name": "crypto", "Value": "DASH"}],
"MeasureName": "Price",
"MeasureValue": str(dash),
"MeasureValueType": "DOUBLE",
},
{
"Time": now,
"TimeUnit": "MILLISECONDS",
"Dimensions": [{"Name": "crypto", "Value": "REP"}],
"MeasureName": "Price",
"MeasureValue": str(rep),
"MeasureValueType": "DOUBLE",
},
]
and then to write the records:
import boto3
write_client = boto3.client("timestream-write")
rejected_records = write_client.write_records(
DatabaseName="demo", TableName="data", Records=records, CommonAttributes={}
)
print(rejected_records)
this blog post shows more details, and this one has a full example incl. a guide how to build a Grafana dashboards for that 🙂Rajan Subramanian
04/14/2022, 6:43 PMAnna Geller
04/14/2022, 6:49 PMRajan Subramanian
04/14/2022, 7:03 PMAnna Geller
04/14/2022, 7:17 PM