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>
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>
* 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>
* 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>
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>
* 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