diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index def3f50..1d76444 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -13,10 +13,10 @@ name: "CodeQL" on: push: - branches: [ master ] + branches: [ main ] pull_request: # The branches below must be a subset of the branches above - branches: [ master ] + branches: [ main ] schedule: - cron: '39 16 * * 1' @@ -48,11 +48,11 @@ jobs: # If you wish to specify custom queries, you can do so here or in a config file. # By default, queries listed here will override any specified in a config file. # Prefix the list here with "+" to use these queries and those in the config file. - + # Details on CodeQL's query packs refer to : https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs # queries: security-extended,security-and-quality - + # Autobuild attempts to build any compiled languages (C/C++, C#, or Java). # If this step fails, then you should remove it and run the build manually (see below) - name: Autobuild @@ -61,7 +61,7 @@ jobs: # ℹ️ Command-line programs to run using the OS shell. # 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun - # If the Autobuild fails above, remove it and uncomment the following three lines. + # If the Autobuild fails above, remove it and uncomment the following three lines. # modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance. # - run: | diff --git a/.github/workflows/master.yml b/.github/workflows/master.yml index 76801ce..e62f864 100644 --- a/.github/workflows/master.yml +++ b/.github/workflows/master.yml @@ -1,15 +1,15 @@ -name: Master branch workflow +name: Main branch workflow on: push: branches: - - master + - main paths-ignore: - '**.md' pull_request: branches: - - master + - main paths-ignore: - '**.md' @@ -41,11 +41,6 @@ jobs: - name: Check code modifications run: git diff --exit-code -# - name: Coveralls -# uses: coverallsapp/github-action@master -# with: -# github-token: ${{ secrets.GITHUB_TOKEN }} - build: name: Build needs: test diff --git a/.gitignore b/.gitignore index 4862560..1086bf5 100644 --- a/.gitignore +++ b/.gitignore @@ -20,4 +20,8 @@ vendor/ .idea # this project executable -aws_cloudwatch_exporter \ No newline at end of file +aws_cloudwatch_exporter + +.vscode/configurationCache.log +.vscode/dryrun.log +.vscode/targets.log diff --git a/README.md b/README.md index 64f4d2e..a6a0fd0 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # aws_cloudwatch_exporter -![Master branch workflow](https://github.com/slashdevops/aws_cloudwatch_exporter/workflows/Master%20branch%20workflow/badge.svg?branch=master) +![Main branch workflow](https://github.com/slashdevops/aws_cloudwatch_exporter/workflows/main%20branch%20workflow/badge.svg?branch=main) [![Go Report Card](https://goreportcard.com/badge/github.com/slashdevops/aws_cloudwatch_exporter)](https://goreportcard.com/report/github.com/slashdevops/aws_cloudwatch_exporter) ![Docker Pulls](https://img.shields.io/docker/pulls/slashdevops/aws-cloudwatch-exporter) @@ -11,11 +11,11 @@ This exporter used the [AWS CloudWatch GetMetricsData API call](https://docs.aws * [cloudwatch-getmetricdata-api](https://aws.amazon.com/premiumsupport/knowledge-center/cloudwatch-getmetricdata-api/) * [Amazon CloudWatch pricing](https://aws.amazon.com/cloudwatch/pricing/?nc1=h_ls) -**WARNING**: +**WARNING**: * The use of this exporter could be expensive, this need be used taking care. -**NOTES**: +**NOTES**: * When you use [AWS CloudWatch GetMetricsData API call](https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_GetMetricData.html) with 1 request you can get 500 metrics a time, so read the links above before use it. @@ -49,7 +49,7 @@ More information at [metrics.md](docs/metrics.md) #### Docker Using your own `~/.aws` configuration in local - + ```bash docker run --rm \ -i \ @@ -61,18 +61,18 @@ docker run --rm \ -v ~/.aws:/home/nobody/.aws:ro \ -e "AWS_SDK_LOAD_CONFIG=true" \ -e "AWS_PROFILE=slashdevops" \ - slashdevops/aws-cloudwatch-exporter-linux-amd64:develop metrics get --metricsFiles /home/nobody/m1.yaml --outFile /home/nobody/tmp/out.yaml + slashdevops/aws-cloudwatch-exporter-linux-amd64:develop metrics get --metricsFiles /home/nobody/m1.yaml --outFile /home/nobody/tmp/out.yaml ``` Check the result ```bash -cat /tmp/out.yaml +cat /tmp/out.yaml ``` #### Binary -If you download the binary from releases +If you download the binary from releases ```bash AWS_SDK_LOAD_CONFIG="true" \ @@ -94,4 +94,4 @@ This software is released under the APACHE LICENSE, VERSION 2.0: ## Author Information -* [Christian González Di Antonio](https://github.com/christiangda) \ No newline at end of file +* [Christian González Di Antonio](https://github.com/christiangda)