Skip to content

Commit

Permalink
Explanation for plugin developers
Browse files Browse the repository at this point in the history
  • Loading branch information
avarsava committed May 16, 2024
1 parent 199279c commit 632c92a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docs/plugin-loki.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,9 @@ ending `.loki` with the following:
The `"url"` property is the URL of the Loki server to push logs into. The
optional `"labels"` object will apply static labels to all values logged from
this instance.

## For Plugin Developers
The PluginManager passes each `PluginFileType` an implementation of `Definer` which has
a method `log(String, Map<String,String>)`. If the Loki plugin is installed, then the PluginManager will route log
messages and labels to Loki.
The PluginManager automatically includes the labels `plugin` and `plugin_type`.

0 comments on commit 632c92a

Please sign in to comment.