-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathagent.yaml
85 lines (79 loc) · 2.59 KB
/
agent.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
82
83
84
85
# This file serves as the agent configuration to interact with the
# docker compose environment.
#
# You should pass the following command line flags when running the agent
# locally and using this file:
#
# -enable-features=integrations-next -config.expand-env -config.enable-read-api
#
# -enable-features=integrations-next is required as the file is configured for
# the integrations revamp.
#
# -config.expand-env is required to expand environment variables. Environment
# variables are used when running the agent inside of docker-compose to connect
# to the other services. When running the agent externally, the expressions will
# default to the appropriate values of the exposed ports.
#
# -config.enable-read-api is optional, but allows you to invoke the /-/config
# endpoint to examine the generated config.
server:
log_level: debug
http_listen_port: 12345
integrations:
agent:
traces:
configs:
- name: default
remote_write:
- endpoint: tempo-us-central1.grafana.net:443
basic_auth:
username: 160639
password: eyJrIjoiZGNjYjFjMzFjMTQ2YTA4MmI3YzhiMWRhNDdlOTFhNmJiNGE5OTRmMyIsIm4iOiJhZGFtIiwiaWQiOjYwMTM4MH0=
receivers:
otlp:
protocols:
grpc:
logs:
configs:
- name: default
positions:
filename: /tmp/positions.yaml
scrape_configs:
- job_name: pet-clinic
static_configs:
- targets: [localhost]
labels:
job: pet-clinic
__path__: /tmp/pet-clinic.log
- job_name: pet-clinic-tomcat
static_configs:
- targets: [localhost]
labels:
job: pet-clinic-tomcat
__path__: /tmp/tomcat_log.log
clients:
- url: https://logs-prod3.grafana.net/loki/api/v1/push
basic_auth:
username: 164126
password: eyJrIjoiOWYzMmViNDMwNGMzZjM5ZDZjY2JiZTUwZDI4YTlmMDY3MTlkZGM3YSIsIm4iOiJhcXVhbi1lYXN5c3RhcnQtcHJvbS1wdWJsaXNoZXIiLCJpZCI6NjAxMzgwfQ==
target_config:
sync_period: 10s
metrics:
configs:
- name: integrations
remote_write:
- basic_auth:
password: eyJrIjoiOWYzMmViNDMwNGMzZjM5ZDZjY2JiZTUwZDI4YTlmMDY3MTlkZGM3YSIsIm4iOiJhcXVhbi1lYXN5c3RhcnQtcHJvbS1wdWJsaXNoZXIiLCJpZCI6NjAxMzgwfQ==
username: 330312
url: https://prometheus-prod-10-prod-us-central-0.grafana.net/api/prom/push
scrape_configs:
- job_name: integrations/spring-boot
metrics_path: /actuator/prometheus
static_configs:
- targets:
- localhost:8080
global:
scrape_interval: 10s
external_labels:
monitor: pet-clinic
wal_directory: /tmp/grafana-agent-wal