-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The role is generally similar in functionality to `cartridge-metrics-role`. But there is also a difference. The key difference - the role does not support `health` format. The role name is `roles.metrics-export` it could be configured in the Tarantool 3 cluster configuration like this: ```yaml roles: [roles.metrics-export] roles_cfg: roles.metrics-export: http: - listen: 8081 endpoints: - path: /metrics/json format: json - path: /metrics/prometheus/ format: prometheus - listen: '127.0.0.1:8082' endpoints: - path: /metrics/prometheus format: prometheus - path: /metrics/json/ format: json ``` * `http` - is an export type name. The `http` is only supported at now. It allows to export metrics via a list of HTTP servers. * `listen` - is an address/port to listen via a HTTP server. * `endpoints` - is a list of endpoints to share via the HTTP server. * `path` - is an endpoint path. * `format` - is an export format for the endpoint, at now the role supports only `json` and `prometheus`. Closes #6
- Loading branch information
1 parent
c940f9a
commit 707dc32
Showing
17 changed files
with
1,314 additions
and
403 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
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,18 +1,24 @@ | ||
package = "metrics-export-role" | ||
version = "scm-1" | ||
|
||
source = { | ||
url = "git+https://github.com/tarantool/metrics-export-role", | ||
branch = "master", | ||
} | ||
|
||
description = { | ||
summary = "The Tarantool 3 role for metrics export via HTTP", | ||
homepage = "https://github.com/tarantool/metrics-export-role", | ||
license = "BSD2", | ||
maintainer = "Fedor Terekhin <[email protected]>" | ||
} | ||
|
||
dependencies = { | ||
"lua >= 5.1", | ||
"tarantool >= 3.0", | ||
"http >= 1.5.0", | ||
} | ||
|
||
build = { | ||
type = "builtin", | ||
modules = { | ||
|
Oops, something went wrong.