summaryrefslogtreecommitdiff
path: root/schemas
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2022-09-13 12:25:10 +0200
committerValery Piashchynski <[email protected]>2022-09-13 12:25:10 +0200
commit3f73c3934a036ba5311f1feff701602a4960a2e1 (patch)
tree0ac4f264e1cd0eb6ca67a9d9d830772e4924ab4c /schemas
parent3676a620f62681b40c50f18dd9d23c4bf667fb77 (diff)
update configs
Signed-off-by: Valery Piashchynski <[email protected]>
Diffstat (limited to 'schemas')
-rw-r--r--schemas/config/2.0.schema.json110
1 files changed, 71 insertions, 39 deletions
diff --git a/schemas/config/2.0.schema.json b/schemas/config/2.0.schema.json
index a0721fb1..003e1305 100644
--- a/schemas/config/2.0.schema.json
+++ b/schemas/config/2.0.schema.json
@@ -216,56 +216,88 @@
"type": "string",
"default": "default"
},
- "codec": {
- "description": "Internal temporal communication protocol",
- "type": "string",
- "default": "proto",
- "anyOf": [
- {
- "type": "string",
- "examples": [
- "proto",
- "json"
- ]
- }
- ]
- },
- "debug_level": {
- "description": "Debugging level (only for json codec)",
- "type": "integer",
- "minimum": 0,
- "maximum": 2,
- "default": 0
- },
"metrics": {
"description": "Temporal metrics",
"type": "object",
"default": null,
"properties": {
- "address": {
- "description": "Server metrics address",
- "type": "string",
- "default": "127.0.0.1:9091"
- },
- "type": {
+ "driver": {
+ "description": "Metrics driver to use",
"type": "string",
- "description": "Metrics type",
- "anyOf": [
- {
+ "enum": [
+ "prometheus",
+ "statsd"
+ ],
+ "default": "prometheus"
+ }
+ },
+ "oneOf": [
+ {
+ "properties": {
+ "address": {
+ "description": "Server metrics address",
"type": "string",
- "examples": [
- "summary",
- "histogram"
+ "default": "127.0.0.1:9091"
+ },
+ "type": {
+ "type": "string",
+ "description": "Metrics type",
+ "anyOf": [
+ {
+ "type": "string",
+ "examples": [
+ "summary",
+ "histogram"
+ ]
+ }
]
+ },
+ "prefix": {
+ "description": "Temporal metrics prefix",
+ "type": "string",
+ "default": null
}
- ]
+ }
},
- "prefix": {
- "description": "Temporal metrics prefix",
- "type": "string",
- "default": null
+ {
+ "properties": {
+ "host_port": {
+ "description": "The host and port of the statsd server",
+ "type": "string",
+ "default": "127.0.0.1:8125"
+ },
+ "prefix": {
+ "description": "The prefix to use in reporting to statsd",
+ "type": "string",
+ "default": null
+ },
+ "flush_interval": {
+ "description": "FlushInterval is the maximum interval for sending packets",
+ "type": "string",
+ "default": "1s"
+ },
+ "flush_bytes": {
+ "description": "FlushBytes specifies the maximum udp packet size you wish to send. If FlushBytes is unspecified, it defaults to 1432 bytes, which is considered safe for local traffic.",
+ "type": "integer",
+ "default": 1432
+ },
+ "tags": {
+ "description": "Hashmap with tag:value values",
+ "$ref": "#/definitions/Hashmap"
+ },
+ "tag_prefix": {
+ "description": "Prefix for the tag",
+ "type": "string",
+ "default": null
+ },
+ "tag_separator": {
+ "description": "TagSeparator allows tags to be appended with a separator. If not specified tag keys and values are embedded to the stat name directly.",
+ "type": "string",
+ "default": null
+ }
+ }
}
- }
+ ]
},
"activities": {
"description": "Activities pool settings",