Commit Graph

47 Commits

Author SHA1 Message Date
rustyclock
014e2df99b
Add unit tests
Signed-off-by: rustyclock <rustyclock@protonmail.com>
2020-08-20 11:48:09 +09:00
rustyclock
a6b9654e6a
Use NewConstMetric instead of regular Gauge
Signed-off-by: rustyclock <rustyclock@protonmail.com>
2020-08-19 11:58:17 +09:00
rustyclock
a9d3155c71
Return 503 on connection errors
Signed-off-by: rustyclock <rustyclock@protonmail.com>
2020-08-18 12:28:18 +09:00
rustyclock
4479a45118
Remove probe_duration metric
Signed-off-by: rustyclock <rustyclock@protonmail.com>
2020-08-06 20:08:53 +09:00
rustyclock
bf7590adb7
Add HTTP config support
Signed-off-by: rustyclock <rustyclock@protonmail.com>
2020-08-06 20:03:21 +09:00
rustyclock
fa085b219d
Switch to kingpin
Signed-off-by: rustyclock <rustyclock@protonmail.com>
2020-08-06 07:32:11 +09:00
rustyclock
1e1ba273ed
Fix lint errors
Signed-off-by: rustyclock <rustyclock@protonmail.com>
2020-08-05 18:39:09 +09:00
rustyclock
f57d3e9429
Migrate logging to promlog
Signed-off-by: rustyclock <rustyclock@protonmail.com>
2020-08-05 18:31:04 +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
Ben Kochie
95c468e892
Merge pull request #48 from paulfantom/paulfantom-patch-1
Reference container image in README
2020-07-31 16:36:40 +02: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
Ben Kochie
2c09f420e8
Merge pull request #42 from prometheus-community/superq/release_0.1
Release 0.1.0
2020-07-27 12:10:40 +02:00
Ben Kochie
d001c8fc3c
Release 0.1.0
* Add initial changelog.
* Bump Go deps.
* Update circleci prometheus orb.

Closes: https://github.com/prometheus-community/json_exporter/issues/32
Closes: https://github.com/prometheus-community/json_exporter/issues/41

Signed-off-by: Ben Kochie <superq@gmail.com>
2020-07-27 10:08:41 +02:00
Ben Kochie
af64bfe64f
Merge pull request #40 from prometheus-community/repo_sync
Synchronize common files from prometheus/prometheus
2020-06-22 09:58:43 +02:00
prombot
c9fd7f62d0 Update common Prometheus files
Signed-off-by: prombot <prometheus-team@googlegroups.com>
2020-06-22 00:09:16 +00:00
Ben Kochie
c839f60a14
Merge pull request #39 from prometheus-community/makefile_common
Synchronize Makefile.common from prometheus/prometheus
2020-06-15 08:04:44 +02:00
prombot
9ebb62d426 makefile: update Makefile.common with newer version
Signed-off-by: prombot <prometheus-team@googlegroups.com>
2020-06-15 00:08:30 +00:00
Ben Kochie
d99336eb77
Merge pull request #29 from prometheus-community/makefile_common
Synchronize Makefile.common from prometheus/prometheus
2020-06-14 16:01:29 +02:00
Ben Kochie
1a5679d9bf
Merge pull request #37 from davdr/fix/boolean
Fix bool support
2020-06-14 15:55:45 +02:00
Ben Kochie
da5d78d8ca
Merge pull request #36 from roidelapluie/dock
Fix dockerfile
2020-06-14 15:52:29 +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
David DR
6cb836fd0c jsonexporter/scraper: fix bool support
Signed-off-by: David DR <52098642+davdr@users.noreply.github.com>
2020-06-13 23:36:57 +02:00
Julien Pivotto
bcfa332dd7 Fix dockerfile
Signed-off-by: Julien Pivotto <roidelapluie@inuits.eu>
2020-06-12 00:01:42 +02:00
prombot
1ffa640a60 makefile: update Makefile.common with newer version
Signed-off-by: prombot <prometheus-team@googlegroups.com>
2020-04-18 00:08:48 +00:00
Ben Kochie
26438530a7
Use default promu crossbuild list.
Signed-off-by: Ben Kochie <superq@gmail.com>
2020-04-17 11:46:51 +02:00
Ben Kochie
9ba4b37d23
Merge pull request #27 from prometheus-community/superq/docker
Add Docker
2020-04-17 10:22:12 +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
c483776514
Merge pull request #17 from WilliButz/add-bool-support
jsonexporter/scraper: add bool support
2020-04-17 09:16:49 +02:00
Ben Kochie
95d8fce03f
Merge pull request #26 from prometheus-community/superq/go_build
More community cleanup
2020-04-17 09:08:40 +02:00
Ben Kochie
bfa58a640c
Fix lint issues.
Signed-off-by: Ben Kochie <superq@gmail.com>
2020-04-17 08:59:32 +02:00
Ben Kochie
429000ac5e
Add license headers.
Signed-off-by: Ben Kochie <superq@gmail.com>
2020-04-17 08:45:38 +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
Ben Kochie
f0d80a1799
Merge pull request #25 from prometheus-community/superq/update
Update for prometheus-community
2020-04-17 08:28:15 +02:00
Ben Kochie
61232ef8cf
Update for prometheus-community
* Add prometheus-community boilerplate.
* Switch from external harness package to internal.
* Update imports to new locations.
* Cleanup old `gow` build.

Signed-off-by: Ben Kochie <superq@gmail.com>
2020-04-17 08:24:27 +02:00
WilliButz
71e4ec2273
jsonexporter/scraper: add bool support 2018-08-21 02:04:29 +02:00
Thomas Jackson
51e3dc02a3 Add support for parsing additional types (string, null) (#5)
* Add support for parsing additional types (string, null)

With this patch we now support pulling number out of strings (its fairly
common for metrics to use quoted numbers as values) as well as "null" --
which we represent as a NaN.

* Bump minor version
2017-10-06 09:59:28 +09:00
Yuto KAWAMURA
d45e5ebdb0 Merge pull request #2 from okdtsk/fix_ln_opt
Change ln '--no-dereference' options from '-h' to '-n'
2016-09-13 15:21:15 +09:00
Tasuku OKUDA
e71f8bf017 Change ln '--no-dereference' options from '-h' to '-n' due to other platform implementations 2016-09-12 18:53:29 +09:00
Yuto KAWAMURA
3d43038638 Note the original repository of jsonpath in README 2016-08-28 11:22:46 +09:00
Yuto KAWAMURA
5876d97a87 Merge pull request #1 from kfdm/patch-1
Fix link to JSONPath syntax reference
2016-08-28 11:19:20 +09:00
Paul Traylor
b3dfa8da1e Fix link to JSONPath syntax reference 2016-08-26 16:25:51 +09:00
Yuto Kawamura
4aade3cff7 Replace codegangsta/cli with urfave/cli 2016-07-12 14:07:27 +09:00
Yuto Kawamura
1146dde587 Use private build of nickSardo/jsonpath until the problem fixed in the original
Ref: 5c448ebf97
2016-02-08 23:09:02 +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