@@ -30,6 +30,7 @@ Alarm rule is constituted by following keys
-**Exclude labels**. The following labels of the metric are excluded in this rule.
-**Include labels regex**. Provide a regex to include labels. If both setting the include label list and include label regex, both rules will take effect.
-**Exclude labels regex**. Provide a regex to exclude labels. If both setting the exclude label list and exclude label regex, both rules will take effect.
-**Tags**. Tags are key/value pairs that are attached to alarms. Tags are intended to be used to specify identifying attributes of alarms that are meaningful and relevant to users.
*The settings of labels is required by meter-system which intends to store metrics from label-system platform, just like Prometheus, Micrometer, etc.
The function supports the above four settings should implement `LabeledValueHolder`.*
...
...
@@ -57,7 +58,7 @@ Composite rule is constituted by the following keys
-**Rule name**. Unique name, show in alarm message. Must end with `_rule`.
-**Expression**. Specify how to compose rules, support `&&`, `||`, `()`.
-**Message**. Specify the notification message when rule triggered.
-**Tags**. Tags are key/value pairs that are attached to alarms. Tags are intended to be used to specify identifying attributes of alarms that are meaningful and relevant to users.
```yaml
rules:
# Rule unique name, must be ended with `_rule`.
...
...
@@ -74,6 +75,8 @@ rules:
silence-period:10
# Specify if the rule can send notification or just as an condition of composite rule
only-as-condition:false
tags:
level:WARNING
service_percent_rule:
metrics-name:service_percent
# [Optional] Default, match all services in this metrics
| - | - | endpointNameMaxLength| Max length limitation of endpoint name. The max length of service + endpoint names should be less than 240.|SW_ENDPOINT_NAME_MAX_LENGTH|150|
| - | - | searchableTracesTags | Define the set of span tag keys, which should be searchable through the GraphQL. Multiple values should be separated through the comma. | SW_SEARCHABLE_TAG_KEYS | http.method,status_code,db.type,db.instance,mq.queue,mq.topic,mq.broker|
| - | - | searchableLogsTags | Define the set of log tag keys, which should be searchable through the GraphQL. Multiple values should be separated through the comma. | SW_SEARCHABLE_LOGS_TAG_KEYS | level |
| - | - | searchableAlarmTags | Define the set of alarm tag keys, which should be searchable through the GraphQL. Multiple values should be separated through the comma. | SW_SEARCHABLE_ALARM_TAG_KEYS | level |
| - | - | gRPCThreadPoolSize|Pool size of gRPC server| SW_CORE_GRPC_THREAD_POOL_SIZE | CPU core * 4|
| - | - | gRPCThreadPoolQueueSize| The queue size of gRPC server| SW_CORE_GRPC_POOL_QUEUE_SIZE | 10000|
| - | - | maxConcurrentCallsPerConnection | The maximum number of concurrent calls permitted for each incoming connection. Defaults to no limit. | SW_CORE_GRPC_MAX_CONCURRENT_CALL | - |
# The number of threads used to synchronously refresh the metrics data to the storage.
syncThreads:${SW_CORE_SYNC_THREADS:2}
# The maximum number of processes supported for each synchronous storage operation. When the number of the flush data is greater than this value, it will be assigned to multiple cores for execution.