Skip to content

Commit b710bc5

Browse files
authored
Merge pull request #6 from slashdevops/migra-master-main
refactor: migrate master branch to main
2 parents 67d58b2 + bfe9fca commit b710bc5

File tree

4 files changed

+21
-22
lines changed

4 files changed

+21
-22
lines changed

.github/workflows/codeql-analysis.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ name: "CodeQL"
1313

1414
on:
1515
push:
16-
branches: [ master ]
16+
branches: [ main ]
1717
pull_request:
1818
# The branches below must be a subset of the branches above
19-
branches: [ master ]
19+
branches: [ main ]
2020
schedule:
2121
- cron: '39 16 * * 1'
2222

@@ -48,11 +48,11 @@ jobs:
4848
# If you wish to specify custom queries, you can do so here or in a config file.
4949
# By default, queries listed here will override any specified in a config file.
5050
# Prefix the list here with "+" to use these queries and those in the config file.
51-
51+
5252
# 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
5353
# queries: security-extended,security-and-quality
5454

55-
55+
5656
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
5757
# If this step fails, then you should remove it and run the build manually (see below)
5858
- name: Autobuild
@@ -61,7 +61,7 @@ jobs:
6161
# ℹ️ Command-line programs to run using the OS shell.
6262
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
6363

64-
# If the Autobuild fails above, remove it and uncomment the following three lines.
64+
# If the Autobuild fails above, remove it and uncomment the following three lines.
6565
# modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance.
6666

6767
# - run: |

.github/workflows/master.yml

+3-8
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
name: Master branch workflow
1+
name: Main branch workflow
22

33
on:
44
push:
55
branches:
6-
- master
6+
- main
77
paths-ignore:
88
- '**.md'
99

1010
pull_request:
1111
branches:
12-
- master
12+
- main
1313
paths-ignore:
1414
- '**.md'
1515

@@ -41,11 +41,6 @@ jobs:
4141
- name: Check code modifications
4242
run: git diff --exit-code
4343

44-
# - name: Coveralls
45-
# uses: coverallsapp/github-action@master
46-
# with:
47-
# github-token: ${{ secrets.GITHUB_TOKEN }}
48-
4944
build:
5045
name: Build
5146
needs: test

.gitignore

+5-1
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,8 @@ vendor/
2020
.idea
2121

2222
# this project executable
23-
aws_cloudwatch_exporter
23+
aws_cloudwatch_exporter
24+
25+
.vscode/configurationCache.log
26+
.vscode/dryrun.log
27+
.vscode/targets.log

README.md

+8-8
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# aws_cloudwatch_exporter
22

3-
![Master branch workflow](https://github.com/slashdevops/aws_cloudwatch_exporter/workflows/Master%20branch%20workflow/badge.svg?branch=master)
3+
![Main branch workflow](https://github.com/slashdevops/aws_cloudwatch_exporter/workflows/main%20branch%20workflow/badge.svg?branch=main)
44
[![Go Report Card](https://goreportcard.com/badge/github.com/slashdevops/aws_cloudwatch_exporter)](https://goreportcard.com/report/github.com/slashdevops/aws_cloudwatch_exporter)
55
![Docker Pulls](https://img.shields.io/docker/pulls/slashdevops/aws-cloudwatch-exporter)
66

@@ -11,11 +11,11 @@ This exporter used the [AWS CloudWatch GetMetricsData API call](https://docs.aws
1111
* [cloudwatch-getmetricdata-api](https://aws.amazon.com/premiumsupport/knowledge-center/cloudwatch-getmetricdata-api/)
1212
* [Amazon CloudWatch pricing](https://aws.amazon.com/cloudwatch/pricing/?nc1=h_ls)
1313

14-
**WARNING**:
14+
**WARNING**:
1515

1616
* The use of this exporter could be expensive, this need be used taking care.
1717

18-
**NOTES**:
18+
**NOTES**:
1919

2020
* 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
2121
read the links above before use it.
@@ -49,7 +49,7 @@ More information at [metrics.md](docs/metrics.md)
4949
#### Docker
5050

5151
Using your own `~/.aws` configuration in local
52-
52+
5353
```bash
5454
docker run --rm \
5555
-i \
@@ -61,18 +61,18 @@ docker run --rm \
6161
-v ~/.aws:/home/nobody/.aws:ro \
6262
-e "AWS_SDK_LOAD_CONFIG=true" \
6363
-e "AWS_PROFILE=slashdevops" \
64-
slashdevops/aws-cloudwatch-exporter-linux-amd64:develop metrics get --metricsFiles /home/nobody/m1.yaml --outFile /home/nobody/tmp/out.yaml
64+
slashdevops/aws-cloudwatch-exporter-linux-amd64:develop metrics get --metricsFiles /home/nobody/m1.yaml --outFile /home/nobody/tmp/out.yaml
6565
```
6666

6767
Check the result
6868

6969
```bash
70-
cat /tmp/out.yaml
70+
cat /tmp/out.yaml
7171
```
7272

7373
#### Binary
7474

75-
If you download the binary from releases
75+
If you download the binary from releases
7676

7777
```bash
7878
AWS_SDK_LOAD_CONFIG="true" \
@@ -94,4 +94,4 @@ This software is released under the APACHE LICENSE, VERSION 2.0:
9494

9595
## Author Information
9696

97-
* [Christian González Di Antonio](https://github.com/christiangda)
97+
* [Christian González Di Antonio](https://github.com/christiangda)

0 commit comments

Comments
 (0)