-
Notifications
You must be signed in to change notification settings - Fork 0
/
agent-traces-configmap.yaml
executable file
·81 lines (81 loc) · 2.8 KB
/
agent-traces-configmap.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
apiVersion: v1
data:
agent.yaml: |
server:
http_listen_port: 8080
log_level: debug
prometheus:
global:
scrape_interval: 30s
wal_directory: /tmp/
configs:
- name: metrics-for-trace-agent-conf
host_filter: false
remote_write:
- url: $YOUR_REMOTE_WRITE_URL
basic_auth:
username: $YOUR_REMOTE_WRITE_USERNAME
password: $YOUR_REMOTE_WRITE_PASSWORD
scrape_configs:
- job_name: metrics-for-trace-agent-job
static_configs:
- targets: ['127.0.0.1:8080']
labels:
container: 'grafana-agent-traces'
pod: 'grafana-agent-traces'
traces:
configs:
- batch:
send_batch_size: 1000
timeout: 5s
name: default
receivers:
jaeger:
protocols:
grpc: null
thrift_binary: null
thrift_compact: null
thrift_http: null
remote_sampling:
strategy_file: /etc/agent/strategies.json
tls:
insecure: true
opencensus: null
otlp:
protocols:
grpc: null
http: null
zipkin: null
remote_write:
- basic_auth:
password: $YOUR_TEMPO_PASSWORD
username: $YOUR_TEMPO_USER
endpoint: tempo-us-central1.grafana.net:443
retry_on_failure:
enabled: false
scrape_configs:
- bearer_token_file: /var/run/secrets/kubernetes.io/serviceaccount/token
job_name: kubernetes-pods
kubernetes_sd_configs:
- role: pod
relabel_configs:
- action: replace
source_labels:
- __meta_kubernetes_namespace
target_label: namespace
- action: replace
source_labels:
- __meta_kubernetes_pod_name
target_label: pod
- action: replace
source_labels:
- __meta_kubernetes_pod_container_name
target_label: container
tls_config:
ca_file: /var/run/secrets/kubernetes.io/serviceaccount/ca.crt
insecure_skip_verify: false
strategies.json: '{"default_strategy": {"param": 0.001, "type": "probabilistic"}}'
kind: ConfigMap
metadata:
name: grafana-agent-traces
namespace: $YOUR_NAMESPACE