This message was deleted.
# support
s
This message was deleted.
s
Did you use SigNoz k8s-infra chart?
s
yes with self hosted one
ingress metrics are captured from metrics server or prometheus ?
s
By prometheus, what annotation does ingress charts use?
s
Copy code
metrics:
        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: ""
i have not passed any annotations
so you mean, we need prometheus [dependency] for ingress dashboard chart ?
s
Not necessarily, you need to configure the Prometheus receiver to scrape these metrics. For example here https://github.com/SigNoz/charts/blob/d88212c0e33499ba9dd2117210191b364ad63ad9/charts/signoz/values.yaml#L2135-L2194 we collect all metrics annotated with
<http://signoz.io/scape|signoz.io/scape>: true
s
so without promtheus package, just with annotation in ingress charts... it can scrape the ingress logs right ?
https://github.com/SigNoz/charts/blob/d88212c0e33499ba9dd2117210191b364ad63ad9/charts/signoz/values.yaml#L2135-L2194 this is already there
Copy code
prometheus:
        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
note: now i added the annotation, no improvement
any help on this ?
s
Does your charts have the annotation set correctly because above you seem to have commented out them?
s
yes i have added this ->
<http://signoz.io/scape|signoz.io/scape>: true
can you confirm, what i did was right, 1. create k8s charts signoz 2. created ingress with annotation ->
<http://signoz.io/scape|signoz.io/scape>: true
3. added the dashboard json but after above steps it is not working
s
The steps seem correct. I am not sure what might be the issue here.
s
ok
112 Views