Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
apache
SkyWalking
提交
5ba8f002
S
SkyWalking
项目概览
apache
/
SkyWalking
上一次同步 1 年多
通知
302
Star
21345
Fork
6091
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
S
SkyWalking
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
未验证
提交
5ba8f002
编写于
4月 10, 2021
作者:
W
wankai123
提交者:
GitHub
4月 10, 2021
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Doc: Polish k8s monitoring otel-collector configuration example. (#6722)
上级
17e820f1
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
11 addition
and
41 deletion
+11
-41
CHANGES.md
CHANGES.md
+1
-0
docs/en/setup/backend/otel-collector-config.yaml
docs/en/setup/backend/otel-collector-config.yaml
+10
-41
未找到文件。
CHANGES.md
浏览文件 @
5ba8f002
...
@@ -17,6 +17,7 @@ Release Notes.
...
@@ -17,6 +17,7 @@ Release Notes.
#### Documentation
#### Documentation
*
Polish k8s monitoring otel-collector configuration example.
All issues and pull requests are
[
here
](
https://github.com/apache/skywalking/milestone/84?closed=1
)
All issues and pull requests are
[
here
](
https://github.com/apache/skywalking/milestone/84?closed=1
)
...
...
docs/en/setup/backend/otel-collector-config.yaml
浏览文件 @
5ba8f002
...
@@ -30,9 +30,8 @@ data:
...
@@ -30,9 +30,8 @@ data:
scrape_interval: 15s
scrape_interval: 15s
evaluation_interval: 15s
evaluation_interval: 15s
scrape_configs:
scrape_configs:
- job_name: 'kubernetes-cadvisor'
- job_name: 'kubernetes-cadvisor'
scheme: https
scheme: https
metrics_path: /metrics/cadvisor
tls_config:
tls_config:
ca_file: /var/run/secrets/kubernetes.io/serviceaccount/ca.crt
ca_file: /var/run/secrets/kubernetes.io/serviceaccount/ca.crt
bearer_token_file: /var/run/secrets/kubernetes.io/serviceaccount/token
bearer_token_file: /var/run/secrets/kubernetes.io/serviceaccount/token
...
@@ -41,9 +40,15 @@ data:
...
@@ -41,9 +40,15 @@ data:
relabel_configs:
relabel_configs:
- action: labelmap
- action: labelmap
regex: __meta_kubernetes_node_label_(.+)
regex: __meta_kubernetes_node_label_(.+)
- source_labels: []
- source_labels: []
# relabel the cluster name
target_label: cluster
# relabel the cluster name
target_label: cluster
replacement: gke-cluster-1
replacement: gke-cluster-1
- target_label: __address__
replacement: kubernetes.default.svc:443
- source_labels: [__meta_kubernetes_node_name]
regex: (.+)
target_label: __metrics_path__
replacement: /api/v1/nodes/$${1}/proxy/metrics/cadvisor
- source_labels: [instance] # relabel the node name
- source_labels: [instance] # relabel the node name
separator: ;
separator: ;
regex: (.+)
regex: (.+)
...
@@ -160,40 +165,4 @@ spec:
...
@@ -160,40 +165,4 @@ spec:
items
:
items
:
-
key
:
otel-collector-config
-
key
:
otel-collector-config
path
:
otel-collector-config.yaml
path
:
otel-collector-config.yaml
name
:
otel-collector-config-vol
name
:
otel-collector-config-vol
\ No newline at end of file
---
apiVersion
:
rbac.authorization.k8s.io/v1
kind
:
ClusterRole
metadata
:
name
:
otel-collector
rules
:
-
apiGroups
:
[
"
"
]
resources
:
-
nodes
-
nodes/proxy
-
nodes/metrics
-
services
-
endpoints
-
pods
verbs
:
[
"
get"
,
"
list"
,
"
watch"
]
-
apiGroups
:
-
extensions
resources
:
-
ingresses
verbs
:
[
"
get"
,
"
list"
,
"
watch"
]
-
nonResourceURLs
:
[
"
/metrics"
]
verbs
:
[
"
get"
]
---
apiVersion
:
rbac.authorization.k8s.io/v1
kind
:
ClusterRoleBinding
metadata
:
name
:
otel-collector
roleRef
:
apiGroup
:
rbac.authorization.k8s.io
kind
:
ClusterRole
name
:
otel-collector
subjects
:
-
kind
:
ServiceAccount
name
:
default
namespace
:
monitoring
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录