GreyZmeem / python-logging-loki

Python logging handler for Loki
MIT License
151 stars 57 forks source link

How to make fields? #25

Open Andrey250419 opened 2 years ago

Andrey250419 commented 2 years ago

Hello, I'm trying to make fields in grafana (as shown in the picture), but I don't understand how I should form a log sending from python to loki.

logger.info ('Test', extra={"tags": {"tag": 1}, "fields": {"field": 1}}) or...?

Screenshot 2022-06-23 at 15 15 05