Commit Graph

129 Commits

Author SHA1 Message Date
dependabot[bot]
f0027c4bce
Bump k8s.io/client-go from 0.25.3 to 0.25.4 (#194)
Bumps [k8s.io/client-go](https://github.com/kubernetes/client-go) from 0.25.3 to 0.25.4.
- [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.25.3...v0.25.4)

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

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-12-01 09:46:35 +01:00
Vickie
35abd4a5ea
Update README.md with configs/commands to be able to run the example on macOS (#180)
* 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>
2022-11-27 12:09:03 +09:00
dependabot[bot]
1c1ae57eb1
Bump k8s.io/client-go from 0.25.2 to 0.25.3 (#188)
Bumps [k8s.io/client-go](https://github.com/kubernetes/client-go) from 0.25.2 to 0.25.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.25.2...v0.25.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>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-11-20 13:30:25 +09:00
Priyanshu Raj
9cf5811b4d
replace double quotes w/ single quotes (#185)
Signed-off-by: Priyanshu Raj <priyanshu.raj@segment.com>

Signed-off-by: Priyanshu Raj <priyanshu.raj@segment.com>
Co-authored-by: Priyanshu Raj <priyanshu.raj@segment.com>
2022-10-14 10:54:46 +09:00
Ben Kochie
d1456b8917
Revert "Support Value Conversions (#172)" (#183)
This reverts commit ca1304003c.
2022-10-06 08:45:27 +02:00
PrometheusBot
a8746ef7e6
Update common Prometheus files (#182)
Signed-off-by: prombot <prometheus-team@googlegroups.com>

Signed-off-by: prombot <prometheus-team@googlegroups.com>
2022-10-05 18:32:26 +02:00
ngrebels
ca1304003c
Support Value Conversions (#172)
* 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>
2022-10-05 18:32:05 +02:00
dependabot[bot]
ee76c0ab9d
Bump k8s.io/client-go from 0.24.3 to 0.25.2 (#181)
* Bump k8s.io/client-go from 0.24.3 to 0.25.2

Bumps [k8s.io/client-go](https://github.com/kubernetes/client-go) from 0.24.3 to 0.25.2.
- [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.3...v0.25.2)

---
updated-dependencies:
- dependency-name: k8s.io/client-go
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* Bump additional Go modules

Fix up Go mod tidy warnings.

Signed-off-by: SuperQ <superq@gmail.com>

Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: SuperQ <superq@gmail.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: SuperQ <superq@gmail.com>
2022-10-01 11:37:23 +02:00
dependabot[bot]
6f599e5f69
Bump github.com/prometheus/client_golang from 1.12.2 to 1.13.0 (#176)
Bumps [github.com/prometheus/client_golang](https://github.com/prometheus/client_golang) from 1.12.2 to 1.13.0.
- [Release notes](https://github.com/prometheus/client_golang/releases)
- [Changelog](https://github.com/prometheus/client_golang/blob/main/CHANGELOG.md)
- [Commits](https://github.com/prometheus/client_golang/compare/v1.12.2...v1.13.0)

---
updated-dependencies:
- dependency-name: github.com/prometheus/client_golang
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-10-01 11:21:40 +02:00
janphkre
9ecc44b064
Grab Timestamps from Metric (#167)
* 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>
2022-08-28 13:48:35 +02:00
dependabot[bot]
1a0df17ab9
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>
2022-08-01 07:34:40 +02:00
dependabot[bot]
80fcd95d06
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>
2022-08-01 07:34:29 +02:00
Ben Kochie
2c1ca8868e
Release v0.5.0 (#166)
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>
2022-07-11 09:54:10 +02:00
Alex R
f8ddc2fa84
Add ignore_status (#161)
* 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>
2022-07-11 09:08:07 +09:00
Ben Kochie
a03b913a00
Fix valuetype tests (#165)
Add missing valuetype configuration to tests.

Signed-off-by: SuperQ <superq@gmail.com>
2022-07-03 10:52:45 +02:00
PrometheusBot
73f01066f3
Update common Prometheus files (#157)
Signed-off-by: prombot <prometheus-team@googlegroups.com>
2022-07-03 10:48:26 +02:00
Kyle Allan
83189c5e54
use the metric's ValueType (#162)
Signed-off-by: Kyle Allan <kallan357@gmail.com>

Co-authored-by: Kyle Allan <kallan@singularity6.com>
2022-07-01 09:20:07 +02:00
dependabot[bot]
0d37fabd21
Bump k8s.io/client-go from 0.24.0 to 0.24.2 (#164)
Bumps [k8s.io/client-go](https://github.com/kubernetes/client-go) from 0.24.0 to 0.24.2.
- [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.0...v0.24.2)

---
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>
2022-07-01 09:05:56 +02:00
dependabot[bot]
b7b5f9c75c
Bump github.com/prometheus/common from 0.34.0 to 0.35.0 (#163)
Bumps [github.com/prometheus/common](https://github.com/prometheus/common) from 0.34.0 to 0.35.0.
- [Release notes](https://github.com/prometheus/common/releases)
- [Commits](https://github.com/prometheus/common/compare/v0.34.0...v0.35.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>
2022-07-01 09:02:01 +02:00
PrometheusBot
ea9aa13c05
Update common Prometheus files (#156)
Signed-off-by: prombot <prometheus-team@googlegroups.com>
2022-06-14 00:32:32 +02:00
Ben Ye
75ae2b065e
Support modules configuration (#146)
* 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>
2022-05-27 14:47:32 +09:00
Ben Ye
d43d3ed28e
support custom valuetype like counter, gauge or untyped (#145)
* support custom valuetype like counter, gauge or untyped

Signed-off-by: Ben Ye <ben.ye@bytedance.com>
2022-05-23 18:35:44 +02:00
Ben Kochie
5251391806
Merge pull request #152 from prometheus-community/superq/refactor_types
Use explicit metric type switching
2022-05-23 15:59:52 +02:00
Ben Kochie
bcb42326be
Update build (#154)
* 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>
2022-05-23 22:05:45 +09:00
Ben Kochie
b2c854a0b9
Merge pull request #153 from prometheus-community/repo_sync
Synchronize common files from prometheus/prometheus
2022-05-22 22:20:49 +02:00
prombot
a2d3b6b378 Update common Prometheus files
Signed-off-by: prombot <prometheus-team@googlegroups.com>
2022-05-22 19:50:52 +00:00
SuperQ
6de63fe83b
Use explicit metric type switching
Avoid side effect behavior by explicitly passing the ScrypeType to the
collector.

Signed-off-by: SuperQ <superq@gmail.com>
2022-05-22 15:32:36 +02:00
Ben Kochie
25574a4de9
Merge pull request #150 from prometheus-community/repo_sync
Synchronize common files from prometheus/prometheus
2022-05-22 14:56:14 +02:00
prombot
af425edb75 Update common Prometheus files
Signed-off-by: prombot <prometheus-team@googlegroups.com>
2022-04-28 19:51:02 +00:00
Ben Kochie
5345896f70
Merge pull request #143 from prometheus-community/repo_sync
Synchronize common files from prometheus/prometheus
2022-04-28 09:27:46 +02:00
prombot
7bbd9ffc60 Update common Prometheus files
Signed-off-by: prombot <prometheus-team@googlegroups.com>
2022-03-07 19:51:19 +00:00
Ben Kochie
1614ee8d77
Merge pull request #142 from prometheus-community/repo_sync
Synchronize common files from prometheus/prometheus
2022-03-05 13:49:40 +01:00
prombot
e82d884309 Update common Prometheus files
Signed-off-by: prombot <prometheus-team@googlegroups.com>
2022-03-04 19:51:27 +00:00
Ben Kochie
621139e1b2
Release 0.4.0 (#136)
* [FEATURE] Add support for HTTP POST body content #123

Signed-off-by: SuperQ <superq@gmail.com>
2022-01-18 14:46:03 +09:00
Ben Kochie
b585a8d067
Merge pull request #137 from prometheus-community/repo_sync
Synchronize common files from prometheus/prometheus
2022-01-16 05:53:58 +01:00
prombot
d7b869d85f Update common Prometheus files
Signed-off-by: prombot <prometheus-team@googlegroups.com>
2022-01-16 00:02:29 +00:00
Ben Kochie
9d55332cc2
Merge pull request #128 from prometheus-community/repo_sync
Synchronize common files from prometheus/prometheus
2022-01-15 11:34:06 +01:00
prombot
4a589582d9 Update common Prometheus files
Signed-off-by: prombot <prometheus-team@googlegroups.com>
2021-10-25 00:02:10 +00:00
Ben Kochie
c487740bb8
Merge pull request #125 from prometheus-community/superq/bump
Update build
2021-10-06 10:22:25 +02:00
SuperQ
eaf94d3a5e
Update build
* Update to Go 1.17.
* Update modules.
* Enable golint CI test.
* Fixup golint issues.

Signed-off-by: SuperQ <superq@gmail.com>
2021-10-05 13:21:42 +02:00
Ben Kochie
8a311b85d9
Merge pull request #124 from prometheus-community/superq/refactor
Refactor FetchJson
2021-10-05 13:13:16 +02:00
SuperQ
5783a9ca02
Refactor FetchJson
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>
2021-10-03 13:30:18 +02:00
Ravi
bd0852bc25
Add support for HTTP POST body content (#123)
* Add support for HTTP POST body content

* Add tests for POST body content

* Code structure refactor for review
2021-10-03 09:30:53 +00:00
Ravi
fe891b5b2b
Merge pull request #120 from prometheus-community/repo_sync
Synchronize common files from prometheus/prometheus
2021-10-02 01:03:31 +00:00
prombot
c43fd67f2e Update common Prometheus files
Signed-off-by: prombot <prometheus-team@googlegroups.com>
2021-09-12 00:03:29 +00:00
Ben Kochie
9096e1d4a7
Merge pull request #116 from prometheus-community/superq/update_mods
Update Go modules
2021-08-05 11:49:32 +02:00
Ben Kochie
841baa04b1
Merge pull request #109 from prometheus-community/repo_sync
Synchronize common files from prometheus/prometheus
2021-08-05 11:02:02 +02:00
SuperQ
6a8afe49e2
Update Go modules
* Update to latest modules.
* Use new syntax for http client[0].

[0]: https://github.com/prometheus/common/pull/291

Signed-off-by: SuperQ <superq@gmail.com>
2021-08-05 11:00:42 +02:00
prombot
b5b87b3c0a Update common Prometheus files
Signed-off-by: prombot <prometheus-team@googlegroups.com>
2021-06-27 00:01:52 +00:00
Ravi
28dde07d51
Merge pull request #94 from prometheus-community/repo_sync
Synchronize common files from prometheus/prometheus
2021-04-15 07:08:22 +00:00