Skip to content

Commit 410d329

Browse files
committed
Fix grafana, promtail log reader
1 parent 3e90841 commit 410d329

File tree

6 files changed

+8
-3
lines changed

6 files changed

+8
-3
lines changed

.github/workflows/main.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,5 @@ jobs:
3737
- uses: ncipollo/release-action@v1
3838
with:
3939
artifacts: "*.pkg"
40-
generateReleaseNotes: true
40+
generateReleaseNotes: true
41+
makeLatest: true

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
PLUGIN_NAME= opn-monitor
22
PLUGIN_VERSION= 1.0
3-
PLUGIN_REVISION= 0
3+
PLUGIN_REVISION= 1
44
PLUGIN_COMMENT= Grafana loki promtail stack
55
PLUGIN_MAINTAINER= [email protected]
66
PLUGIN_DEVEL=

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ More can be found here: [demos](https://github.com/oxycoder/opn-repo/blob/main/i
1616

1717
## Install plugin
1818
```
19-
rsync -av ./src/ root@opnsenseIP:/usr/local/
19+
pkg add https://github.com/oxycoder/opn-monitor/releases/latest/download/os-opn-monitor-1.0_1.pkg
2020
```
2121

2222
## Install grafana, loki, promtail (build form source)

pkg-descr

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,6 @@ Provide support for Grafana, Loki and Promtail
33
Plugin Changelog
44
================
55

6+
1.0_1 Fix Grafana and promtail log reader
7+
68
1.0 Initial release

src/opnsense/scripts/syslog/logformats/grafana.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ class GrafanaLogFormat(NewBaseLogFormat):
66
def __init__(self, filename):
77
super().__init__(filename)
88
self._priority = 200
9+
self._parts = list()
910

1011
def match(self, line):
1112
# need to check file name here otherwise it will fallback to another LogFormater

src/opnsense/scripts/syslog/logformats/promtail.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ class PromtailLogFormat(NewBaseLogFormat):
66
def __init__(self, filename):
77
super().__init__(filename)
88
self._priority = 200
9+
self._parts = list()
910

1011
def match(self, line):
1112
# need to check file name here otherwise it will fallback to another LogFormater

0 commit comments

Comments
 (0)