Slackbot
01/23/2024, 10:26 AMSrikanth Chekuri
01/23/2024, 2:16 PMs mohamed
01/23/2024, 2:18 PMs mohamed
01/23/2024, 2:19 PMSrikanth Chekuri
01/23/2024, 2:21 PMs mohamed
01/23/2024, 2:23 PMmetrics:
port: 10254
portName: metrics
# if this port is changed, change healthz-port: in extraArgs: accordingly
enabled: false
service:
annotations: {}
# <http://prometheus.io/scrape|prometheus.io/scrape>: "true"
# <http://prometheus.io/port|prometheus.io/port>: "10254"
# -- Labels to be added to the metrics service resource
labels: {}
# clusterIP: ""
# -- List of IP addresses at which the stats-exporter service is available
## Ref: <https://kubernetes.io/docs/user-guide/services/#external-ips>
##
externalIPs: []
# loadBalancerIP: ""
loadBalancerSourceRanges: []
servicePort: 10254
type: ClusterIP
# externalTrafficPolicy: ""
# nodePort: ""
s mohamed
01/23/2024, 2:23 PMs mohamed
01/23/2024, 2:24 PMSrikanth Chekuri
01/23/2024, 2:41 PM<http://signoz.io/scape|signoz.io/scape>: true
s mohamed
01/23/2024, 2:45 PMs mohamed
01/23/2024, 2:51 PMprometheus:
config:
scrape_configs:
- job_name: generic-collector
kubernetes_sd_configs:
- role: pod
relabel_configs:
- action: keep
regex: true
source_labels:
- __meta_kubernetes_pod_annotation_signoz_io_scrape
- action: replace
regex: (.+)
source_labels:
- __meta_kubernetes_pod_annotation_signoz_io_path
target_label: __metrics_path__
- action: replace
separator: ':'
source_labels:
- __meta_kubernetes_pod_ip
- __meta_kubernetes_pod_annotation_signoz_io_port
target_label: __address__
- replacement: generic-collector
target_label: job_name
- action: replace
source_labels:
- __meta_kubernetes_pod_label_app_kubernetes_io_name
target_label: signoz_k8s_name
- action: replace
source_labels:
- __meta_kubernetes_pod_label_app_kubernetes_io_instance
target_label: signoz_k8s_instance
- action: replace
source_labels:
- __meta_kubernetes_pod_label_app_kubernetes_io_component
target_label: signoz_k8s_component
- action: replace
source_labels:
- __meta_kubernetes_namespace
target_label: k8s_namespace_name
- action: replace
source_labels:
- __meta_kubernetes_pod_name
target_label: k8s_pod_name
- action: replace
source_labels:
- __meta_kubernetes_pod_uid
target_label: k8s_pod_uid
- action: replace
source_labels:
- __meta_kubernetes_pod_container_name
target_label: k8s_container_name
- action: drop
regex: (.+)-init
source_labels:
- __meta_kubernetes_pod_container_name
- action: replace
source_labels:
- __meta_kubernetes_pod_node_name
target_label: k8s_node_name
- action: replace
source_labels:
- __meta_kubernetes_pod_ready
target_label: k8s_pod_ready
- action: replace
source_labels:
- __meta_kubernetes_pod_phase
target_label: k8s_pod_phase
scrape_interval: 60s
s mohamed
01/23/2024, 2:55 PMs mohamed
01/24/2024, 7:23 AMSrikanth Chekuri
01/24/2024, 5:54 PMs mohamed
01/24/2024, 6:19 PM<http://signoz.io/scape|signoz.io/scape>: true
s mohamed
01/24/2024, 6:22 PM<http://signoz.io/scape|signoz.io/scape>: true
3. added the dashboard json
but after above steps it is not workingSrikanth Chekuri
01/25/2024, 10:08 AMs mohamed
01/25/2024, 10:31 AM