ECK-apm
2025-01-10 07:17 qgbo 阅读(6) 评论(0) 编辑 收藏 举报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 | apiVersion: elasticsearch.k8s.elastic.co/v1 kind: Elasticsearch metadata: name: quickstart namespace: elastic-system spec: version: 8.17.0 nodeSets: - name: default count: 1 config: node.store.allow_mmap: false podTemplate: spec: volumes: - name: elasticsearch-data emptyDir: {} http: tls: selfSignedCertificate: disabled: true --- apiVersion: kibana.k8s.elastic.co/v1 kind: Kibana metadata: name: quickstart namespace: elastic-system spec: version: 8.17.0 count: 1 elasticsearchRef: name: quickstart config: xpack.fleet.packages: - name: apm version: latest http: tls: selfSignedCertificate: disabled: true --- apiVersion: apm.k8s.elastic.co/v1 kind: ApmServer metadata: name: apm-server-quickstart namespace: elastic-system spec: version: 8.17.0 count: 1 elasticsearchRef: name: quickstart kibanaRef: name: quickstart |
curl 创建service:
1 2 3 4 5 6 7 8 | curl --location 'https://localhost:8200/intake/v2/events' \ --header 'Content-Type: application/x-ndjson' \ --header 'Authorization: Bearer 392bn28wMP4L4aM3P6rmv6dI' \ --header 'Cookie: VWFSAG-Kons=!knMgwFOOCMw2kmEDY1p3h8a2VYcnK8X37vtPXx5KL+evPMnBgZsO/VHsdtEzhw9+TbK4ocPxIawXPKsgBQ8l1cbFBdk7WkXlu+1jPt1jFGY=' \ --data '{ "metadata" :{ "process" :{ "pid" :1234, "title" : "/usr/lib/jvm/java-10-openjdk-amd64/bin/java" , "ppid" :1, "argv" :[ "-v" ]}, "system" :{ "architecture" : "amd64" , "detected_hostname" : "8ec7ceb99074" , "configured_hostname" : "host1" , "platform" : "Linux" , "container" :{ "id" : "8ec7ceb990749e79b37f6dc6cd3628633618d6ce412553a552a0fa6b69419ad4" }, "kubernetes" :{ "namespace" : "default" , "pod" :{ "uid" : "b17f231da0ad128dc6c6c0b2e82f6f303d3893e3" , "name" : "instrumented-java-service" }, "node" :{ "name" : "node-name" }}}, "service" :{ "name" : "1234_service-12a35" , "version" : "4.3.0" , "node" :{ "configured_name" : "8ec7ceb990749e79b37f6dc6cd3628633618d6ce412553a552a0fa6b69419ad4" }, "environment" : "production" , "language" :{ "name" : "Java" , "version" : "10.0.2" }, "agent" :{ "version" : "1.10.0" , "name" : "java" , "ephemeral_id" : "e71be9ac-93b0-44b9-a997-5638f6ccfc36" }, "framework" :{ "name" : "spring" , "version" : "5.0.0" }, "runtime" :{ "name" : "Java" , "version" : "10.0.2" }}, "labels" :{ "group" : "experimental" , "ab_testing" : true , "segment" :5}}} { "span" :{ "timestamp" :1736489900820000, "type" : "external" , "subtype" : "http" , "id" : "1234567890aaaade" , "transaction_id" : "1234567890987654" , "trace_id" : "abcdef0123456789abcdef9876543210" , "parent_id" : "abcdef0123456789" , "action" : "connect" , "sync" : true , "name" : "GET users-authenticated" , "duration" :3.781912, "stacktrace" :[{ "filename" : "DispatcherServlet.java" , "lineno" :547},{ "function" : "render" , "abs_path" : "/tmp/AbstractView.java" , "filename" : "AbstractView.java" , "lineno" :547, "library_frame" : true , "vars" :{ "key" : "value" }, "module" : "org.springframework.web.servlet.view" , "colno" :4, "context_line" : "line3" }], "context" :{ "db" :{ "instance" : "customers" , "statement" : "SELECT * FROM product_types WHERE user_id = ?" , "type" : "sql" , "user" : "postgres" , "link" : "other.db.com" }, "http" :{ "url" : "http://localhost:8000" , "status_code" :302, "method" : "GET" , "response" :{ "status_code" :200, "transfer_size" :300, "encoded_body_size" :356, "decoded_body_size" :401, "headers" :{ "content-type" : "application/json" }}}, "service" :{ "name" : "opbeans-java-23" , "agent" :{ "version" : "1.10.0-SNAPSHOT" , "name" : "java" , "ephemeral_id" : "e71be9ac-93b0-44b9-a997-5638f6ccfc36" }}}}} ' |
气功波(18037675651)
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 10年+ .NET Coder 心语 ── 封装的思维:从隐藏、稳定开始理解其本质意义
· 地球OL攻略 —— 某应届生求职总结
· 提示词工程——AI应用必不可少的技术
· Open-Sora 2.0 重磅开源!
· 周边上新:园子的第一款马克杯温暖上架
2023-01-10 离线安装dotnet tool