Skip to content

Commit 1865ea0

Browse files
committed
improvements
1 parent 697d936 commit 1865ea0

File tree

3 files changed

+36
-24
lines changed

3 files changed

+36
-24
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
kind: ConfigMap
2+
apiVersion: v1
3+
data:
4+
prometheus-config: |-
5+
scrape_configs:
6+
- job_name: ama-logs-daemonset
7+
kubernetes_sd_configs:
8+
- role: pod
9+
relabel_configs:
10+
- source_labels: [__meta_kubernetes_pod_controller_kind]
11+
action: keep
12+
regex: 'DaemonSet'
13+
- source_labels: [__meta_kubernetes_pod_controller_name]
14+
regex: ^(ama-logs|ama-logs-windows)$
15+
action: keep
16+
- source_labels: [__address__]
17+
action: replace
18+
target_label: __address__
19+
regex: (.+?)(\:\d+)?
20+
replacement: $1:9102
21+
- source_labels: [__meta_kubernetes_pod_name]
22+
action: replace
23+
target_label: instance
24+
- source_labels: [__meta_kubernetes_pod_node_name]
25+
action: replace
26+
target_label: node
27+
- source_labels: [__meta_kubernetes_pod_node_name]
28+
action: keep
29+
regex: $NODE_NAME
30+
metadata:
31+
name: ama-metrics-prometheus-config-node
32+
namespace: kube-system

Documentation/MultiTenancyLogging/ama-metrics-prometheus-config.yaml

-21
Original file line numberDiff line numberDiff line change
@@ -3,27 +3,6 @@ apiVersion: v1
33
data:
44
prometheus-config: |-
55
scrape_configs:
6-
- job_name: ama-logs-daemonset
7-
kubernetes_sd_configs:
8-
- role: pod
9-
relabel_configs:
10-
- source_labels: [__meta_kubernetes_pod_controller_kind]
11-
action: keep
12-
regex: 'DaemonSet'
13-
- source_labels: [__meta_kubernetes_pod_controller_name]
14-
regex: ^(ama-logs|ama-logs-windows)$
15-
action: keep
16-
- source_labels: [__address__]
17-
action: replace
18-
target_label: __address__
19-
regex: (.+?)(\:\d+)?
20-
replacement: $1:9102
21-
- source_labels: [__meta_kubernetes_pod_name]
22-
action: replace
23-
target_label: instance
24-
- source_labels: [__meta_kubernetes_pod_node_name]
25-
action: replace
26-
target_label: node
276
- job_name: ama-logs-multitenancy
287
kubernetes_sd_configs:
298
- role: pod

kubernetes/container-azm-ms-agentconfig.yaml

+4-3
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,14 @@ data:
1414
[log_collection_settings]
1515
## This feature in private preview and not ready for production use,please reach out us to try out this feature.
1616
# [log_collection_settings.multi_tenancy]
17-
# # High log scale MUST be enabled to use this feature. Refer to https://aka.ms/cihsmode for more details on high log scale mode
17+
## High log scale MUST be enabled to use this feature. Refer to https://aka.ms/cihsmode for more details on high log scale mode
1818
# enabled = true
1919
# disable_fallback_ingestion = false # by default fallback ingestion to default container insights extension DCR is enabled
2020
### Below advanced settings MUST be provided when ama-logs-multitenancy service deployed through AKS Monitoring Addon
21+
### Advanced mode recommened when the log scale more than the 50K logs/sec per node
2122
## advanced_mode_enabled = false # Default value is false
22-
## namespaces = ["app-team-1","app-team-2"]
23-
## namespace_settings = ["app-team-1:throttle_rate=2000","app-team-2:throttle_rate=5000"]
23+
## namespaces = ["app-team-1","app-team-2"] # All namespaces MUST be provided when advanced_mode_enabled is set to true since there will be separate fluent-bit plugins for each namespace
24+
## namespace_settings = ["app-team-1:throttle_rate=2000","app-team-2:throttle_rate=5000"] # optional settings for each namespace if the default settings are not sufficient
2425
2526
[log_collection_settings.stdout]
2627
# In the absense of this configmap, default value for enabled is true

0 commit comments

Comments
 (0)