mirror of
https://github.com/outbackdingo/Biohazard.git
synced 2026-01-27 18:18:26 +00:00
feat(vector): add Prom metrics
This commit is contained in:
@@ -37,14 +37,14 @@ transforms:
|
||||
- type: counter
|
||||
field: subtype
|
||||
name: "{{ subtype }}"
|
||||
namespace: "fortigate_{{ fortigate }}_{{ type }}"
|
||||
namespace: "fortigate_{{ fortigate }}_{{ vd }}_{{ type }}"
|
||||
tags:
|
||||
"*": "{{ . }}"
|
||||
sinks:
|
||||
vlogs:
|
||||
inputs: [fortigate-parse-message]
|
||||
type: http
|
||||
uri: http://victoria-logs-victoria-logs-single-server.monitoring.svc.cluster.local:9428/insert/jsonline?_stream_fields=host,type,subtype,vd&_msg_field=message&_time_field=date
|
||||
uri: http://victoria-logs-victoria-logs-single-server.monitoring.svc.cluster.local:9428/insert/jsonline?_stream_fields=fortigate,type,subtype,vd&_msg_field=message&_time_field=date
|
||||
request:
|
||||
headers:
|
||||
AccountID: "51401"
|
||||
|
||||
@@ -47,7 +47,7 @@ spec:
|
||||
retentionPeriod: 2d
|
||||
extraArgs:
|
||||
dedup.minScrapeInterval: 60s
|
||||
maxLabelsPerTimeseries: "40"
|
||||
maxLabelsPerTimeseries: "60"
|
||||
search.minStalenessInterval: 5m
|
||||
storageDataPath: &path /vmdata
|
||||
vmalert.proxyURL: http://vmalert-victoria.monitoring.svc.cluster.local.:8080
|
||||
|
||||
Reference in New Issue
Block a user