-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
68 additions
and
191 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# Run ecs_service_discovery.py every 3 minutes | ||
*/3 * * * * python /app/main.py --cluster_name="<cluster_name>" --output_dir /shared_volume/ --scrape_port 9097 >> /var/log/cron.log 2>&1 | ||
* * * * * /usr/local/bin/python /app/main.py --cluster_name="<ecs_cluster_name>" --output_dir /shared_volume/ --scrape_port 9097 --region "ap-south-1" >> /var/log/cron.log 2>&1 | ||
|
||
# An empty line is required at the end of this file for a valid cron file. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
boto3==1.34.58 | ||
botocore==1.34.58 | ||
jmespath==1.0.1 | ||
python-dateutil==2.9.0.post0 | ||
s3transfer==0.10.0 | ||
six==1.16.0 | ||
urllib3==2.0.7 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
global: | ||
scrape_interval: 1m | ||
scrape_timeout: 20s | ||
# Check https://prometheus.io/docs/prometheus/latest/configuration/configuration for more details | ||
scrape_configs: | ||
- job_name: "ecs_service_sraper" | ||
file_sd_configs: | ||
- files: | ||
- /shared_volume/ecs_file_sd_config.json | ||
- job_name: "vmagent" | ||
static_configs: | ||
- targets: [ "localhost:8429" ] |