Skip to content

Commit dde0810

Browse files
committed
initial
0 parents  commit dde0810

File tree

1,378 files changed

+310627
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,378 files changed

+310627
-0
lines changed

.gitattributes

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
CHANGELOG.md merge=union
2+
README.md merge=union
3+
go.sum merge=union
4+
plugins/inputs/all/all.go merge=union
5+
plugins/outputs/all/all.go merge=union
6+
**/testdata/** test eol=lf

.github/ISSUE_TEMPLATE/Bug_report.md

+46
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
---
2+
name: Bug report
3+
labels: bug
4+
about: Create a report to help us improve
5+
6+
---
7+
<!--
8+
Please redirect any questions about Telegraf usage to the InfluxData Community
9+
site: https://community.influxdata.com
10+
11+
Check the documentation for the related plugin including the troubleshooting
12+
section if available.
13+
-->
14+
15+
### Relevant telegraf.conf:
16+
<!-- Place config in the toml code section. -->
17+
```toml
18+
19+
```
20+
21+
### System info:
22+
23+
<!-- Include Telegraf version, operating system, and other relevant details -->
24+
25+
### Docker
26+
27+
<!-- 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 -->
28+
29+
### Steps to reproduce:
30+
31+
<!-- Describe the steps to reproduce the bug. -->
32+
33+
1. ...
34+
2. ...
35+
36+
### Expected behavior:
37+
38+
<!-- Describe what you expected to happen when you performed the above steps. -->
39+
40+
### Actual behavior:
41+
42+
<!-- Describe what actually happened when you performed the above steps. -->
43+
44+
### Additional info:
45+
46+
<!-- Include gist of relevant config, logs, etc. -->
+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
---
2+
name: Feature request
3+
labels: feature request
4+
about: Suggest an idea for this project
5+
6+
---
7+
8+
## Feature Request
9+
10+
Opening a feature request kicks off a discussion.
11+
12+
### Proposal:
13+
14+
### Current behavior:
15+
16+
### Desired behavior:
17+
18+
### Use case: <!-- [Why is this important (helps with prioritizing requests)] -->

.github/ISSUE_TEMPLATE/Support.md

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
---
2+
name: Support request
3+
labels: support
4+
about: Open a support request
5+
6+
---
7+
8+
<!--
9+
WOAHH, hold up. This isn't this best place for support questions.
10+
You can get a faster response on slack or forums:
11+
12+
Please redirect any QUESTIONS about Telegraf usage to
13+
- InfluxData Slack Channel: https://www.influxdata.com/slack
14+
- InfluxData Community Site: https://community.influxdata.com
15+
16+
Check the documentation for the related plugin including the troubleshooting
17+
section if available.
18+
19+
https://docs.influxdata.com/telegraf
20+
https://github.com/influxdata/telegraf/tree/master/docs
21+
22+
-->

.github/PULL_REQUEST_TEMPLATE.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
### Required for all PRs:
2+
3+
- [ ] Signed [CLA](https://influxdata.com/community/cla/).
4+
- [ ] Associated README.md updated.
5+
- [ ] Has appropriate unit tests.

.gitignore

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
/.idea
2+
/build
3+
/circonus-unified-agent
4+
/circonus-unified-agent.exe
5+
/circonus-unified-agent*gz
6+
/vendor
7+
.DS_Store
8+
/dist
9+
/circonus-unified-agent.conf
10+
.envrc

.goreleaser.yml

+144
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,144 @@
1+
project_name: circonus-unified-agent
2+
3+
before:
4+
hooks:
5+
- go mod tidy
6+
#- ./build_lint.sh
7+
8+
builds:
9+
-
10+
id: cua
11+
main: ./cmd/circonus-unified-agent/.
12+
binary: sbin/circonus-unified-agentd
13+
env:
14+
- CGO_ENABLED=0
15+
goos:
16+
- linux
17+
- darwin
18+
- windows
19+
- freebsd
20+
#- openbsd
21+
#- solaris
22+
#- illumos
23+
goarch:
24+
- amd64
25+
- arm64
26+
ignore:
27+
-
28+
goarch: 386
29+
- goos: openbsd
30+
goarch: arm64
31+
ldflags:
32+
- -s
33+
- -w
34+
- -extldflags "-static"
35+
- -X main.verion={{.Version}}
36+
- -X main.commit={{.ShortCommit}}
37+
- -X main.branch={{.Branch}}
38+
- -X main.buildDate={{.Date}}
39+
- -X main.buildTag={{.Tag}}
40+
dockers:
41+
-
42+
goos: linux
43+
goarch: amd64
44+
goarm: ''
45+
binaries:
46+
- circonus-unified-agentd
47+
image_templates:
48+
- "circonus/{{.ProjectName}}:{{.Tag}}-amd64"
49+
- "circonus/{{.ProjectName}}:latest-amd64"
50+
skip_push: false
51+
dockerfile: docker/x86_64/Dockerfile
52+
build_flag_templates:
53+
- "--label=org.label-schema.schema-version=1.0"
54+
- "--label=org.label-schema.version={{.Version}}"
55+
- "--label=org.label-schema.name={{.ProjectName}}"
56+
extra_files:
57+
- etc/circonus-unified-agent.conf
58+
-
59+
goos: linux
60+
goarch: arm64
61+
goarm: ''
62+
binaries:
63+
- circonus-unified-agentd
64+
image_templates:
65+
- "circonus/{{.ProjectName}}:{{.Tag}}-arm64"
66+
- "circonus/{{.ProjectName}}:latest-arm64"
67+
skip_push: false
68+
dockerfile: docker/arm64/Dockerfile
69+
build_flag_templates:
70+
- "--label=org.label-schema.schema-version=1.0"
71+
- "--label=org.label-schema.version={{.Version}}"
72+
- "--label=org.label-schema.name={{.ProjectName}}"
73+
extra_files:
74+
- etc/circonus-unified-agent.conf
75+
76+
docker_manifests:
77+
- name_template: "circonus/{{.ProjectName}}:latest"
78+
image_templates:
79+
- "circonus/{{.ProjectName}}:latest-amd64"
80+
- "circonus/{{.ProjectName}}:latest-arm64"
81+
- name_template: "circonus/{{.ProjectName}}:{{.Tag}}"
82+
image_templates:
83+
- "circonus/{{.ProjectName}}:{{.Tag}}-amd64"
84+
- "circonus/{{.ProjectName}}:{{.Tag}}-arm64"
85+
86+
nfpms:
87+
- vendor: Circonus, Inc.
88+
homepage: https://circonus.commit
89+
maintainer: Circonus <support@circonus.com>
90+
description: Circonus Unified Agent
91+
license: MIT
92+
file_name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Arch }}"
93+
replacements:
94+
darwin: macOS
95+
formats:
96+
- deb
97+
- rpm
98+
bindir: /opt/circonus/unified-agent
99+
empty_folders:
100+
- /opt/circonus/unified-agent/etc/config.d
101+
files:
102+
"scripts/circonus-unified-agent.service": "/opt/circonus/unified-agent/service/circonus-unified-agent.service"
103+
"scripts/init.sh": "/opt/circonus/unified-agent/service/init.sh"
104+
config_files:
105+
"etc/circonus-unified-agent.conf": "/opt/circonus/unified-agent/etc/circonus-unified-agent.conf"
106+
overrides:
107+
deb:
108+
scripts:
109+
preinstall: "scripts/deb/pre-install.sh"
110+
postinstall: "scripts/deb/post-install.sh"
111+
preremove: "scripts/deb/pre-remove.sh"
112+
postremove: "scripts/deb/post-remove.sh"
113+
rpm:
114+
scripts:
115+
preinstall: "scripts/rpm/pre-install.sh"
116+
postinstall: "scripts/rpm/post-install.sh"
117+
postremove: "scripts/rpm/post-remove.sh"
118+
rpm:
119+
config_noreplace_files:
120+
etc/circonus-unified-agent.conf: /opt/circonus/unified-agent/etc/circonus-unified-agent.conf
121+
122+
archives:
123+
-
124+
id: default
125+
name_template: "{{.ProjectName}}_{{.Version}}_{{.Os}}_{{.Arch}}"
126+
format: tar.gz
127+
replacements:
128+
amd64: x86_64
129+
files:
130+
- LICENSE
131+
- README.md
132+
- CHANGELOG.md
133+
- etc/**/*
134+
- scripts/circonus-unified-agent.service
135+
136+
release:
137+
github:
138+
owner: circonus-labs
139+
name: circonus-unified-agent
140+
draft: false
141+
prerelease: auto
142+
143+
checksum:
144+
name_template: "{{.ProjectName}}_checksums.txt"

0 commit comments

Comments
 (0)