Last active
May 17, 2019 07:32
-
-
Save ayushi24041992/d791a71780a77db8ea0f9ca51c8e8fa8 to your computer and use it in GitHub Desktop.
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
global: | |
config_version: 2 | |
input: | |
type: file | |
path: temperatureSpike.log | |
readall: true # Read from the beginning of the file? False means we start at the end of the file and read only new lines. | |
grok: | |
patterns_dir: ./patterns/ | |
metrics: | |
- type: gauge | |
name: device_temperature_detail | |
help: Temperature Detail of different devices represented by device ID. | |
match: 'Device %{USERNAME:deviceId} has %{NUMBER:temperature} temperature' | |
value: '{{.temperature}}' | |
labels: | |
system_id: '{{.deviceId}}' | |
server: | |
host: localhost | |
port: 9144 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment