template 추가
This commit is contained in:
35
templates/log-agent-config.yml.j2
Normal file
35
templates/log-agent-config.yml.j2
Normal file
@@ -0,0 +1,35 @@
|
||||
agent:
|
||||
metadata:
|
||||
agent_name: "{{ log_agent_name | default('dsk-log-agent') }}"
|
||||
cluster_id: "{{ log_agent_cluster_id | default('unknown') }}"
|
||||
environment: "{{ log_agent_environment | default('etc') }}"
|
||||
collect:
|
||||
- paths:
|
||||
{% if paths is defined and paths | length > 0 %}
|
||||
{% for path in paths %}
|
||||
- "{{ path | default('') }}"
|
||||
{% endfor %}
|
||||
{% else %}
|
||||
- /var/log/*/*.log
|
||||
{% endif %}
|
||||
{% if exclude_paths is defined and exclude_paths | length > 0 %}
|
||||
exclude_paths:
|
||||
{% for exclude_path in exclude_paths %}
|
||||
- "{{ exclude_path | default('') }}"
|
||||
{% endfor %}
|
||||
{% else %}
|
||||
exclude_paths: []
|
||||
{% endif %}
|
||||
{% if keywords is defined and keywords | length > 0 %}
|
||||
keywords:
|
||||
{% for keyword in keywords %}
|
||||
- "{{ keyword | default('') }}"
|
||||
{% endfor %}
|
||||
{% else %}
|
||||
keywords: []
|
||||
{% endif %}
|
||||
tag: "{{ log_agent_tag | default('sample') }}"
|
||||
service:
|
||||
name: "{{ log_agent_service_name | default('test') }}"
|
||||
category: "{{ log_agent_service_category | default('etc') }}"
|
||||
type: "{{ log_agent_service_type | default('etc') }}"
|
||||
37
templates/log-agent-config.yml.j2_bak
Normal file
37
templates/log-agent-config.yml.j2_bak
Normal file
@@ -0,0 +1,37 @@
|
||||
agent:
|
||||
metadata:
|
||||
agent_name: "{{ log_agent_name | default('dsk-log-agent') }}"
|
||||
cluster_id: "{{ log_agent_cluster_id | default('unknown') }}"
|
||||
environment: "{{ log_agent_environment | default('etc') }}"
|
||||
collect:
|
||||
- paths:
|
||||
{% if paths is defined and paths | length > 0 %}
|
||||
{% for path in paths %}
|
||||
- "{{ path | default('') }}"
|
||||
{% endfor %}
|
||||
{% else %}
|
||||
- /var/log/*/*.log
|
||||
{% endif %}
|
||||
|
||||
{% if exclude_paths is defined and exclude_paths | length > 0 %}
|
||||
exclude_paths:
|
||||
{% for exclude_path in exclude_paths %}
|
||||
- "{{ exclude_path | default('') }}"
|
||||
{% endfor %}
|
||||
{% else %}
|
||||
exclude_paths: []
|
||||
{% endif %}
|
||||
|
||||
{% if keywords is defined and keywords | length > 0 %}
|
||||
keywords:
|
||||
{% for keyword in keywords %}
|
||||
- "{{ keyword | default('') }}"
|
||||
{% endfor %}
|
||||
{% else %}
|
||||
keywords: []
|
||||
{% endif %}
|
||||
tag: "{{ log_agent_tag | default('sample') }}"
|
||||
service:
|
||||
name: "{{ log_agent_service_name | default('test') }}"
|
||||
category: "{{ log_agent_service_category | default('etc') }}"
|
||||
type: "{{ log_agent_service_type | default('etc') }}"
|
||||
18
templates/node-agent-config.yml.j2
Normal file
18
templates/node-agent-config.yml.j2
Normal file
@@ -0,0 +1,18 @@
|
||||
agent:
|
||||
metadata:
|
||||
# agent_name: my-dsk-node-agent
|
||||
# cluster_id: my-cluster
|
||||
option:
|
||||
exporter_config:
|
||||
command: "dsk-node-exporter"
|
||||
port: 19110
|
||||
args:
|
||||
- --collector.filesystem.ignored-mount-points="^/(dev|proc|sys|run|var/lib/docker/.+|var/lib/kubelet/pods/.+)($|/)"
|
||||
- --collector.tcpstat
|
||||
scrape_interval: 15s
|
||||
scrape_timeout: 5s
|
||||
scrape_configs:
|
||||
- job_name: dsk-node-agent
|
||||
url: localhost:19110
|
||||
filtering_configs:
|
||||
rule: drop
|
||||
18
templates/plan-postgres-agent-config.yml.j2
Normal file
18
templates/plan-postgres-agent-config.yml.j2
Normal file
@@ -0,0 +1,18 @@
|
||||
agent:
|
||||
metadata:
|
||||
agent_name: "{{ plan_postgres_agent_name | default('dsk-plan-postgres-agent') }}"
|
||||
cluster_id: "{{ plan_postgres_agent_cluster_id | default('REPLACE_CLUSTER_ID') }}"
|
||||
data_source_name:
|
||||
user: "{{ plan_postgres_user_name | default('') }}"
|
||||
password: "{{ plan_postgres_user_password | default('') }}"
|
||||
address: "{{ plan_postgres_database_address | default('') }}"
|
||||
port: "{{ plan_postgres_database_port | default('') }}"
|
||||
DBName: "{{ plan_postgres_database_name | default('') }}"
|
||||
explain:
|
||||
scrape_interval: "{{ plan_postgres_scrape_interval | default('30s') }}"
|
||||
scrape_timeout: "{{ plan_postgres_scrape_timeout | default('5s') }}"
|
||||
slow_query_standard: "{{ plan_postgres_slow_query_standard | default('5s') }}"
|
||||
executor_number: "{{ plan_postgres_executor_number | default('10') }}"
|
||||
sender_number: "{{ plan_postgres_sender_number | default('10') }}"
|
||||
activity_query_buffer: "{{ plan_postgres_activity_query_buffer | default('50') }}"
|
||||
plan_sender_buffer: "{{ plan_postgres_plan_sender_buffer | default('50') }}"
|
||||
5
templates/trace-agent-config.yml.j2
Normal file
5
templates/trace-agent-config.yml.j2
Normal file
@@ -0,0 +1,5 @@
|
||||
agent:
|
||||
metadata:
|
||||
option:
|
||||
agent_name: "{{ trace_agent_name | default('trace-agent') }}"
|
||||
cluster_id: "{{ trace_agent_cluster_id | default('unknown_cluster') }}"
|
||||
Reference in New Issue
Block a user