-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add HTTP route without any arguments to make the plugin usable in Kub…
…ernetes (#29) Why? In a Kubernetes context, Prometheus scrape configuration are given using annotations like this: metadata: annotations: prometheus.io/scrape: "true" prometheus.io/path: /_/metrics prometheus.io/port: "7512" spec: ... These annotations don't support the params configuration making the plugin unusable. How? Add an HTTP route that doesn't require HTTP query parameters to fetch Prometheus formatted metrics. Test it You should now be able to fetch Prometheus formatted metrics using two different way: GET "http://localhost:7512/_metrics?format=prometheus" and the new one: GET "http://localhost:7512/_/metrics" Other changes Update documentation and add a Kubernetes section Add an improvement on the Kuzzle demo Grafana dashboard
- Loading branch information
1 parent
4bed636
commit 3077982
Showing
10 changed files
with
147 additions
and
122 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
Feature: Prometheus metrics fetching using prometheus:metrics | ||
Scenario: Fetching Prometheus formatted metrics from prometheus:metrics" | ||
Given A running Kuzzle instance at "localhost:7512" | ||
When I send a HTTP request to "/_/metrics" | ||
Then The HTTP response should be a Prometheus formatted metrics containing: | ||
| kuzzle_api_concurrent_requests | 1 | | ||
| process_start_time_seconds | | | ||
|
||
Scenario: Trying to fetch Prometheus formatted metrics from prometheus:metrics through WebSocket | ||
Given A running Kuzzle instance at "localhost:7512" | ||
When I send a WebSocket request to "prometheus":"metrics" with the format parameter set to "prometheus" | ||
Then The WebSocket response should be a JSON object with "200" status code and a "" property |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "kuzzle-plugin-prometheus", | ||
"version": "4.0.0", | ||
"version": "4.1.0", | ||
"description": "Kuzzle plugin: monitoring Kuzzle using Prometheus", | ||
"author": { | ||
"name": "The Kuzzle Team <[email protected]>" | ||
|
Oops, something went wrong.