* Update README.md
Updating a few configs/commands to be able to run the example on macOS
Signed-off-by: Vickie <vicky.liu.61@gmail.com>
* Minimize documentation changes
Signed-off-by: rustyclock <rustyclock@protonmail.com>
Signed-off-by: Vickie <vicky.liu.61@gmail.com>
Signed-off-by: rustyclock <rustyclock@protonmail.com>
Co-authored-by: rustyclock <rustyclock@protonmail.com>
* Bump k8s.io/client-go from 0.24.2 to 0.24.3 (#171)
Bumps [k8s.io/client-go](https://github.com/kubernetes/client-go) from 0.24.2 to 0.24.3.
- [Release notes](https://github.com/kubernetes/client-go/releases)
- [Changelog](https://github.com/kubernetes/client-go/blob/master/CHANGELOG.md)
- [Commits](https://github.com/kubernetes/client-go/compare/v0.24.2...v0.24.3)
---
updated-dependencies:
- dependency-name: k8s.io/client-go
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Signed-off-by: ngrebels <ngrebels@mathworks.com>
Signed-off-by: Yao Hong Kok <yaokok@mathworks.com>
* Bump github.com/prometheus/common from 0.35.0 to 0.37.0 (#170)
Bumps [github.com/prometheus/common](https://github.com/prometheus/common) from 0.35.0 to 0.37.0.
- [Release notes](https://github.com/prometheus/common/releases)
- [Commits](https://github.com/prometheus/common/compare/v0.35.0...v0.37.0)
---
updated-dependencies:
- dependency-name: github.com/prometheus/common
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Signed-off-by: ngrebels <ngrebels@mathworks.com>
Signed-off-by: Yao Hong Kok <yaokok@mathworks.com>
* Added a value converter for dynamic values and associated tests
Signed-off-by: ngrebels <ngrebels@mathworks.com>
Signed-off-by: Yao Hong Kok <yaokok@mathworks.com>
* Refactored into functions and created a type
Signed-off-by: ngrebels <ngrebels@mathworks.com>
Signed-off-by: Yao Hong Kok <yaokok@mathworks.com>
* value converter: added example
Signed-off-by: ngrebels <ngrebels@mathworks.com>
Signed-off-by: Yao Hong Kok <yaokok@mathworks.com>
* Remove underscore from variable name
Signed-off-by: Yao Hong Kok <yaokok@mathworks.com>
* Fix formatting error from merging
Signed-off-by: Yao Hong Kok <yaokok@mathworks.com>
Signed-off-by: ngrebels <ngrebels@mathworks.com>
Signed-off-by: Yao Hong Kok <yaokok@mathworks.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Yao Hong Kok <yaokok@mathworks.com>
* Pick timestamp from metric
based on #97 and #80 this provides the posibility to use a metric that has a unix style timestamp as the timestamp of the scraped metric
When deserializing objects we need to take the key json path into account as well like we would do for all the values as well. This allows collections to be defined still with each entry having a separate timestamp (e.g. list of time-stamped log messages).
Update examples for timestamp
Update Readme about staleness for custom timestamps
Signed-off-by: Jan Phillip Kretzschmar <janphkre@gmx.de>
Signed-off-by: Ben Kochie <superq@gmail.com>
Co-authored-by: Ben Kochie <superq@gmail.com>
Breaking Change:
The exporter config file format has changed. It now supports multiple modules
to scrape different endpoints.
* [FEATURE] Support custom valuetype #145
* [FEATURE] Support modules configuration #146
* [FEATURE] Accept non-2xx HTTP status #161
Signed-off-by: SuperQ <superq@gmail.com>
* Add ignore_status
Signed-off-by: Alexander Ryabov <alexander.ryabov@jetbrains.com>
* Use valid_status_codes slice
Signed-off-by: Alexander Ryabov <alexander.ryabov@jetbrains.com>
Co-authored-by: Alexander Ryabov <alexander.ryabov@jetbrains.com>
* support modules configuration
Signed-off-by: Ben Ye <ben.ye@bytedance.com>
* fallback default module if the param is missing
Signed-off-by: Ben Ye <ben.ye@bytedance.com>
* update readme and example config file
Signed-off-by: Ben Ye <ben.ye@bytedance.com>
* fix lint
Signed-off-by: Ben Ye <ben.ye@bytedance.com>
* Update Go to 1.18.
* Update Go module format for 1.17.
* Remove obsolete exclude for k8s.io/client-go.
* Add dependabot.
Signed-off-by: SuperQ <superq@gmail.com>
Refactor FetchJson to use a constructor.
* Cleanup nolint to use a a .golangci.yml config.
* Switch go-kit/kit/log to go-kit/log.
Signed-off-by: SuperQ <superq@gmail.com>