Commit Graph

14 Commits

Author SHA1 Message Date
Ben Kochie
91008f4902
Update Go (#1088)
* Update minimum Go version to 1.24.0.
* Update build to Go 1.25.
* Cleanup disabled CircleCI pipeline.

Signed-off-by: SuperQ <superq@gmail.com>
2025-10-24 07:09:27 -04:00
Joe Adams
6f79acc690
Remove circleci config
We have moved to GitHub Actions, so disable CircleCI jobs. Will revisit removing this file in the future.

Signed-off-by: Joe Adams <github@joeadams.io>
2025-03-02 20:45:45 -05:00
TJ Hoplock
7a09a847ab
chore!: adopt log/slog, drop go-kit/log (#942)
The bulk of this change set was automated by the following script which
is being used to aid in converting the various exporters/projects to use
slog:

https://gist.github.com/tjhop/49f96fb7ebbe55b12deee0b0312d8434

In addition to the parts that were straightforward conversions, this
also:
- refactors much of the logging config to adopt slog
    - removed custom `logger.go` setup for go-kit
    - adopt promslog/flag and use that to handle parsing log
      level/format flags
    - for consistent behavior, keep log output flag to allow toggle
      stdout/stderr for output
    - adopt promslog for logger setup
- enables sloglint in golangci-lint config
- drops go-kit/log exclusions from lint config
- tidies mods to drop go-kit/log and go-logfmt/logfmt deps

Signed-off-by: TJ Hoplock <t.hoplock@gmail.com>

* ci: update deprecated golangci-lint config

Fixes:

```
WARN [config_reader] The configuration option `linters.errcheck.exclude` is deprecated, please use `linters.errcheck.exclude-functions`.
```

Signed-off-by: TJ Hoplock <t.hoplock@gmail.com>

---------

Signed-off-by: TJ Hoplock <t.hoplock@gmail.com>
2024-10-17 12:03:17 -04:00
Janne Kataja
711a6ce467
CVE-2024-24790: bump go to 1.22.6 (#917)
* bump CircleCI builder image

Signed-off-by: Janne Kataja <janne.kataja@sdx.com>

* bump go to 1.22

Signed-off-by: Janne Kataja <janne.kataja@sdx.com>

---------

Signed-off-by: Janne Kataja <janne.kataja@sdx.com>
2024-09-07 11:52:15 -04:00
Ben Kochie
763c5f8fe2
Update Go (#828)
* Update Go to 1.21.
* Update minimum Go to 1.20.
* Remove obsolete Go flag overrides.

Signed-off-by: SuperQ <superq@gmail.com>
2023-12-03 19:18:57 -05:00
SuperQ
0008ee9768
Update build and cleanup
* Update Go to 1.20.
* Update Makefile.common
* Update golangci-lint.
* Update exporter-toolkit.
* Cleanup useless `_` assignment for go-kit/log.
* Cleanup deprecated and unused code.

Signed-off-by: SuperQ <superq@gmail.com>
2023-03-23 09:51:33 +01:00
Simon Zengerling
be107e0e7b
Update to Go 1.19 (#614)
Signed-off-by: Simon Zengerling <simon.zengerling@camunda.com>

Signed-off-by: Simon Zengerling <simon.zengerling@camunda.com>
2022-08-24 22:18:45 -04:00
Ben Kochie
070730a1f4
Update build (#562)
* Update Go to 1.18.
* Update Go module format for 1.17.
* Add yamllint
* Update Go modules.
* Add dependabot.

Signed-off-by: SuperQ <superq@gmail.com>
2022-05-06 15:05:54 +02:00
Ben Kochie
c2365f8e6d
Enable revive linter (#519)
* Bump Go to 1.17
* Bump prometheus orb to 0.15.0
* Enable `revive` linter.
* Fixup linter nits.

Signed-off-by: SuperQ <superq@gmail.com>
2022-01-19 09:39:54 -05:00
SuperQ
5c12fd5194
Update for prometheus-community
Update the codebase for the new prometheus-comunity location.
* Replace Travis with CircleCI.
* Update to standard Prometheus Makefile.common
* Update all Go references.
* Drop vendor/ dir
* Update vendoring to use Go modules.

Signed-off-by: SuperQ <superq@gmail.com>
2021-05-30 11:20:13 +02:00
Dominik Schulz
62168d19d2 Tag 1.0.0 2017-07-03 13:07:28 +02:00
Dominik Schulz
63177b8675 Tag 1.0.0-rc1 2017-06-28 21:44:48 +02:00
Matthias Loibl
d37917b765 Split the exporter into multiple collectors (#65)
* Delete all old .go files
* Add not to use gco in .promu.yml
* Add main.go, tls.go and create collector package with cluster_health.go
* Vendor go-kit dependencies
* Create first draft of nodes collector
* Move clusterHealthResponse into own file called cluster_health_response.go
* Move NodeStatsResponse into own file which is the old structs.go
* Add all metrics for indices per node
* Introduce nodeMetric{} that has 2 funcs to get values
Wrap promtheus.Desc to have it all in one place

* Add jvm_memory metrics to nodes collector
* Add gcCollectionMetrics, breakerMetrics, threadPoolMetrics & filesystemMetrics
* Add more missing counters to nodeMetrics
* Add missing process and transport node metrics
* Add indices_indexing & indices_merges subsystem metrics
* Add indices_refresh subsystem metrics
* Add missing elasticsearch_indices_store_throttle_time_seconds_total metric
* Update collector/cluster_health.go to use the same pattern as collector/nodes.go
* Iterate over all colors to create metric with each color as label for status
2017-06-28 17:01:24 +02:00
Dominik Schulz
fb6029afa9 Add Dockerfile
This commit syncs the Makefile and Dockerfile with the ones currently
used in offical Prometheus exporters.
2017-01-12 12:57:25 +01:00