Skip to content
This repository has been archived by the owner on Nov 9, 2023. It is now read-only.

Commit

Permalink
Add docker-pipeline.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
darrylmendillo committed Apr 30, 2020
1 parent fd39fa3 commit fd4bc4c
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions config/docker-pipeline.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
pipeline_stages:
- match:
selector: '{job="dockerlogs_app"} |~ "- (NOTSET|DEBUG|INFO|WARNING|ERROR|CRITICAL) -"'
stages:
- regex:
expression: '\D+(?P<app_time>[^ ]+ [^ ]+)[^a-z]+(?P<service>\S+)\W+(?P<level>\w+)[^{]+(?P<data>.*)\\n'
- template:
source: data
template: '{{ Replace .Value "\\" "" -1 }}'
- labels:
service:
level:
- output:
source: data
- metrics:
service_INFO_messages_total:
type: Counter
description: "INFO messages from pennsignalls services containing payload"
source: service
config:
match_all: true
action: inc

0 comments on commit fd4bc4c

Please sign in to comment.