Commit Graph

156 Commits

Author SHA1 Message Date
dependabot[bot]
b911341d46
Bump github.com/prometheus/common from 0.42.0 to 0.44.0
Bumps [github.com/prometheus/common](https://github.com/prometheus/common) from 0.42.0 to 0.44.0.
- [Release notes](https://github.com/prometheus/common/releases)
- [Commits](https://github.com/prometheus/common/compare/v0.42.0...v0.44.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>
2023-06-01 05:58:19 +00:00
dependabot[bot]
c63201af48
Bump github.com/prometheus/client_golang from 1.14.0 to 1.15.1 (#231) 2023-05-14 02:44:16 +00:00
dependabot[bot]
f1dfba0a55
Bump k8s.io/client-go from 0.26.3 to 0.27.1 (#227) 2023-05-14 02:37:18 +00:00
PrometheusBot
e3bd945b16
Update common Prometheus files (#226)
Signed-off-by: prombot <prometheus-team@googlegroups.com>
2023-05-14 11:30:48 +09:00
Ben Kochie
afb25fd5eb
Merge pull request #221 from prometheus-community/repo_sync
Synchronize common files from prometheus/prometheus
2023-04-05 11:12:21 +02:00
Ben Kochie
92b6890bba
Merge pull request #222 from prometheus-community/dependabot/go_modules/k8s.io/client-go-0.26.3
Bump k8s.io/client-go from 0.26.2 to 0.26.3
2023-04-05 11:12:04 +02:00
dependabot[bot]
89e1774296
Bump k8s.io/client-go from 0.26.2 to 0.26.3
Bumps [k8s.io/client-go](https://github.com/kubernetes/client-go) from 0.26.2 to 0.26.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.26.2...v0.26.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>
2023-04-05 09:03:13 +00:00
Ben Kochie
c1f7496646
Merge pull request #225 from prometheus-community/superq/toolkit
Update build
2023-04-05 11:01:57 +02:00
SuperQ
2b8fbee030
Update build
* Update go to 1.20.
* Update Prometheus CI orb.
* Add landing page.
* Update Go modules.
* Update golangci-lint.

Signed-off-by: SuperQ <superq@gmail.com>
2023-04-01 12:06:31 +02:00
prombot
bea2eaf2aa Update common Prometheus files
Signed-off-by: prombot <prometheus-team@googlegroups.com>
2023-03-21 17:51:37 +00:00
dependabot[bot]
7c63d97ea9
Bump k8s.io/client-go from 0.26.1 to 0.26.2 (#213)
Bumps [k8s.io/client-go](https://github.com/kubernetes/client-go) from 0.26.1 to 0.26.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.26.1...v0.26.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>
2023-03-08 09:21:53 +09:00
PrometheusBot
1a216f327f
Update common Prometheus files (#212)
Signed-off-by: prombot <prometheus-team@googlegroups.com>
2023-03-08 09:20:54 +09:00
Ben Kochie
9230bf73c5
Merge pull request #210 from prometheus-community/dependabot/go_modules/k8s.io/client-go-0.26.1
Signed-off-by: Ben Kochie <superq@gmail.com>
2023-02-01 07:38:36 +01:00
dependabot[bot]
1d69a0613a
Bump k8s.io/client-go from 0.26.0 to 0.26.1
Bumps [k8s.io/client-go](https://github.com/kubernetes/client-go) from 0.26.0 to 0.26.1.
- [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.26.0...v0.26.1)

---
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>
2023-02-01 05:03:00 +00:00
Ben Kochie
52190c6e01
Merge pull request #201 from prometheus-community/dependabot/go_modules/k8s.io/client-go-0.26.0
Bump k8s.io/client-go from 0.25.4 to 0.26.0
2023-01-02 00:23:31 +01:00
dependabot[bot]
08704a47bd
Bump k8s.io/client-go from 0.25.4 to 0.26.0
Bumps [k8s.io/client-go](https://github.com/kubernetes/client-go) from 0.25.4 to 0.26.0.
- [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.4...v0.26.0)

---
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>
2023-01-01 23:06:38 +00:00
Ben Kochie
22bc35fe31
Merge pull request #202 from prometheus-community/dependabot/go_modules/github.com/prometheus/common-0.39.0
Bump github.com/prometheus/common from 0.37.0 to 0.39.0
2023-01-02 00:05:04 +01:00
dependabot[bot]
c283f2684b
Bump github.com/prometheus/common from 0.37.0 to 0.39.0
Bumps [github.com/prometheus/common](https://github.com/prometheus/common) from 0.37.0 to 0.39.0.
- [Release notes](https://github.com/prometheus/common/releases)
- [Commits](https://github.com/prometheus/common/compare/v0.37.0...v0.39.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>
2023-01-01 05:02:51 +00:00
Ben Kochie
b08eeaa82d
Merge pull request #200 from prometheus-community/repo_sync
Synchronize common files from prometheus/prometheus
2022-12-29 22:47:05 +01:00
Ben Kochie
0835adfcde
Merge pull request #193 from prometheus-community/dependabot/go_modules/github.com/Masterminds/sprig/v3-3.2.3
Bump github.com/Masterminds/sprig/v3 from 3.2.2 to 3.2.3
2022-12-29 22:46:36 +01:00
prombot
f9e4b79596 Update common Prometheus files
Signed-off-by: prombot <prometheus-team@googlegroups.com>
2022-12-29 17:49:33 +00:00
dependabot[bot]
b86d9cac91
Bump github.com/Masterminds/sprig/v3 from 3.2.2 to 3.2.3
Bumps [github.com/Masterminds/sprig/v3](https://github.com/Masterminds/sprig) from 3.2.2 to 3.2.3.
- [Release notes](https://github.com/Masterminds/sprig/releases)
- [Changelog](https://github.com/Masterminds/sprig/blob/master/CHANGELOG.md)
- [Commits](https://github.com/Masterminds/sprig/compare/v3.2.2...v3.2.3)

---
updated-dependencies:
- dependency-name: github.com/Masterminds/sprig/v3
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-12-29 16:24:18 +00:00
Ben Kochie
8c38e44928
Merge pull request #192 from prometheus-community/dependabot/go_modules/github.com/prometheus/client_golang-1.14.0
Bump github.com/prometheus/client_golang from 1.13.0 to 1.14.0
2022-12-29 17:23:32 +01:00
dependabot[bot]
adc29be30e
Bump github.com/prometheus/client_golang from 1.13.0 to 1.14.0
Bumps [github.com/prometheus/client_golang](https://github.com/prometheus/client_golang) from 1.13.0 to 1.14.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.13.0...v1.14.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>
2022-12-29 13:32:53 +00:00
Ben Kochie
a41c35905f
Merge pull request #199 from prometheus-community/superq/bump_toolkit
Update exporter-toolkit
2022-12-29 14:32:10 +01:00
SuperQ
360d95c41d
Update exporter-toolkit
Update to the latest exporter-toolkit.
* Update Go to 1.19.
* Fixes CVE in exporter-toolkit.

NOTE: The config file flag has changed to `--web.config.file`.

Signed-off-by: SuperQ <superq@gmail.com>
2022-12-29 06:15:55 +01:00
PrometheusBot
4b61929d22
Update common Prometheus files (#196)
Signed-off-by: prombot <prometheus-team@googlegroups.com>
2022-12-29 06:07:56 +01:00
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