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

Merge from upstream #2

Open
wants to merge 275 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
275 commits
Select commit Hold shift + click to select a range
e939880
Update indices.go
tetianakravchenko Mar 6, 2021
1629eda
Implement hot-reload for TLS client certificate
tsaarni Apr 30, 2021
5c12fd5
Update for prometheus-community
SuperQ May 29, 2021
443ba8f
Add license headers.
SuperQ May 29, 2021
bf3f005
Merge pull request #420 from prometheus-community/superq/community
SuperQ May 31, 2021
3ce6fee
Update Go modules
SuperQ May 31, 2021
07c37d0
Merge pull request #421 from prometheus-community/superq/bump_mod
SuperQ May 31, 2021
8eb1477
Update common Prometheus files
prombot Jun 2, 2021
98c769b
Merge pull request #425 from prometheus-community/repo_sync
SuperQ Jun 2, 2021
8ddc6e6
fix(test): resolve test race conditions
sysadmind Jun 2, 2021
958502f
Fix one more unsynchronized read in test
sysadmind Jun 3, 2021
7dd7a5a
Update circleci to use plain make with test
sysadmind Jun 3, 2021
4fbb649
test: refactor TestNodesStats
sysadmind Jun 3, 2021
e0c9048
Merge pull request #426 from sysadmind/fix-test-race
roidelapluie Jun 3, 2021
3aab89d
Merge pull request #407 from tetianakravchenko/indices-collector-remo…
sysadmind Jun 3, 2021
23ad1e7
Add Gauge for total_fields setting on a index (#411)
repl-mike-roest Jun 4, 2021
a676d71
Merge pull request #414 from Nordix/tls-cert-hot-reload-pr-for-upstream
sysadmind Jun 4, 2021
99d89b4
Merge pull request #324 from dpavlos/fix_metric_name
sysadmind Jun 4, 2021
a85dfc7
refactor: use json.Unmarshal instead of Decode (#316)
caarlos0 Jun 9, 2021
ff01109
Revert "fix metric name for gc counter"
sysadmind Jun 9, 2021
9122f49
Merge pull request #430 from prometheus-community/revert-324-fix_metr…
sysadmind Jun 9, 2021
46d241e
Release 1.2.0 (#431)
sysadmind Jun 10, 2021
37e117f
Fix changelog heading to add release date (#433)
sysadmind Jun 10, 2021
545e898
Merge pull request #434 from prometheus-community/release-1.2
sysadmind Jun 10, 2021
813e9cd
Skip TestNodesStats on 7.13.1
sysadmind Jun 11, 2021
f1d6173
Merge pull request #427 from sysadmind/node-stats-tests
sysadmind Jun 11, 2021
404109a
Update README with 1.2.0 docker tags (#435)
sysadmind Jun 12, 2021
1649533
fix _/node/stats related metrics
0x46616c6b Jun 15, 2021
df0f1d0
remove skipping test for 7.13.1
0x46616c6b Jun 15, 2021
a4c1f63
Merge pull request #439 from 0x46616c6b/fix-node-stats-metrics
sysadmind Jun 16, 2021
4f20bba
Fix snapshot_stats metrics which happens on HA hdfs type snapshot rep…
bydeath Jun 17, 2021
3bad103
Fix issue #415
bydeath Jun 18, 2021
eb380d7
Merge pull request #442 from bydeath/fix-snapshot_stats_unmarshal_err
sysadmind Jun 18, 2021
e581eff
bump to latest.we do not need to update this example on every release.
oldthreefeng Jun 11, 2021
d1e7a31
Merge pull request #436 from oldthreefeng/patch-2
sysadmind Jun 22, 2021
8615b89
fix collecting index stats 400 error
bydeath Jun 23, 2021
b4b687a
Update common Prometheus files
prombot Jun 29, 2021
c4447ca
Merge pull request #447 from prometheus-community/repo_sync
sysadmind Jun 29, 2021
add48f2
Fix yamllint errors
sysadmind Jun 29, 2021
4ed6a6b
Merge pull request #448 from sysadmind/yamllint-fixes
sysadmind Jun 29, 2021
c9bf405
Add changelog entries for 1.2.1
sysadmind Jun 29, 2021
dae4eef
Merge pull request #449 from sysadmind/1-2-1
sysadmind Jun 29, 2021
161b27b
bump VERSION for hotfix
sysadmind Jun 29, 2021
746222a
Merge pull request #450 from sysadmind/bump-version
sysadmind Jun 29, 2021
de24845
Document `es.indices_mappings` flag
mandarg Jul 16, 2021
b6726da
Grafana dashboard: remove the Example from the name, allowing direct …
desaintmartin Jul 16, 2021
e6ea74b
Merge pull request #455 from mandarg/indices_mappings
sysadmind Jul 16, 2021
3d6277d
Merge pull request #456 from desaintmartin/master
sysadmind Jul 16, 2021
4896798
Add the ability to use ApiKey based authentication.
TrafeX Jul 24, 2021
0723e2c
Describe the apikey argument
TrafeX Jul 26, 2021
3acda51
No need to keep a reference to the apikey and use sprintf for concate…
TrafeX Jul 26, 2021
41e0f4e
Improved flow by defining httpClient only once
TrafeX Jul 27, 2021
008e29e
Merge pull request #459 from TrafeX/api-key-authorization
sysadmind Jul 27, 2021
fa71388
Allow to specify ES_USERNAME/ES_PASSWORD environment variables to con…
guillaumelecerf Jul 27, 2021
845aff6
Merge pull request #445 from bydeath/fix-index_stats-metrics-400_status
sysadmind Aug 2, 2021
80e25fa
Merge pull request #461 from guillaumelecerf/feature/support-username…
sysadmind Aug 3, 2021
134eff1
Clean up main.go (#463)
sysadmind Aug 17, 2021
87a3f7d
Fix golangci-lint errors for #474 (#476)
sysadmind Oct 2, 2021
b145118
feat: replace go-kit/kit with go-kit/log (#479)
greut Oct 4, 2021
3d86731
Update common Prometheus files (#481)
prombot Oct 4, 2021
5b2e5c7
Updates for v1.3.0 (#480)
sysadmind Oct 21, 2021
dede9e9
Add search_query_current and indexing_index_current (#485)
locmai Oct 25, 2021
d64ec09
Update common Prometheus files (#494)
prombot Nov 2, 2021
b4aac6f
Remove non-existing CPU metrics (#498)
multani Jan 19, 2022
c2365f8
Enable revive linter (#519)
SuperQ Jan 19, 2022
4699efb
Update process CPU metric (#520)
SuperQ Jan 19, 2022
45e0d70
Cleanup non-standard ENV var setup (#518)
SuperQ Jan 19, 2022
25d1919
Update common Prometheus files (#522)
prombot Jan 20, 2022
6b6eeae
Add a maintainers file (#524)
SuperQ Jan 20, 2022
edd28cd
Add a common collector interface (#521)
sysadmind Jan 24, 2022
eaae0a7
docs: fix link to Helm chart and add example (#534)
hairmare Feb 17, 2022
7d996b6
Update common Prometheus files (#554)
prombot Mar 18, 2022
24c8f9c
Update common Prometheus files (#557)
prombot Apr 6, 2022
e5fb0a3
Add elasticsearch_jvm_uptime gauge (#537)
perlun Apr 13, 2022
070730a
Update build (#562)
SuperQ May 6, 2022
3907015
Update common Prometheus files (#565)
prombot May 9, 2022
4456c97
Add additional collector for SLM stats (#558)
Evesy May 12, 2022
422c7a0
publish total shards on a node (#535)
avee137 May 13, 2022
4a996bc
Grafana dashboard: use new node exporter metric names (#501)
gpchelkin May 13, 2022
2b48011
Fix linting that was missed in CI run (#568)
sysadmind May 13, 2022
9ece896
Refactor cluster info collector (#536)
sysadmind May 13, 2022
b536294
Add support for adding aliases to index and shard stats (#563)
bobo333 May 19, 2022
28bc8ae
Bump github.com/go-kit/log from 0.2.0 to 0.2.1 (#576)
dependabot[bot] Jun 1, 2022
6bef1fc
Update common Prometheus files (#583)
prombot Jun 7, 2022
47f82dc
Update common Prometheus files (#586)
prombot Jun 13, 2022
23c72f7
Fixes the case of the word Elasticsearch (#588)
thbkrkr Jun 21, 2022
447ae18
Bump github.com/prometheus/common from 0.34.0 to 0.35.0 (#598)
dependabot[bot] Jul 2, 2022
3babf7b
Bump github.com/imdario/mergo from 0.3.12 to 0.3.13 (#577)
dependabot[bot] Jul 4, 2022
210e08e
Bump github.com/prometheus/client_golang from 1.12.1 to 1.12.2 (#578)
dependabot[bot] Jul 6, 2022
884f0ac
Update changelog and version for 1.4.0 (#593)
sysadmind Jul 13, 2022
a0993ec
Support for AWS Elasticsearch using AWS SDK v2 (#597)
rosspatil Jul 19, 2022
d9b9ecd
Add metrics collection for data stream statistics (#592)
Evesy Jul 19, 2022
102a9d3
Fix cluster settings collection when max_shards_per_node is manually …
akazs Jul 20, 2022
73d75a3
Update semver package (#606)
SuperQ Jul 28, 2022
ca4b237
Release 1.5.0 (#607)
SuperQ Jul 28, 2022
620fd0c
Update Readme for AWS region (#613)
rosspatil Aug 18, 2022
be107e0
Update to Go 1.19 (#614)
Sijoma Aug 25, 2022
3d70f1e
Add https to metrics server (#615)
yuriykis Aug 25, 2022
f6480d1
Update common Prometheus files (#616)
prombot Aug 25, 2022
92c4ce8
Bump github.com/aws/aws-sdk-go-v2/config from 1.15.14 to 1.17.8 (#631)
dependabot[bot] Oct 4, 2022
b0357ee
Fixed typo in README.md (#625)
abhilashmandaliya Oct 4, 2022
70152fe
Update common Prometheus files (#632)
prombot Oct 4, 2022
416fa22
number_of_replicas (#483)
mac2000 Nov 1, 2022
0509051
Bump github.com/aws/aws-sdk-go-v2/config from 1.17.8 to 1.18.7 (#670)
dependabot[bot] Jan 21, 2023
a5f6de3
feat(*): add ilm metrics (#513)
iishabakaev Jan 21, 2023
6934773
Fix index field count (#675)
hartfordfive Jan 22, 2023
c2b9c71
Update common Prometheus files (#668)
prombot Jan 22, 2023
d55d6d2
Add support to assume an AWS role and renew expired credentials (#653)
steveteuber Jan 24, 2023
3bf8a36
Bump github.com/aws/aws-sdk-go-v2/credentials from 1.13.7 to 1.13.10 …
dependabot[bot] Feb 12, 2023
96c88be
Bump github.com/aws/aws-sdk-go-v2/service/sts from 1.18.2 to 1.18.3 (…
dependabot[bot] Feb 12, 2023
b87a0ea
Bump github.com/prometheus/common from 0.37.0 to 0.40.0 (#687)
dependabot[bot] Mar 5, 2023
25c6a90
Bump golang.org/x/net from 0.4.0 to 0.7.0 (#688)
dependabot[bot] Mar 5, 2023
bc05ee5
Bump golang.org/x/crypto from 0.0.0-20210616213533-5ff15b29337e to 0.…
dependabot[bot] Mar 5, 2023
687e75e
feat: report ElasticCloud data tiers nodes roles (#652)
christophemorio Mar 23, 2023
7a7eb85
Fix ilm metric labels (#677)
sysadmind Mar 23, 2023
33b6077
Refactor cluster settings collector (#656)
sysadmind Mar 23, 2023
0008ee9
Update build and cleanup
SuperQ Mar 23, 2023
fa851f6
Merge pull request #696 from prometheus-community/superq/build
SuperQ Mar 23, 2023
790bd21
Merge pull request #693 from sysadmind/fix-ilm-labels
SuperQ Mar 23, 2023
ad3ee50
Update common Prometheus files
prombot Mar 23, 2023
6887a82
Merge pull request #697 from prometheus-community/repo_sync
SuperQ Mar 24, 2023
fe69494
add `elasticsearch_indices_docs_total` metric doc (#705)
innerpeacez Apr 13, 2023
ed8a758
add `elasticsearch_indices_deleted_docs_primary` metric doc (#707)
innerpeacez Apr 23, 2023
fda1b57
Fix comment typo error
bagmeg May 9, 2023
c51cf41
Update README: Add required privileges for es.indices_mappings
raz-amir May 23, 2023
d0d64e9
fix: set the value of elasticsearch_clusterinfo_version_info to 1 (#728)
jorgelbg Jun 22, 2023
1ce43d7
Upgrade direct go dependencies
sysadmind Jun 22, 2023
168002a
Updates for v1.6.0 release
sysadmind Jun 22, 2023
e92e0ce
Merge pull request #734 from sysadmind/upgrade-deps
SuperQ Jun 22, 2023
c52fc42
Merge pull request #714 from bagmeg/fix-comment-typo-error
SuperQ Jun 22, 2023
a399d71
Merge pull request #716 from ramir-savvy/patch-1
SuperQ Jun 22, 2023
d103c1e
Update common Prometheus files (#741)
prombot Jun 27, 2023
831c564
Adjust language for breaking changes
sysadmind Jun 28, 2023
a5f4279
Merge pull request #735 from sysadmind/release-1.6.0
SuperQ Jun 29, 2023
d889c8b
Update common Prometheus files (#747)
prombot Jul 7, 2023
efd6062
add watermark metrics (#611)
tomachine Jul 21, 2023
7aab9da
Remove unused-parameter lint rule
sysadmind Aug 10, 2023
f15ac98
Merge pull request #759 from sysadmind/lint
SuperQ Aug 10, 2023
397fcbc
Bump github.com/aws/aws-sdk-go-v2 from 1.18.1 to 1.20.1
dependabot[bot] Aug 10, 2023
5309348
Merge pull request #760 from prometheus-community/dependabot/go_modul…
SuperQ Aug 10, 2023
bc37d36
Bump github.com/aws/aws-sdk-go-v2/config from 1.18.27 to 1.18.33
dependabot[bot] Aug 10, 2023
2c39d17
Merge pull request #761 from prometheus-community/dependabot/go_modul…
SuperQ Aug 10, 2023
7e388a8
Bump github.com/aws/aws-sdk-go-v2 from 1.20.1 to 1.21.0
dependabot[bot] Sep 1, 2023
fc7cdd7
Update common Prometheus files (#775)
prombot Sep 7, 2023
bd91583
Update common Prometheus files (#777)
prombot Sep 20, 2023
bf9c0fd
Update common Prometheus files (#784)
prombot Oct 8, 2023
cf37e02
Update tests for the snapshot collector (#787)
sysadmind Oct 11, 2023
5c142bf
Refactor snapshots collector (#789)
sysadmind Oct 12, 2023
157d0e4
Bump golang.org/x/net from 0.10.0 to 0.17.0 (#788)
dependabot[bot] Oct 12, 2023
9bb0ad5
Bump github.com/prometheus/client_golang from 1.16.0 to 1.17.0 (#782)
dependabot[bot] Oct 12, 2023
a09cf6d
Make translog_size_in_bytes a gauge (#743)
devoxel Oct 15, 2023
c8e5b3b
Update tests for datastream collector (#791)
sysadmind Oct 15, 2023
1cc6f17
Merge pull request #769 from prometheus-community/dependabot/go_modul…
SuperQ Oct 15, 2023
c9e2f4e
Bump github.com/aws/aws-sdk-go-v2/config from 1.18.33 to 1.18.45
dependabot[bot] Oct 15, 2023
c3b7d97
Add extra tests and improve error handling in watermark metrics (#752)
sysadmind Oct 15, 2023
620c886
Merge pull request #795 from prometheus-community/dependabot/go_modul…
SuperQ Oct 16, 2023
b0f63df
Add tests for clusterinfo collector (#792)
sysadmind Oct 16, 2023
0669e2d
Bump github.com/prometheus/common from 0.44.0 to 0.45.0
dependabot[bot] Nov 1, 2023
acddc58
Refactor tests for cluster health
sysadmind Nov 15, 2023
391c7df
Refactor tests for ilm_indices
sysadmind Nov 15, 2023
8e7aebf
Remove extra commented code
sysadmind Nov 15, 2023
989d4d6
Refactor tests for ilm_status
sysadmind Nov 15, 2023
74d8ca4
Refactor tests for indices_mappings
sysadmind Nov 15, 2023
5a51b7f
Update common Prometheus files (#808)
prombot Nov 15, 2023
6b8b33f
Update common Prometheus files
prombot Nov 18, 2023
861e7ba
Bump github.com/aws/aws-sdk-go-v2 from 1.21.2 to 1.23.4 (#824)
dependabot[bot] Dec 1, 2023
4d262b1
Bump github.com/aws/aws-sdk-go-v2/config from 1.18.45 to 1.25.10 (#823)
dependabot[bot] Dec 1, 2023
a6e3814
Upgrade direct dependencies
sysadmind Dec 2, 2023
cc1a83f
Merge pull request #819 from prometheus-community/repo_sync
SuperQ Dec 2, 2023
d54e8ec
Merge pull request #803 from prometheus-community/dependabot/go_modul…
SuperQ Dec 2, 2023
8393bfc
Merge pull request #811 from sysadmind/refactor-tests-cluster-health
SuperQ Dec 2, 2023
8ff7b1a
Merge pull request #812 from sysadmind/refactor-tests-ilm-indices
SuperQ Dec 2, 2023
dc2704a
Merge pull request #813 from sysadmind/refactor-tests-ilm-status
SuperQ Dec 2, 2023
3c7b5c7
Merge pull request #814 from sysadmind/refactor-tests-indices-mappings
SuperQ Dec 2, 2023
af205b4
Merge pull request #826 from sysadmind/upgrade-deps
SuperQ Dec 3, 2023
763c5f8
Update Go (#828)
SuperQ Dec 4, 2023
9df3161
Update common Prometheus files
prombot Dec 7, 2023
e9ad2f2
Add creation_date metrics (#816)
capuche2412 Dec 11, 2023
9fd3634
Add cluster label to shard metric (#639)
arpitjindal97 Dec 12, 2023
b47c56e
Merge pull request #829 from prometheus-community/repo_sync
SuperQ Dec 12, 2023
bf276d4
Bump golang.org/x/crypto from 0.14.0 to 0.17.0 (#837)
dependabot[bot] Dec 21, 2023
d24c834
Add changelog for v1.7.0 (#827)
sysadmind Dec 21, 2023
1a82b98
Update README.md (#830)
xogoodnow Dec 21, 2023
a20eec0
Update common Prometheus files (#835)
prombot Dec 21, 2023
b24d0ac
Update common Prometheus files (#839)
prombot Dec 22, 2023
083bfe2
Bump github.com/prometheus/exporter-toolkit from 0.10.0 to 0.11.0 (#845)
dependabot[bot] Jan 2, 2024
b729189
Bump github.com/prometheus/client_golang from 1.17.0 to 1.18.0 (#843)
dependabot[bot] Jan 3, 2024
fcf5f83
Update common Prometheus files (#848)
prombot Jan 9, 2024
56dc80b
Bump github.com/aws/aws-sdk-go-v2/service/sts from 1.26.2 to 1.26.7
dependabot[bot] Feb 1, 2024
7b0ebe5
Bump github.com/prometheus/common from 0.45.0 to 0.46.0
dependabot[bot] Feb 1, 2024
3588461
Merge pull request #856 from prometheus-community/dependabot/go_modul…
SuperQ Feb 4, 2024
066b7ea
Merge pull request #855 from prometheus-community/dependabot/go_modul…
SuperQ Feb 4, 2024
6010fd1
Bump github.com/aws/aws-sdk-go-v2/config from 1.25.11 to 1.26.6
dependabot[bot] Feb 4, 2024
e730d38
Merge pull request #852 from prometheus-community/dependabot/go_modul…
SuperQ Feb 4, 2024
c276c3e
Update common Prometheus files (#858)
prombot Feb 22, 2024
c2c33b1
Bump google.golang.org/protobuf from 1.32.0 to 1.33.0 (#869)
dependabot[bot] Mar 14, 2024
1810f7c
Bump github.com/aws/aws-sdk-go-v2/config from 1.26.6 to 1.27.4 (#868)
dependabot[bot] Mar 14, 2024
1d5d44b
collector: add tasks API collection (#778)
devoxel Mar 14, 2024
e1ddc12
Bump github.com/aws/aws-sdk-go-v2/service/sts from 1.28.1 to 1.28.4 (…
dependabot[bot] Mar 14, 2024
08d9748
Bump github.com/aws/aws-sdk-go-v2/credentials from 1.17.4 to 1.17.7 (…
dependabot[bot] Mar 14, 2024
0081492
Update common Prometheus files (#861)
prombot Mar 14, 2024
51401e4
Update common Prometheus files (#873)
prombot Mar 19, 2024
08915a5
Update common Prometheus files
prombot Mar 19, 2024
ea78971
Bump golang.org/x/net from 0.20.0 to 0.23.0 (#884)
dependabot[bot] Apr 21, 2024
8ebe0a5
fix; changed readme.md info snapshots collector (#891)
cello86 May 15, 2024
2f33605
fix: changed permissions information for es.slm (#893)
cello86 May 16, 2024
42c3015
Bump github.com/aws/aws-sdk-go-v2 from 1.25.3 to 1.30.1 (#908)
dependabot[bot] Jul 6, 2024
fed8a6b
Bump github.com/aws/aws-sdk-go-v2/config from 1.27.4 to 1.27.24 (#910)
dependabot[bot] Jul 6, 2024
0d92bd3
Bump github.com/prometheus/client_golang from 1.18.0 to 1.19.1 (#898)
dependabot[bot] Jul 11, 2024
bf89cef
Update README.md (#911)
fritchie Jul 11, 2024
d13c555
Add metrics to auto scale based on indexing pressure (#904)
tac-emil-andresen Jul 11, 2024
711a6ce
CVE-2024-24790: bump go to 1.22.6 (#917)
sdx-jkataja Sep 7, 2024
d98d2f6
Refactor tests for slm collector (#928)
sysadmind Sep 13, 2024
fd25030
Changes for v1.8.0 (#931)
sysadmind Sep 20, 2024
5c8fca8
Refactor slm collector (#932)
sysadmind Sep 20, 2024
8103328
Add tests for shards collector
sysadmind Sep 28, 2024
a4f94e5
added external refresh stats (#933)
TomaBere Sep 28, 2024
0fc8185
Refactor tests for nodes collector
sysadmind Sep 28, 2024
da4a406
Remove the useless metrics
sysadmind Sep 28, 2024
22d4a8a
Remove unused var
sysadmind Sep 28, 2024
08a1cee
Refactor tests for indices collector
sysadmind Sep 28, 2024
b826b14
Merge pull request #874 from prometheus-community/repo_sync
SuperQ Oct 16, 2024
3b3879a
Update common Prometheus files
prombot Oct 16, 2024
7783607
Merge pull request #943 from prometheus-community/repo_sync
SuperQ Oct 16, 2024
79b0e15
Merge pull request #935 from sysadmind/shards-test
SuperQ Oct 16, 2024
33f42c6
Merge pull request #936 from sysadmind/nodes-test-refactor
SuperQ Oct 16, 2024
ccd458b
Merge pull request #937 from sysadmind/indices-test-refactor
SuperQ Oct 16, 2024
7a09a84
chore!: adopt log/slog, drop go-kit/log (#942)
tjhop Oct 17, 2024
7aa2664
Bump github.com/prometheus/client_golang from 1.20.4 to 1.20.5
dependabot[bot] Oct 17, 2024
ca263b9
Update changelog and readme for logging changes (#945)
sysadmind Oct 17, 2024
8b44de5
Merge pull request #944 from prometheus-community/dependabot/go_modul…
SuperQ Oct 17, 2024
3a591ed
Bump github.com/aws/aws-sdk-go-v2/config from 1.27.24 to 1.28.0
dependabot[bot] Oct 17, 2024
66b82c8
Merge pull request #946 from prometheus-community/dependabot/go_modul…
SuperQ Oct 17, 2024
7f3eeaf
Update common Prometheus files (#955)
prombot Nov 10, 2024
7ec6712
Bump github.com/prometheus/common from 0.60.0 to 0.60.1 (#954)
dependabot[bot] Nov 10, 2024
c56248a
Bump github.com/aws/aws-sdk-go-v2/service/sts from 1.32.2 to 1.32.3 (…
dependabot[bot] Nov 10, 2024
c6f86ac
Bump github.com/aws/aws-sdk-go-v2/config from 1.28.0 to 1.28.3 (#956)
dependabot[bot] Nov 10, 2024
51b1b9a
Bump github.com/prometheus/exporter-toolkit from 0.13.0 to 0.13.1 (#966)
dependabot[bot] Dec 14, 2024
811cee2
Bump github.com/aws/aws-sdk-go-v2/credentials from 1.17.44 to 1.17.46…
dependabot[bot] Dec 14, 2024
0a6cf82
Bump golang.org/x/crypto from 0.28.0 to 0.31.0 (#969)
dependabot[bot] Dec 14, 2024
b846254
Bump github.com/aws/aws-sdk-go-v2/config from 1.28.3 to 1.28.6 (#972)
dependabot[bot] Dec 14, 2024
34c4936
Update common Prometheus files (#960)
prombot Dec 14, 2024
bb63208
Add github actions workflow for testing PRs (#959)
sysadmind Dec 14, 2024
3774123
Refactor mixin dashboards (#885)
sysadmind Dec 14, 2024
7408f21
Fix yamllint errors for new Github Actions CI
sysadmind Dec 14, 2024
41797ef
Merge pull request #973 from sysadmind/yamllint
SuperQ Jan 1, 2025
dbcf459
Update common Prometheus files (#980)
prombot Jan 1, 2025
0355d87
Bump github.com/aws/aws-sdk-go-v2/service/sts from 1.33.2 to 1.33.3 (…
dependabot[bot] Jan 1, 2025
c89f813
Bump github.com/aws/aws-sdk-go-v2/credentials from 1.17.47 to 1.17.48…
dependabot[bot] Jan 1, 2025
b550e54
Bump github.com/aws/aws-sdk-go-v2/config from 1.28.6 to 1.28.7 (#978)
dependabot[bot] Jan 1, 2025
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
52 changes: 52 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
---
version: 2.1
orbs:
prometheus: prometheus/[email protected]
executors:
# This must match .promu.yml.
golang:
docker:
- image: cimg/go:1.23
jobs:
test:
executor: golang
steps:
- prometheus/setup_environment
- run: make
- prometheus/store_artifact:
file: elasticsearch_exporter
workflows:
version: 2
elasticsearch_exporter:
jobs:
- test:
filters:
tags:
only: /.*/
- prometheus/build:
name: build
filters:
tags:
only: /.*/
- prometheus/publish_master:
context: org-context
docker_hub_organization: prometheuscommunity
quay_io_organization: prometheuscommunity
requires:
- test
- build
filters:
branches:
only: master
- prometheus/publish_release:
context: org-context
docker_hub_organization: prometheuscommunity
quay_io_organization: prometheuscommunity
requires:
- test
- build
filters:
tags:
only: /^v.*/
branches:
ignore: /.*/
6 changes: 6 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
version: 2
updates:
- package-ecosystem: "gomod"
directory: "/"
schedule:
interval: "monthly"
102 changes: 102 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,102 @@
---
name: CI
on:
pull_request:
push:

jobs:
test_go:
name: Go tests
runs-on: ubuntu-latest
container:
# Whenever the Go version is updated here, .promu.yml
# should also be updated.
image: quay.io/prometheus/golang-builder:1.23-base
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: prometheus/promci@52c7012f5f0070d7281b8db4a119e21341d43c91 # v0.4.5
- uses: ./.github/promci/actions/setup_environment
- run: make GO_ONLY=1 SKIP_GOLANGCI_LINT=1

build:
name: Build Prometheus for common architectures
runs-on: ubuntu-latest
if: |
!(github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v'))
&&
!(github.event_name == 'pull_request' && startsWith(github.event.pull_request.base.ref, 'release-'))
&&
!(github.event_name == 'push' && github.event.ref == 'refs/heads/main')
&&
!(github.event_name == 'push' && github.event.ref == 'refs/heads/master')
strategy:
matrix:
thread: [ 0, 1, 2 ]
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: prometheus/promci@52c7012f5f0070d7281b8db4a119e21341d43c91 # v0.4.5
- uses: ./.github/promci/actions/build
with:
promu_opts: "-p linux/amd64 -p windows/amd64 -p linux/arm64 -p darwin/amd64 -p darwin/arm64 -p linux/386"
parallelism: 3
thread: ${{ matrix.thread }}

build_all:
name: Build Prometheus for all architectures
runs-on: ubuntu-latest
if: |
(github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v'))
||
(github.event_name == 'pull_request' && startsWith(github.event.pull_request.base.ref, 'release-'))
||
(github.event_name == 'push' && github.event.ref == 'refs/heads/main')
||
(github.event_name == 'push' && github.event.ref == 'refs/heads/master')
strategy:
matrix:
thread: [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 ]

# Whenever the Go version is updated here, .promu.yml
# should also be updated.
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: prometheus/promci@52c7012f5f0070d7281b8db4a119e21341d43c91 # v0.4.5
- uses: ./.github/promci/actions/build
with:
parallelism: 12
thread: ${{ matrix.thread }}

publish_main:
name: Publish main branch artifacts
runs-on: ubuntu-latest
needs: [test_go, build_all]
if: |
(github.event_name == 'push' && github.event.ref == 'refs/heads/main')
||
(github.event_name == 'push' && github.event.ref == 'refs/heads/master')
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: prometheus/promci@52c7012f5f0070d7281b8db4a119e21341d43c91 # v0.4.5
- uses: ./.github/promci/actions/publish_main
with:
docker_hub_login: ${{ secrets.docker_hub_login }}
docker_hub_password: ${{ secrets.docker_hub_password }}
quay_io_login: ${{ secrets.quay_io_login }}
quay_io_password: ${{ secrets.quay_io_password }}

publish_release:
name: Publish release artefacts
runs-on: ubuntu-latest
needs: [test_go, build_all]
if: |
(github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v'))
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: prometheus/promci@52c7012f5f0070d7281b8db4a119e21341d43c91 # v0.4.5
- uses: ./.github/promci/actions/publish_release
with:
docker_hub_login: ${{ secrets.docker_hub_login }}
docker_hub_password: ${{ secrets.docker_hub_password }}
quay_io_login: ${{ secrets.quay_io_login }}
quay_io_password: ${{ secrets.quay_io_password }}
github_token: ${{ secrets.PROMBOT_GITHUB_TOKEN }}
57 changes: 57 additions & 0 deletions .github/workflows/container_description.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
---
name: Push README to Docker Hub
on:
push:
paths:
- "README.md"
- "README-containers.md"
- ".github/workflows/container_description.yml"
branches: [ main, master ]

permissions:
contents: read

jobs:
PushDockerHubReadme:
runs-on: ubuntu-latest
name: Push README to Docker Hub
if: github.repository_owner == 'prometheus' || github.repository_owner == 'prometheus-community' # Don't run this workflow on forks.
steps:
- name: git checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Set docker hub repo name
run: echo "DOCKER_REPO_NAME=$(make docker-repo-name)" >> $GITHUB_ENV
- name: Push README to Dockerhub
uses: christian-korneck/update-container-description-action@d36005551adeaba9698d8d67a296bd16fa91f8e8 # v1
env:
DOCKER_USER: ${{ secrets.DOCKER_HUB_LOGIN }}
DOCKER_PASS: ${{ secrets.DOCKER_HUB_PASSWORD }}
with:
destination_container_repo: ${{ env.DOCKER_REPO_NAME }}
provider: dockerhub
short_description: ${{ env.DOCKER_REPO_NAME }}
# Empty string results in README-containers.md being pushed if it
# exists. Otherwise, README.md is pushed.
readme_file: ''

PushQuayIoReadme:
runs-on: ubuntu-latest
name: Push README to quay.io
if: github.repository_owner == 'prometheus' || github.repository_owner == 'prometheus-community' # Don't run this workflow on forks.
steps:
- name: git checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Set quay.io org name
run: echo "DOCKER_REPO=$(echo quay.io/${GITHUB_REPOSITORY_OWNER} | tr -d '-')" >> $GITHUB_ENV
- name: Set quay.io repo name
run: echo "DOCKER_REPO_NAME=$(make docker-repo-name)" >> $GITHUB_ENV
- name: Push README to quay.io
uses: christian-korneck/update-container-description-action@d36005551adeaba9698d8d67a296bd16fa91f8e8 # v1
env:
DOCKER_APIKEY: ${{ secrets.QUAY_IO_API_TOKEN }}
with:
destination_container_repo: ${{ env.DOCKER_REPO_NAME }}
provider: quay
# Empty string results in README-containers.md being pushed if it
# exists. Otherwise, README.md is pushed.
readme_file: ''
39 changes: 39 additions & 0 deletions .github/workflows/golangci-lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
---
# This action is synced from https://github.com/prometheus/prometheus
name: golangci-lint
on:
push:
paths:
- "go.sum"
- "go.mod"
- "**.go"
- "scripts/errcheck_excludes.txt"
- ".github/workflows/golangci-lint.yml"
- ".golangci.yml"
pull_request:

permissions: # added using https://github.com/step-security/secure-repo
contents: read

jobs:
golangci:
permissions:
contents: read # for actions/checkout to fetch code
pull-requests: read # for golangci/golangci-lint-action to fetch pull requests
name: lint
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Install Go
uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a # v5.2.0
with:
go-version: 1.23.x
- name: Install snmp_exporter/generator dependencies
run: sudo apt-get update && sudo apt-get -y install libsnmp-dev
if: github.repository == 'prometheus/snmp_exporter'
- name: Lint
uses: golangci/golangci-lint-action@971e284b6050e8a5849b72094c50ab08da042db8 # v6.1.1
with:
args: --verbose
version: v1.62.0
34 changes: 34 additions & 0 deletions .github/workflows/mixin.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
---
name: mixin
on:
pull_request:
paths:
- "elasticsearch-mixin/**"

jobs:
check-mixin:
name: check
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: 1.22.5
- name: Install dependencies
run: |
go install github.com/google/go-jsonnet/cmd/[email protected]
go install github.com/google/go-jsonnet/cmd/[email protected]
go install github.com/google/go-jsonnet/cmd/[email protected]
go install github.com/monitoring-mixins/mixtool/cmd/mixtool@16dc166166d91e93475b86b9355a4faed2400c18
go install github.com/jsonnet-bundler/jsonnet-bundler/cmd/[email protected]
- name: Lint
run: bash ./scripts/lint-jsonnet.sh
- name: Compile mixin
run: bash ./scripts/compile-mixin.sh
- name: Verify compiled mixin matches repo
run: |
git diff --exit-code -- ./elasticsearch-mixin || (echo "Compiled mixin does not match repo" && exit 1)
# Check if there are any new untracked files
test -z "$(git status --porcelain)" || (echo "Untracked files found, please run ./scripts/compile-mixin.sh" && exit 1)
5 changes: 3 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@
elasticsearch_exporter
*.tar.gz
*-stamp
.idea
*~
.tarballs
/vendor
vendor/
21 changes: 21 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---
linters:
enable:
- revive
- sloglint

issues:
exclude-rules:
- path: _test.go
linters:
- errcheck

linters-settings:
errcheck:
exclude-functions: scripts/errcheck_excludes.txt
revive:
rules:
# https://github.com/mgechev/revive/blob/master/RULES_DESCRIPTIONS.md#unused-parameter
- name: unused-parameter
severity: warning
disabled: true
8 changes: 0 additions & 8 deletions .gometalinter.json

This file was deleted.

42 changes: 10 additions & 32 deletions .promu.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
go:
cgo: false
# This must match .circle/config.yml.
version: 1.23
repository:
path: github.com/justwatchcom/elasticsearch_exporter
path: github.com/prometheus-community/elasticsearch_exporter
build:
flags: -a -tags netgo
binaries:
- name: elasticsearch_exporter
ldflags: |
-s
-X {{repoPath}}/vendor/github.com/prometheus/common/version.Version={{.Version}}
-X {{repoPath}}/vendor/github.com/prometheus/common/version.Revision={{.Revision}}
-X {{repoPath}}/vendor/github.com/prometheus/common/version.Branch={{.Branch}}
-X {{repoPath}}/vendor/github.com/prometheus/common/version.BuildUser={{user}}@{{host}}
-X {{repoPath}}/vendor/github.com/prometheus/common/version.BuildDate={{date "20060102-15:04:05"}}
-X github.com/prometheus/common/version.Version={{.Version}}
-X github.com/prometheus/common/version.Revision={{.Revision}}
-X github.com/prometheus/common/version.Branch={{.Branch}}
-X github.com/prometheus/common/version.BuildUser={{user}}@{{host}}
-X github.com/prometheus/common/version.BuildDate={{date "20060102-15:04:05"}}
tarball:
files:
- LICENSE
Expand All @@ -19,27 +21,3 @@ tarball:
- examples/grafana/dashboard.json
- examples/kubernetes/deployment.yml
- examples/prometheus/elasticsearch.rules
crossbuild:
platforms:
- linux/amd64
- linux/386
- darwin/amd64
- darwin/386
- windows/amd64
- windows/386
- freebsd/amd64
- freebsd/386
- openbsd/amd64
- openbsd/386
- netbsd/amd64
- netbsd/386
- dragonfly/amd64
- linux/arm
- linux/arm64
- freebsd/arm
- openbsd/arm
- netbsd/arm
- linux/ppc64
- linux/ppc64le
- linux/mips64
- linux/mips64le
Loading