feat(vector): add Prom metrics

This commit is contained in:
JJGadgets
2025-10-21 05:06:45 +08:00
parent 4d29f2ca59
commit e08aee10c9
2 changed files with 3 additions and 3 deletions

View File

@@ -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"

View File

@@ -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