Commit Graph

21 Commits

Author SHA1 Message Date
rustyclock
2754bc1407
Fix example syntax and update documentation
Signed-off-by: rustyclock <rustyclock@protonmail.com>
2023-05-14 11:50:57 +09: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
Ben Kochie
d1456b8917
Revert "Support Value Conversions (#172)" (#183)
This reverts commit ca1304003c.
2022-10-06 08:45:27 +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
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
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
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
rustyclock
fe22a839e2
Migrate JSONPath library
Signed-off-by: rustyclock <rustyclock@protonmail.com>
2021-01-24 13:49:10 +09:00
Daniel Maganto
bffc11991b
Add TLS metrics support
Signed-off-by: Daniel Maganto <dmagantomartin@gmail.com>
2020-12-10 18:04:27 +01:00
rustyclock
fa085b219d
Switch to kingpin
Signed-off-by: rustyclock <rustyclock@protonmail.com>
2020-08-06 07:32:11 +09:00
rustyclock
0b34d68918
Add example prometheus config
Signed-off-by: rustyclock <rustyclock@protonmail.com>
2020-08-04 15:37:28 +09:00
rustyclock
c869516e98
Refactor the complete code
* Make the working of this exporter similar to that of the blackbox_exporter to allow probing multiple targets.
* Add functionality to add headers to the request
* Update the example config to use `headers` as well as the `metrics` keys in alignment with the new code
* Add default header 'Accept: application/json'

Signed-off-by: rustyclock <rustyclock@protonmail.com>
2020-08-04 15:21:24 +09:00
Paweł Krupa
448fb7b8cf
Reference container image in README
Signed-off-by: paulfantom <pawel@krupa.net.pl>
2020-07-31 15:54:14 +02:00
David DR
c58897ce4a demo bool support in the example
Signed-off-by: David DR <52098642+davdr@users.noreply.github.com>
2020-06-13 23:36:57 +02:00
Ben Kochie
2d1678ed95
Add Docker
* Add Dockerfile and prometheuscommunity.
* Add promehteus common Version handler.
* Update README.

Signed-off-by: Ben Kochie <superq@gmail.com>
2020-04-17 10:06:54 +02:00
Ben Kochie
4621bca6f6
More community cleanup
* Fix up naming to be json_exporter.
* Fix more imports/paths.
* Add Go modules.

Signed-off-by: Ben Kochie <superq@gmail.com>
2020-04-17 08:45:38 +02:00
Yuto KAWAMURA
3d43038638 Note the original repository of jsonpath in README 2016-08-28 11:22:46 +09:00
Paul Traylor
b3dfa8da1e Fix link to JSONPath syntax reference 2016-08-26 16:25:51 +09:00
Yuto Kawamura
e1939b92a7 Complete README 2016-02-08 22:59:48 +09:00
Yuto Kawamura
239211151e Initial import 2016-02-08 22:55:40 +09:00
Yuto KAWAMURA
016cbc6076 Initial commit 2016-02-08 22:25:55 +09:00