Grafana version :2.5.0
promtail is going to send some stream to loki but get the error message.
Confugration
here s my promtail config by matching ‘special’ job:
- match:
selector: '{job="special"}'
stages:
- multiline:
firstline: '^\[[ZT\d:\+-\.]*\]'
max_wait_time: 3s
max_lines: 100000
- regex:
expression: '^\[(?P<time2>[ZT\d:\+-\.]*)\]--\[(?P<serviceName>[-_\w\d]*)\]--\[(?P<logType>[-_\w\d]*)\]--.*\"serialNumber\":\"(?P<serialNumber>[-_\w\d]*)\".*\"deviceName\":\"(?P<deviceName>[^\\"]*)\".*\"eventType\":\"(?P<eventType>\[.*\])\".*'
- labels:
serviceName:
logType:
serialNumber:
deviceName:
eventType:
Appearance:
Before,I collect this job by json label,I change my config later as I mentioned (to support some big log) and I save some static labels those I care(serialNumber,deviceName,eventType).
However, those labels make the error message —— Code(429) desc = Maximum active stream limit exceeded, reduce the number of active streams (reduce labels or reduce label values), or contact your Loki administrator to see if the limit can be increased" msg=gRPC
Handle
Then I post the loki api “/loki/api/v1/label/serialNumber/values” to see how much values did I collect in the ‘serialNumber’ label, and it’s only 120 values.
Question
I want to know which configuration control the number of active streams in promtail or loki?
thanks for looking this question.
I would be very grateful for ur answer