Commit 3b952a3
authored
[ghinfra] Set up ingestion from s3 -> clickhouse for cloudwatch (#6898)
Path: cloudwatch metrics -> firehose -> s3 (new bucket
fbossci-cloudwatch-metrics) -> clickhouse
This is the s3 -> clickhouse part
I think clickhouse has some in built ingestions for kinesis but I'm
lazy...
Requires meta-pytorch/pytorch-gha-infra#751
Testing: ran the python code via
`python tools/rockset_migration/s32ch.py --clickhouse-table
"infra_metrics.cloudwatch_metrics" --stored-data t.json --s3-bucket
fbossci-cloudwatch-metrics --s3-prefix ghci-related`1 parent 22c52a0 commit 3b952a3
File tree
2 files changed
+46
-0
lines changed- aws/lambda/clickhouse-replicator-s3
- clickhouse_db_schema/infra_metrics.cloudwatch_metrics
2 files changed
+46
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
544 | 544 | | |
545 | 545 | | |
546 | 546 | | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
| 562 | + | |
| 563 | + | |
| 564 | + | |
| 565 | + | |
547 | 566 | | |
548 | 567 | | |
549 | 568 | | |
| |||
564 | 583 | | |
565 | 584 | | |
566 | 585 | | |
| 586 | + | |
| 587 | + | |
567 | 588 | | |
568 | 589 | | |
569 | 590 | | |
| |||
586 | 607 | | |
587 | 608 | | |
588 | 609 | | |
| 610 | + | |
589 | 611 | | |
590 | 612 | | |
591 | 613 | | |
| |||
Lines changed: 24 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
0 commit comments