forked from influxdata/telegraf
-
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
1,354 changed files
with
100,821 additions
and
54,071 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
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
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,66 @@ | ||
name: Bug Report | ||
description: Create a bug report to help us improve | ||
labels: ["bug"] | ||
body: | ||
- type: markdown | ||
attributes: | ||
value: | | ||
Thanks for taking time to fill out this bug report! We reserve Telegraf issues for bugs for reproducible problems. | ||
Please redirect any questions about Telegraf usage to our [Community Slack](https://influxdata.com/slack) or [Community Page](https://community.influxdata.com/) we have a lot of talented community members there who could help answer your question more quickly. | ||
- type: textarea | ||
id: config | ||
attributes: | ||
label: Relevent telegraf.conf | ||
description: Place config in the toml code section. This will be automatically formatted into toml, so no need for backticks. | ||
render: toml | ||
validations: | ||
required: true | ||
- type: input | ||
id: system-info | ||
attributes: | ||
label: System info | ||
description: Include Telegraf version, operating system, and other relevant details | ||
placeholder: ex. Telegraf 1.20.0, Ubuntu 20.04, Docker 20.10.8 | ||
validations: | ||
required: true | ||
- type: textarea | ||
id: docker | ||
attributes: | ||
label: Docker | ||
description: If your bug involves third party dependencies or services, it can be very helpful to provide a Dockerfile or docker-compose.yml that reproduces the environment you're testing against. | ||
validations: | ||
required: false | ||
- type: textarea | ||
id: reproduce | ||
attributes: | ||
label: Steps to reproduce | ||
description: Describe the steps to reproduce the bug. | ||
value: | | ||
1. | ||
2. | ||
3. | ||
... | ||
validations: | ||
required: true | ||
- type: textarea | ||
id: expected-behavior | ||
attributes: | ||
label: Expected behavior | ||
description: Describe what you expected to happen when you performed the above steps. | ||
validations: | ||
required: true | ||
- type: textarea | ||
id: actual-behavior | ||
attributes: | ||
label: Actual behavior | ||
description: Describe what actually happened when you performed the above steps. | ||
validations: | ||
required: true | ||
- type: textarea | ||
id: additional-info | ||
attributes: | ||
label: Additional info | ||
description: Include gist of relevant config, logs, etc. | ||
validations: | ||
required: false | ||
|
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 |
---|---|---|
@@ -1,5 +1,26 @@ | ||
### Required for all PRs: | ||
|
||
- [ ] Signed [CLA](https://influxdata.com/community/cla/). | ||
- [ ] Associated README.md updated. | ||
- [ ] Has appropriate unit tests. | ||
<!-- Complete the tasks in the following list. Change [ ] to [x] to | ||
show completion. --> | ||
|
||
- [ ] Updated associated README.md. | ||
- [ ] Wrote appropriate unit tests. | ||
- [ ] Pull request title or commits are in [conventional commit format](https://www.conventionalcommits.org/en/v1.0.0/#summary) | ||
|
||
<!-- Link to issues that describe the need for the change. Issues | ||
should include context that will help reviewers understand why the | ||
change is needed. | ||
Make sure to link issues and using a keyword like "resolves #1234". | ||
https://docs.github.com/en/github/managing-your-work-on-github/linking-a-pull-request-to-an-issue#linking-a-pull-request-to-an-issue-using-a-keyword | ||
--> | ||
|
||
resolves # | ||
|
||
<!-- Finally, include a summary of the code change itself. This | ||
description should tell reviewers how the issues were resolved. | ||
example: Fixed an off by one error in counter variable in type FooBar. | ||
example: Added an input plugin to gather yak shaving metrics using | ||
golang library yaktech/shaver. --> |
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,11 @@ | ||
version: 2 | ||
updates: | ||
- package-ecosystem: "gomod" | ||
directory: "/" | ||
schedule: | ||
interval: "weekly" | ||
ignore: | ||
# Dependabot isn't able to update this packages that do not match the source, so anything with a version | ||
- dependency-name: "*.v*" | ||
commit-message: | ||
prefix: "fix:" |
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,35 @@ | ||
name: golangci-lint | ||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
branches: | ||
- master | ||
schedule: | ||
# Trigger every day at 16:00 UTC | ||
- cron: '0 16 * * *' | ||
jobs: | ||
golangci-pr: | ||
if: github.ref != 'refs/heads/master' | ||
name: lint-pr-changes | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: golangci-lint | ||
uses: golangci/golangci-lint-action@v2 | ||
with: | ||
version: v1.42.1 | ||
only-new-issues: true | ||
golangci-master: | ||
if: github.ref == 'refs/heads/master' | ||
name: lint-master-all | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: golangci-lint | ||
uses: golangci/golangci-lint-action@v2 | ||
with: | ||
version: v1.42.1 | ||
only-new-issues: true | ||
args: --issues-exit-code=0 |
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,58 @@ | ||
--- | ||
################################# | ||
################################# | ||
## Super Linter GitHub Actions ## | ||
################################# | ||
################################# | ||
name: Lint Code Base | ||
|
||
# | ||
# Documentation: | ||
# https://help.github.com/en/articles/workflow-syntax-for-github-actions | ||
# | ||
|
||
############################# | ||
# Start the job on all push # | ||
############################# | ||
on: | ||
push: | ||
branches-ignore: [master, main] | ||
# Remove the line above to run when pushing to master | ||
pull_request: | ||
branches: [master, main] | ||
|
||
############### | ||
# Set the Job # | ||
############### | ||
jobs: | ||
build: | ||
# Name the Job | ||
name: Lint Code Base | ||
# Set the agent to run on | ||
runs-on: ubuntu-latest | ||
|
||
################## | ||
# Load all steps # | ||
################## | ||
steps: | ||
########################## | ||
# Checkout the code base # | ||
########################## | ||
- name: Checkout Code | ||
uses: actions/checkout@v2 | ||
with: | ||
# Full git history is needed to get a proper list of changed files within `super-linter` | ||
fetch-depth: 0 | ||
|
||
################################ | ||
# Run Linter against code base # | ||
################################ | ||
- name: Lint Code Base | ||
uses: github/[email protected] | ||
env: | ||
VALIDATE_ALL_CODEBASE: false | ||
DEFAULT_BRANCH: master | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
LINTER_RULES_PATH: '.' | ||
MARKDOWN_CONFIG_FILE: .markdownlint.yml | ||
VALIDATE_MARKDOWN: true |
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,25 @@ | ||
name: test | ||
|
||
on: [pull_request] | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- name: checkout source | ||
uses: actions/checkout@v2 | ||
|
||
- name: build binary | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install -y wget build-essential git | ||
sudo apt-get upgrade -y | ||
sudo wget https://golang.org/dl/go1.17.5.linux-amd64.tar.gz | ||
sudo tar -C /usr/local -xzf go1.17.5.linux-amd64.tar.gz | ||
export PATH="/usr/local/go/bin:$PATH" | ||
go mod tidy | ||
LDFLAGS='-s -w' make telegraf | ||
if [ ! -f telegraf ]; then | ||
echo "Failed to build binary" | ||
exit 1 | ||
fi |
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 |
---|---|---|
|
@@ -5,4 +5,8 @@ | |
/telegraf.gz | ||
/vendor | ||
.DS_Store | ||
result* | ||
result* | ||
process.yml | ||
/.vscode | ||
/*.toml | ||
/*.conf |
Oops, something went wrong.