{"id":30799509,"url":"https://github.com/zkfmapf123/lgtm-ecs-study","last_synced_at":"2026-02-11T22:17:58.194Z","repository":{"id":297620328,"uuid":"965361159","full_name":"zkfmapf123/LGTM-ECS-Study","owner":"zkfmapf123","description":"LGTM (Loki + Grafana + Tempo + Mimir) Study","archived":false,"fork":false,"pushed_at":"2025-06-06T12:19:48.000Z","size":178,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-06T13:25:47.012Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"HCL","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zkfmapf123.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-04-13T01:43:56.000Z","updated_at":"2025-06-06T12:19:49.000Z","dependencies_parsed_at":"2025-06-06T13:36:04.198Z","dependency_job_id":null,"html_url":"https://github.com/zkfmapf123/LGTM-ECS-Study","commit_stats":null,"previous_names":["zkfmapf123/lgtm-ecs-study"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/zkfmapf123/LGTM-ECS-Study","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zkfmapf123%2FLGTM-ECS-Study","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zkfmapf123%2FLGTM-ECS-Study/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zkfmapf123%2FLGTM-ECS-Study/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zkfmapf123%2FLGTM-ECS-Study/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zkfmapf123","download_url":"https://codeload.github.com/zkfmapf123/LGTM-ECS-Study/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zkfmapf123%2FLGTM-ECS-Study/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273812885,"owners_count":25172890,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-05T02:00:09.113Z","response_time":402,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-09-05T19:50:52.796Z","updated_at":"2026-02-11T22:17:58.166Z","avatar_url":"https://github.com/zkfmapf123.png","language":"HCL","funding_links":[],"categories":[],"sub_categories":[],"readme":"# LGTM Use ECS Fargate\n\n## Architecture\n\n![archi](./public/arch.png)\n\n## Project Setup\n\n### Service\n\n- [x] hello\n    - [x] service init\n    - [x] fluentbit sidecar\n    - [x] prom-client\n- [x] bye\n    - [x] service init\n    - [x] fluentbit sidecar\n    - [x] prom-client\n\n### Monitoring\n\n- [x] loki\n- [x] grafana\n- [x] fluentbit\n- [x] prometheus\n- [x] tempo\n- [x] Mimir ... \n\n## Execute\n\n```sh\n    ## Infra Settings\n    cd infra \u0026\u0026 terragrunt ...\n\n    ## Service Settings (reference Makefile)\n    make deploy-* \n```\n\n```sh\n    ## deploy.sh\n\n    # !/bin/bash\n\nset -e\n\nECR_REPOSITORY=$1\nSERVICE_PATH=$2\nECS_CLUSTER_NAME=$3\nECS_SERVICE_NAME=$4\n\n\n## Deploy ECR Repository\naws ecr get-login-password --region ap-northeast-2 | docker login --username AWS --password-stdin \u003caccount-id\u003e.dkr.ecr.ap-northeast-2.amazonaws.com\n\ncd $SERVICE_PATH \ndocker build -t \u003caccount-id\u003e.dkr.ecr.ap-northeast-2.amazonaws.com/$ECR_REPOSITORY:latest .\ndocker push \u003caccount-id\u003e.dkr.ecr.ap-northeast-2.amazonaws.com/$ECR_REPOSITORY:latest\n\n## Deploy ECS Service\naws ecs update-service --cluster $ECS_CLUSTER_NAME --service $ECS_SERVICE_NAME --force-new-deployment\n```\n\n```sh\n    ## svc-deploy.sh\n\n# !/bin/bash\n\nset -e\n\nECR_REPOSITORY=$1\nSERVICE_PATH=$2\nECS_CLUSTER_NAME=$3\nECS_SERVICE_NAME=$4\n\n\n## Deploy ECR Repository\naws ecr get-login-password --region ap-northeast-2 | docker login --username AWS --password-stdin \u003caccount-id\u003e.dkr.ecr.ap-northeast-2.amazonaws.com\n\ncd $SERVICE_PATH \ndocker build -t \u003caccount-id\u003e.dkr.ecr.ap-northeast-2.amazonaws.com/$ECR_REPOSITORY:latest .\ndocker push \u003caccount-id\u003e.dkr.ecr.ap-northeast-2.amazonaws.com/$ECR_REPOSITORY:latest\n\n## Register Task Definition\nTASK_DEFINITION_ARN=$(aws ecs register-task-definition --cli-input-json file://task_def.json | jq -r '.taskDefinition.taskDefinitionArn')\n\naws ecs update-service \\\n  --cluster $ECS_CLUSTER_NAME \\\n  --service $ECS_SERVICE_NAME \\\n  --task-definition $TASK_DEFINITION_ARN \\\n  --force-new-deployment\n```\n\n## 회고...\n\n- Mimir는 귀찮아서 안함\n- ECS 형태로는 LGTM을 구축하는건 힘들다... K8S 에서 구축하는 것이 더 쉬울듯 하다...\n- 그냥 DataDog 쓰는것이 정신건강에 더 좋을듯하다..\n\n## 참고\n\n- \u003ca href=\"https://grafana.com/docs/loki/latest/configure/examples/configuration-examples/\"\u003e Loki Documents \u003c/a\u003e","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzkfmapf123%2Flgtm-ecs-study","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzkfmapf123%2Flgtm-ecs-study","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzkfmapf123%2Flgtm-ecs-study/lists"}