我能够安装 elasticseach 和 kibana,两者都已启动并正在运行。在 Kibana 仪表板中设置了 APM 服务器,并显示了索引。
跟踪日志时,我收到以下 APM-Agent 错误。错误 co.elastic.apm.agent.report.IntakeV2ReportingEventHandler - 尝试连接到 APM 服务器时出错。有关与当前连接对应的 SSL 配置的一些详细信息记录在 INFO 级别。
错误 co.elastic.apm.agent.report.IntakeV2ReportingEventHandler - 无法处理 JSON_WRITER 类型的事件并出现此错误:连接超时
APM 代理 Yaml 文件
apiVersion: apps/v1
kind: Deployment
metadata:
name: deployment
namespace: blogdemodeployments
spec:
selector:
matchLabels:
app: azuretest
template:
metadata:
labels:
app: azuretest
spec:
containers:
- name: apm-agent-container
image: dockerid/application-service
volumeMounts:
- name: shared-data
mountPath: /usr/share/app/
ports:
- containerPort: 6000
name: http
protocol: TCP
env:
- name: SERVER_URL
value: "http://40.83.185.238:8200"
- name: filebeat-container
image: docker.elastic.co/beats/filebeat:7.10.0
volumeMounts:
- name: shared-data
mountPath: /usr/share/filebeat/filebeat.yml
volumes:
- name: shared-data
azureFile:
secretName: storage-secret
shareName: myfileshare
readOnly: false
---
kind: Service
apiVersion: apps/v1
metadata:
name: apmfb
namespace: blogdemodeployments
spec:
type: LoadBalancer
selector:
app: apmfb
ports:
- name: http
protocol: TCP
port: 6000
targetPort: 6000
弹性搜索 Yaml
---
apiVersion: elasticsearch.k8s.elastic.co/v1
kind: Elasticsearch
metadata:
name: quickstart
labels:
component: elasticsearch
spec:
version: 7.10.2
http:
service:
spec:
type: LoadBalancer
nodeSets:
- name: default
count: 1
config:
node.master: true
node.data: true
node.ingest: true
node.store.allow_mmap: false
Kibana Yaml
---
apiVersion: kibana.k8s.elastic.co/v1
kind: Kibana
metadata:
name: quickstart
spec:
version: 7.10.2 #Make sure Kibana and Elasticsearch are on the same version.
http:
service:
spec:
type: LoadBalancer #Adds a External IP
tls:
selfSignedCertificate:
disabled: true
count: 1
elasticsearchRef:
name: quickstart
APM 服务器 Yaml
---
apiVersion: apm.k8s.elastic.co/v1
kind: ApmServer
metadata:
name: apm-new-quickstart
namespace: default
spec:
version: 7.10.2
count: 1
http:
service:
spec:
type: LoadBalancer
tls:
selfSignedCertificate:
disabled: true
config:
output:
elasticsearch:
enabled: true
hosts: ["https://52.224.33.53:9200"]
username: "elastic"
password: "XXXXXXXXXXXXXXXXXXXX"
logging:
level: debug
to_files: false
to_stderr: true
apm-server:
hosts: "0.0.0.0:8200"