mirror of
https://github.com/vxcontrol/soldr-obs-config.git
synced 2026-07-01 17:54:29 -04:00
feat: add trace to logs and log to trace support
This commit is contained in:
@@ -15,7 +15,7 @@ datasources:
|
||||
# <string, required> datasource type. Required
|
||||
type: prometheus
|
||||
# <string, required> access mode. proxy or direct (Server or Browser in the UI). Required
|
||||
access: Server
|
||||
access: proxy
|
||||
# <string> url
|
||||
url: http://victoriametrics.local:8428
|
||||
# <string> Deprecated, use secureJsonData.password
|
||||
@@ -29,13 +29,28 @@ datasources:
|
||||
# <string, required> datasource type. Required
|
||||
type: jaeger
|
||||
# <string, required> access mode. proxy or direct (Server or Browser in the UI). Required
|
||||
access: Server
|
||||
access: proxy
|
||||
# <string> url
|
||||
url: http://jaeger.local:16686
|
||||
# <string> Deprecated, use secureJsonData.password
|
||||
version: 1
|
||||
# <bool> allow users to edit datasources from the UI.
|
||||
editable: true
|
||||
# additional parameters
|
||||
jsonData:
|
||||
manageAlerts: false
|
||||
nodeGraph:
|
||||
enabled: true
|
||||
tracesToLogs:
|
||||
datasourceUid: Loki
|
||||
filterBySpanID: true
|
||||
filterByTraceID: true
|
||||
mapTagNamesEnabled: true
|
||||
spanStartTimeShift: '-1m'
|
||||
spanEndTimeShift: '1m'
|
||||
mappedTags:
|
||||
- key: otel.library.name
|
||||
value: service_name
|
||||
- name: Loki
|
||||
# <string, required> datasource type. Required
|
||||
type: loki
|
||||
@@ -50,3 +65,10 @@ datasources:
|
||||
# additional parameters
|
||||
jsonData:
|
||||
maxLines: 1000
|
||||
manageAlerts: false
|
||||
derivedFields:
|
||||
- datasourceUid: Jaeger
|
||||
matcherRegex: "(?:\"traceid\"):\"(\\w+)\""
|
||||
name: traceid
|
||||
url: '$${__value.raw}'
|
||||
urlDisplayLabel: "Trace for this log"
|
||||
|
||||
@@ -4,11 +4,11 @@ server:
|
||||
http_listen_port: 3100
|
||||
|
||||
common:
|
||||
path_prefix: /tmp/loki
|
||||
path_prefix: /loki
|
||||
storage:
|
||||
filesystem:
|
||||
chunks_directory: /tmp/loki/chunks
|
||||
rules_directory: /tmp/loki/rules
|
||||
chunks_directory: /loki/chunks
|
||||
rules_directory: /loki/rules
|
||||
replication_factor: 1
|
||||
ring:
|
||||
instance_addr: 127.0.0.1
|
||||
|
||||
@@ -42,13 +42,13 @@ processors:
|
||||
actions:
|
||||
- action: insert
|
||||
key: loki.attribute.labels
|
||||
value: http.status_code, http.route, http.method, http.host, http.server_name, otel.library.name, span.component
|
||||
value: http_status_code, http_route, http_method, http_host_name, net_peer_ip, component
|
||||
|
||||
resource:
|
||||
attributes:
|
||||
- action: insert
|
||||
key: loki.resource.labels
|
||||
value: agent_id, server_id, service.version, service.arch, os.type
|
||||
value: agent_id, server_id, api_server_id, group_id, policy_id, service_name, service_version, service_arch, service_os, module
|
||||
|
||||
exporters:
|
||||
logging:
|
||||
|
||||
Reference in New Issue
Block a user