Skip to content

Commit

Permalink
Merge pull request #6 from slashdevops/migra-master-main
Browse files Browse the repository at this point in the history
refactor: migrate master branch to main
  • Loading branch information
christiangda authored Jun 11, 2024
2 parents 67d58b2 + bfe9fca commit b710bc5
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 22 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'

Expand Down Expand Up @@ -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
Expand All @@ -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: |
Expand Down
11 changes: 3 additions & 8 deletions .github/workflows/master.yml
Original file line number Diff line number Diff line change
@@ -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'

Expand Down Expand Up @@ -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
Expand Down
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,8 @@ vendor/
.idea

# this project executable
aws_cloudwatch_exporter
aws_cloudwatch_exporter

.vscode/configurationCache.log
.vscode/dryrun.log
.vscode/targets.log
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -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)

Expand All @@ -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.
Expand Down Expand Up @@ -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 \
Expand All @@ -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" \
Expand All @@ -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)
* [Christian González Di Antonio](https://github.com/christiangda)

0 comments on commit b710bc5

Please sign in to comment.