Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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