Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add loongarch support #13799

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
124 commits
Select commit Hold shift + click to select a range
1cdc30b
Update changelog for v1.27.0
powersj Jun 12, 2023
dd48ee8
Telegraf v1.27.0
powersj Jun 12, 2023
0199253
chore(deps): Bump golang.org/x/crypto from 0.8.0 to 0.9.0 (#13428)
dependabot[bot] Jun 13, 2023
1f4f884
chore(deps): Bump golang.org/x/term from 0.8.0 to 0.9.0 (#13431)
dependabot[bot] Jun 13, 2023
06b0dec
test: Fix capturing the timestamp warning (#13426)
powersj Jun 13, 2023
12e0ff7
chore(deps): Bump github.com/jackc/pgx/v4 from 4.17.1 to 4.18.1 (#13427)
dependabot[bot] Jun 13, 2023
66bd42e
chore(deps): Bump github.com/nats-io/nats.go from 1.24.0 to 1.27.0 (#…
dependabot[bot] Jun 13, 2023
02702fb
chore(deps): Bump modernc.org/sqlite from 1.21.0 to 1.23.1 (#13430)
dependabot[bot] Jun 13, 2023
4ebe7aa
test(package): fix set up of yum files (#13435)
powersj Jun 14, 2023
95020eb
chore: Update golanglint-ci (#13445)
powersj Jun 14, 2023
09cce0c
test: Do not use hard-coded /tmp/telegraf (#13444)
powersj Jun 14, 2023
5fa4a2f
chore: replace altool with notarytool for macOS signing (#13453)
bnpfeife Jun 15, 2023
d60ede9
fix(config): Move bracketed environment variable substitution to doub…
srebhan Jun 15, 2023
4f28fc3
test: Use -e to print newlines on yum tests (#13450)
powersj Jun 16, 2023
51efc92
chore(deps): Bump github.com/go-sql-driver/mysql from 1.6.0 to 1.7.1 …
dependabot[bot] Jun 20, 2023
3819119
chore(deps): Bump github.com/aws/aws-sdk-go-v2/credentials from 1.13.…
dependabot[bot] Jun 20, 2023
d65adbc
chore(deps): Bump github.com/prometheus-community/pro-bing from 0.1.0…
dependabot[bot] Jun 20, 2023
26adcb9
fix(custom_builder): Correctly handle serializers and parsers (#13446)
srebhan Jun 20, 2023
5372863
fix: Handle compression level correctly for different algorithms (#13…
srebhan Jun 20, 2023
0c12860
chore(deps): Bump github.com/aws/aws-sdk-go-v2/service/timestreamwrit…
dependabot[bot] Jun 20, 2023
6010ab6
chore(deps): Bump github.com/aws/aws-sdk-go-v2/service/cloudwatch fro…
dependabot[bot] Jun 20, 2023
e3268bd
fix(config): Restore old environment var behavior with option (#13457)
srebhan Jun 21, 2023
d1497ee
Update build_version.txt for v1.27.1
powersj Jun 21, 2023
48031cd
Update changelog for v1.27.1
powersj Jun 21, 2023
a830df8
Telegraf v1.27.1
powersj Jun 21, 2023
05a5549
fix(inputs.modbus): Check number of register for datatype (#13485)
srebhan Jun 23, 2023
8d885c0
fix(inputs.modbus): Fix optimization of overlapping requests and add …
srebhan Jun 23, 2023
1bd9f2d
fix(outputs.stackdriver): Options to use official path and types (#13…
powersj Jun 26, 2023
e7043ea
fix(inputs.phpfpm): Check address length to avoid crash (#13495)
powersj Jun 26, 2023
25da104
fix(inputs.internet_speed): Add location as a field (#13497)
powersj Jun 27, 2023
c04cccc
chore(deps): Bump github.com/aws/aws-sdk-go-v2/config (#13504)
dependabot[bot] Jun 27, 2023
4ac06e2
chore(deps): Bump github.com/aliyun/alibaba-cloud-sdk-go (#13500)
dependabot[bot] Jun 27, 2023
f30e3f5
chore(deps): Bump cloud.google.com/go/bigquery from 1.51.1 to 1.52.0 …
dependabot[bot] Jun 27, 2023
df67ad8
chore(deps): Bump github.com/prometheus/client_golang (#13502)
dependabot[bot] Jun 27, 2023
f50de1f
fix(secretstores): Skip dbus connection with kwallet (#13489)
powersj Jun 27, 2023
b2e1f3c
docs(inputs.ravendb): Change metrics requirements in readme (#13494)
Lwiel Jun 27, 2023
311cc66
fix(serializers.splunkmetric): Fix TOML option name for multi-metric …
srebhan Jun 28, 2023
a029d92
chore(deps): Bump github.com/gopcua/opcua from 0.3.7 to 0.4.0 (#13509)
srebhan Jun 28, 2023
6aa7749
docs(intel_baseband): Remove ACC101 mentions from documentation (#13518)
p-zak Jun 29, 2023
c038d75
fix(inputs.cloud_pubsub): Properly lock for decompression (#13525)
srebhan Jun 30, 2023
dbbab5e
fix(parsers.grok): Use UTC as the default timezone (#13526)
powersj Jun 30, 2023
b795632
fix(inputs.opcua): Ensure we are connected after reconnect (#13514)
srebhan Jun 30, 2023
cfb9d0e
fix(outputs.sumologic): Unwrap serializer for type check (#13522)
srebhan Jul 4, 2023
14e24a5
chore(deps): Bump github.com/urfave/cli/v2 from 2.25.5 to 2.25.7 (#13…
dependabot[bot] Jul 5, 2023
918545b
chore(deps): Bump google.golang.org/api from 0.126.0 to 0.129.0 (#13540)
dependabot[bot] Jul 5, 2023
2d9fb13
chore(deps): Bump golang.org/x/text from 0.9.0 to 0.10.0 (#13538)
dependabot[bot] Jul 5, 2023
9042b67
chore(deps): Bump github.com/aws/aws-sdk-go-v2/service/kinesis from 1…
dependabot[bot] Jul 5, 2023
1e8748a
fix(inputs.snmp_trap): Copy GoSNMP global defaults to prevent side-ef…
mark-chandler Jul 5, 2023
98d814e
fix(parsers.binary): Fix binary parser example in README.md (#13547)
trsnx Jul 5, 2023
fc780c1
fix(outputs.graphite): Rework connection handling (#13527)
srebhan Jul 5, 2023
6c9bb4d
chore(deps): Bump golang.org/x/text from 0.10.0 to 0.11.0 (#13554)
dependabot[bot] Jul 5, 2023
510e4cf
docs: revert table example change (#13556)
powersj Jul 5, 2023
a3e4318
docs: remove newline (#13558)
powersj Jul 5, 2023
e9bea46
fix(inputs.gnmi): Add option to explicitly trim field-names (#13517)
srebhan Jul 6, 2023
15d2456
feat(CI): Automatically assign milestones to pull-requests (#13551)
srebhan Jul 6, 2023
af05436
fix(inputs.vpshere): Compare versions as a string (#13557)
powersj Jul 6, 2023
75630ed
fix(parsers.xpath): Handle explicitly defined fields correctly (#13550)
srebhan Jul 6, 2023
c536c6e
chore(inputs.opentelemetry): Unbreak after interface change (#13559)
jacobmarble Jul 6, 2023
f6e1f3f
fix(processors.printer): Convert output to string (#13564)
srebhan Jul 7, 2023
454a06b
fix(tools.custom_builder): Error out for unknown plugins in configura…
srebhan Jul 7, 2023
4f70eed
fix(inputs.mqtt_consumer): Correctly handle semaphores on messages (#…
powersj Jul 7, 2023
037f955
chore(deps): Bump github.com/snowflakedb/gosnowflake from 1.6.13 to 1…
srebhan Jul 7, 2023
f4b4d51
update go.sum
powersj Jul 10, 2023
d09888f
fix: replace github.com/denisenkom/go-mssqldb with github.com/microso…
powersj Jul 7, 2023
4e1c2ed
fix(inputs.mqtt_consumer): Print warning on no metrics generated (#13…
powersj Jul 10, 2023
d5a19fb
test(outputs.instrumental): Allow setting custom port (#13576)
powersj Jul 10, 2023
cd55e82
fix(config): Replace environment variables if existing but empty (#13…
srebhan Jul 10, 2023
675b42b
fix(outputs.influxdb_v2): Expose HTTP/2 client timeouts (#13562)
powersj Jul 10, 2023
682ce61
docs(inputs.gnmi): Add troubleshooting section for Juniper devices (…
srebhan Jul 10, 2023
7dbd949
chore: Update milestone action and fix permissions (#13583)
srebhan Jul 10, 2023
1cc27af
chore: remove cbor tests, feat not backported
powersj Jul 10, 2023
73b0090
Update build_version.txt for v1.27.2
powersj Jul 10, 2023
8dad3e2
Update changelog for v1.27.2
powersj Jul 10, 2023
9356fd8
Telegraf v1.27.2
powersj Jul 10, 2023
0a7b83c
chore: Trigger on PR's base and restrict permissions (#13584)
srebhan Jul 10, 2023
822c80c
chore(deps): Bump github.com/go-ldap/ldap/v3 from 3.4.4 to 3.4.5 (#13…
dependabot[bot] Jul 11, 2023
ac2f52e
chore(deps): Bump k8s.io/apimachinery from 0.27.2 to 0.27.3 (#13587)
dependabot[bot] Jul 11, 2023
e1c82bd
chore(deps): Bump github.com/opensearch-project/opensearch-go/v2 from…
dependabot[bot] Jul 11, 2023
1197b06
chore(deps): Bump github.com/prometheus-community/pro-bing from 0.2.0…
dependabot[bot] Jul 11, 2023
30b7d9d
chore(deps): Bump github.com/aws/aws-sdk-go-v2/service/dynamodb from …
dependabot[bot] Jul 11, 2023
71e20a6
chore(deps): Bump github.com/jaegertracing/jaeger from 1.38.0 to 1.47…
dependabot[bot] Jul 12, 2023
46f3f69
chore(inputs.net): Deprecate 'ignore_protocol_stats' value 'false' (#…
srebhan Jul 12, 2023
860ee93
fix(tools.custom_builder): Ignore non-plugin sections during configur…
srebhan Jul 13, 2023
8cd4222
chore: Update sarma repo URL post-swap to IBM (#13612)
powersj Jul 13, 2023
2d12337
fix(test): Increase waiting for network time (#13613)
powersj Jul 13, 2023
a47ee4d
fix(outputs.stackdriver): Add tag as resource label option (#13575)
powersj Jul 14, 2023
22a867b
fix(outputs.nebius_cloud_monitoring): Replace reserved label names (#…
abrekhov Jul 14, 2023
476b1c8
chore: Enable multi-os golanglint-ci (#13599)
powersj Jul 14, 2023
4229a4a
fix(agent): Respect processor order in file (#13614)
srebhan Jul 14, 2023
fdfb74d
chore: Update to official govulncheck github action (#13623)
powersj Jul 14, 2023
7069f5b
fix(outputs.opentelemetry): group metrics by age and timestamp (#13292)
powersj Jul 14, 2023
48a8e1e
chore(deps): Bump github.com/thomasklein94/packer-plugin-libvirt from…
dependabot[bot] Jul 21, 2023
9114b84
chore(deps): Bump github.com/antchfx/xmlquery from 1.3.15 to 1.3.17 (…
dependabot[bot] Jul 21, 2023
903d9be
chore(deps): Bump modernc.org/sqlite from 1.23.1 to 1.24.0 (#13641)
dependabot[bot] Jul 21, 2023
8360d24
fix(inputs.prometheus): Fix missing metrics when multiple plugin inst…
redbaron Jul 21, 2023
8906015
fix(inputs.prometheus): Don't collect metrics from finished pods (#13…
redbaron Jul 21, 2023
93fdc90
docs(inputs.postgresql_extensible): Document 'measurement' query conf…
redbaron Jul 21, 2023
e88665d
chore(deps): Bump github.com/antchfx/jsonquery from 1.3.1 to 1.3.2 (#…
dependabot[bot] Jul 21, 2023
32c2f41
chore(infrastructure): Bump github.com/testcontainers/testcontainers-…
powersj Jul 24, 2023
3bb98e7
fix(inputs.docker): Add restart count (#13646)
powersj Jul 24, 2023
ebbc32c
chore(deps): Bump github.com/aws/aws-sdk-go-v2/service/sts (#13669)
dependabot[bot] Jul 25, 2023
9b72ac1
chore(deps): Bump github.com/aliyun/alibaba-cloud-sdk-go (#13668)
dependabot[bot] Jul 25, 2023
57f79b4
chore(deps): Bump k8s.io/api from 0.27.2 to 0.27.4 (#13667)
dependabot[bot] Jul 25, 2023
87adac1
chore(deps): Bump github.com/shirou/gopsutil/v3 from 3.23.5 to 3.23.6…
dependabot[bot] Jul 25, 2023
5950d77
chore(deps): Bump github.com/eclipse/paho.golang from 0.10.0 to 0.11.…
dependabot[bot] Jul 25, 2023
6c22e92
fix(parsers.xpath): Fix field-names for arrays of simple types (#13665)
srebhan Jul 25, 2023
681d6cc
test: Add IgnoreTags function
powersj Jul 31, 2023
87ea01c
fix(config): Setup logger for secret-stores (#13671)
srebhan Jul 25, 2023
55791ec
fix(parsers.xpath): Improve handling of complex-type nodes (#13660)
srebhan Jul 26, 2023
1e9083f
fix(parsers.xpath): Ensure precedence of explicitly defined tags and …
srebhan Jul 26, 2023
8155b9c
fix(config): Handle escaping and quotation correctly (#13675)
srebhan Jul 26, 2023
97f6c23
docs(outputs.azure_data_explorer): Update supported Azure Data Explor…
ag-ramachandran Jul 26, 2023
e963e0e
fix(inputs.mqtt_consumer): Client logs via option (#13663)
powersj Jul 26, 2023
00b8bde
chore(deps): Bump github.com/antchfx/xpath from v1.2.4 to latest mast…
srebhan Jul 26, 2023
8f67807
test(inputs.radius): Use random port for test (#13683)
srebhan Jul 27, 2023
7a1c1ec
chore(tools): Fix doc inclusion tools on Windows (#13685)
gazpachoking Jul 28, 2023
5a22130
docs(inputs.conntrack): Explain different collection methods (#13691)
powersj Jul 28, 2023
c150b28
test(inputs.solr): Rework testing (#13692)
srebhan Jul 28, 2023
4cb13c7
fix(inputs.jti_openconfig_telemetry): Reauthenticate connection (#13647)
powersj Jul 31, 2023
47ee277
Update build_version.txt for v1.27.3
powersj Jul 31, 2023
8da26ad
Update changelog for v1.27.3
powersj Jul 31, 2023
afcf013
Telegraf v1.27.3
powersj Jul 31, 2023
0e472ae
add loongarch support
yzewei Aug 21, 2023
d90020c
Update README.md
yzewei Aug 21, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 25 additions & 6 deletions .github/workflows/golangci-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,33 @@ permissions:
jobs:
golangci:
name: lint-codebase
runs-on: ubuntu-latest
strategy:
fail-fast: false
max-parallel: 3
matrix:
os: [ ubuntu-latest, macos-latest, windows-latest ]
runs-on: ${{ matrix.os }}
timeout-minutes: 360 #default
steps:
- uses: actions/setup-go@v3
- name: Checkout code
uses: actions/checkout@v3
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: '1.20'
- uses: actions/checkout@v3
- name: golangci-lint
- name: golangci-lint standard
if: runner.os != 'Windows'
uses: golangci/golangci-lint-action@v3
timeout-minutes: 60
with:
version: v1.52.2
args: --timeout 15m0s --verbose --out-${NO_FUTURE}format tab
version: v1.53.2
args: --timeout 60m0s --verbose --out-${NO_FUTURE}format tab
- name: golangci-lint windows
if: runner.os == 'Windows'
uses: golangci/golangci-lint-action@v3
timeout-minutes: 60
env:
nofuture: out-format
with:
version: v1.53.2
args: --timeout 60m0s --verbose --%nofuture% tab
7 changes: 3 additions & 4 deletions .github/workflows/govulncheck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ jobs:
steps:
- uses: actions/checkout@v3
- name: Scan for Vulnerabilities in Code
uses: Templum/govulncheck-action@v0.10.1
uses: golang/govulncheck-action@v1
with:
go-version: '1.20'
vulncheck-version: v0.1.0
package: ./...
go-version-input: 1.20.6
go-package: ./...
29 changes: 29 additions & 0 deletions .github/workflows/milestones.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: milestones
on:
pull_request_target:
types:
- closed

permissions:
issues: write
pull-requests: write

jobs:
milestone_job:
if: github.event.pull_request.merged == true
runs-on: ubuntu-latest
name: Assign milestones to PRs
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Assign milestone to PR
uses: srebhan/[email protected]
id: assign-milestone
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
bugfix-labels: 'fix,chore,docs,dependencies'
minor-labels: 'feat'
major-labels: 'breaking change'
fallback: 'minor'
- name: Show milestone
run: echo "Assigned milestone is ${{ steps.assign-milestone.outputs.milestone }}"
63 changes: 24 additions & 39 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
linters:
disable-all: true
enable:
# - telegraflinter
- asasalint
- asciicheck
- bidichk
Expand Down Expand Up @@ -39,44 +38,30 @@ linters:

linters-settings:
depguard:
# Kind of list is passed in.
# Allowed values: allowlist|denylist
# Default: denylist
list-type: denylist
# Check the list against standard lib.
# Default: false
include-go-root: true
# A list of packages for the list type specified.
# Can accept both string prefixes and string glob patterns.
# Default: []
packages:
- log
# A list of packages for the list type specified.
# Specify an error message to output when a denied package is used.
# Default: []
packages-with-error-message:
- log: 'Use injected telegraf.Logger instead'
# Specify rules by which the linter ignores certain files for consideration.
# Can accept both string prefixes and string glob patterns.
# The ! character in front of the rule is a special character
# which signals that the linter should negate the rule.
# This allows for more precise control, but it is only available for glob patterns.
# Default: []
ignore-file-rules:
- "**/agent/**"
- "**/cmd/**"
- "**/config/**"
- "**/filter/**"
- "**/internal/**"
- "**/logger/**"
- "**/metric/**"
- "**/models/**"
- "**/plugins/serializers/**"
- "**/scripts/**"
- "**/selfstat/**"
- "**/testutil/**"
- "**/tools/**"
- "**/*_test.go"
rules:
# Name of a rule.
main:
# Packages that are not allowed where the value is a suggestion.
deny:
- pkg: log
desc: 'Use injected telegraf.Logger instead'
# List of file globs that will match this list of settings to compare against.
# Default: $all
files:
- "!**/agent/**"
- "!**/cmd/**"
- "!**/config/**"
- "!**/filter/**"
- "!**/internal/**"
- "!**/logger/**"
- "!**/metric/**"
- "!**/models/**"
- "!**/plugins/serializers/**"
- "!**/scripts/**"
- "!**/selfstat/**"
- "!**/testutil/**"
- "!**/tools/**"
- "!**/*_test.go"
errcheck:
# List of functions to exclude from checking, where each entry is a single function to exclude.
# See https://github.com/kisielk/errcheck#excluding-functions for details.
Expand Down
Loading