Arye Halioua
10/25/2024, 1:27 PMfileloghostmetricsArye Halioua
10/25/2024, 1:28 PMapiVersion: apps/v1
kind: DaemonSet
metadata:
  name: otel-collector-metrics
spec:
  selector:
    matchLabels:
      name: otel-collector-metrics
  template:
    metadata:
      labels:
        name: otel-collector-metrics
    spec:
      containers:
        - name: otel-collector
          image: otel/opentelemetry-collector-contrib:0.111.0
          securityContext:
            privileged: true
          volumeMounts:
            - name: host-fs
              mountPath: /hostfs
              readOnly: true
            - name: otel-config-vol
              mountPath: /etc/otel-collector-config
          command:
            - "/otelcol-contrib"
            - "--config=/etc/otel-collector-config/otel-collector-config-metrics.yaml"
      volumes:
        - name: host-fs
          hostPath:
            path: /
            type: Directory
        - name: otel-config-vol
          configMap:
            name: otel-collector-config-metricsArye Halioua
10/25/2024, 1:30 PMapiVersion: v1
kind: ConfigMap
metadata:
  name: otel-collector-config-metrics
data:
  otel-collector-config-metrics.yaml: |
    receivers:
      hostmetrics:
        root_path: "/hostfs"
        collection_interval: 60s
        scrapers:
          cpu:
          memory:
          disk:
          filesystem:
          load:
          network:
          processes:
    
    processors:
      resource:
        attributes:
          - key: cluster_name
            value: "hera"
            action: insert
          - key: node_name
            from_attribute: KUBERNETES_NODE_NAME
            action: insert    
      batch:
        timeout: 10s
    
    exporters:
      otlp:
        endpoint: "hera-signoz-otel-collector:4317"
        tls:
          insecure: true
    
    service:
      telemetry:
        logs:
          level: "debug"
      pipelines:
        metrics:
          receivers: [hostmetrics]
          processors: [batch]
          exporters: [otlp]Arye Halioua
10/25/2024, 1:36 PMno dataSrikanth Chekuri
10/27/2024, 8:58 AMArye Halioua
10/27/2024, 10:16 AMinfo    internal/retry_sender.go:118    Exporting failed. Will retry the request after interval.        {"kind": "exporter", "data_type": "metrics", "name": "otlp", "error": "rpc error: code = DeadlineExceeded desc = context deadline exceeded", "interval": "7.092785582s"}Connectivity change to READY2024-10-27T09:57:17.717Z        info    service@v0.111.0/service.go:136 Setting up own telemetry...
2024-10-27T09:57:17.717Z        info    telemetry/metrics.go:70 Serving metrics {"address": "localhost:8888", "metrics level": "Normal"}
2024-10-27T09:57:17.717Z        debug   builders/builders.go:24 Stable component.       {"kind": "exporter", "data_type": "metrics", "name": "otlp"}
2024-10-27T09:57:17.718Z        debug   builders/builders.go:24 Beta component. May change in the future.       {"kind": "processor", "name": "batch", "pipeline": "metrics"}
2024-10-27T09:57:17.718Z        debug   builders/builders.go:24 Beta component. May change in the future.       {"kind": "receiver", "name": "hostmetrics", "data_type": "metrics"}
2024-10-27T09:57:17.720Z        info    service@v0.111.0/service.go:208 Starting otelcol-contrib...     {"Version": "0.111.0", "NumCPU": 8}
2024-10-27T09:57:17.720Z        info    extensions/extensions.go:39     Starting extensions...
2024-10-27T09:57:17.720Z        info    grpc@v1.67.1/clientconn.go:162  [core] original dial target is: "hera-signoz-otel-collector:4317" {"grpc_log": true}
2024-10-27T09:57:17.720Z        info    grpc@v1.67.1/clientconn.go:440  [core] [Channel #1]Channel created      {"grpc_log": true}
2024-10-27T09:57:17.720Z        info    grpc@v1.67.1/clientconn.go:193  [core] [Channel #1]parsed dial target is: resolver.Target{URL:url.U
RL{Scheme:"dns", Opaque:"", User:(*url.Userinfo)(nil), Host:"", Path:"/hera-signoz-otel-collector:4317", RawPath:"", OmitHost:false, ForceQ
uery:false, RawQuery:"", Fragment:"", RawFragment:""}}  {"grpc_log": true}
2024-10-27T09:57:17.720Z        info    grpc@v1.67.1/clientconn.go:194  [core] [Channel #1]Channel authority set to "hera-signoz-otel-collector:4317"      {"grpc_log": true}
2024-10-27T09:57:17.720Z        info    service@v0.111.0/service.go:234 Everything is ready. Begin running and processing data.
2024-10-27T09:57:27.721Z        info    grpc@v1.67.1/clientconn.go:345  [core] [Channel #1]Channel exiting idle mode    {"grpc_log": true}
2024-10-27T09:57:32.722Z        info    internal/retry_sender.go:118    Exporting failed. Will retry the request after interval.        {"k
ind": "exporter", "data_type": "metrics", "name": "otlp", "error": "rpc error: code = DeadlineExceeded desc = context deadline exceeded", "
interval": "7.092785582s"}
2024-10-27T09:57:35.732Z        info    dns/dns_resolver.go:246 [dns] dns: SRV record lookup error: lookup _grpclb._tcp.hera-signoz-otel-collector on 10.43.0.10:53: server misbehaving    {"grpc_log": true}
2024-10-27T09:57:43.742Z        info    grpc@v1.67.1/resolver_wrapper.go:200    [core] [Channel #1]Resolver state updated: {
  "Addresses": [
    {
      "Addr": "10.43.17.7:4317",
      "ServerName": "",
      "Attributes": null,
      "BalancerAttributes": null,
      "Metadata": null
    }
  ],
  "Endpoints": [
    {
      "Addresses": [
        {
          "Addr": "10.43.17.7:4317",
          "ServerName": "",
          "Attributes": null,
          "BalancerAttributes": null,
          "Metadata": null
        }
      ],
      "Attributes": null
    }
  ],
  "ServiceConfig": null,
  "Attributes": null
} (resolver returned new addresses)     {"grpc_log": true}
2024-10-27T09:57:43.742Z        info    grpc@v1.67.1/balancer_wrapper.go:107    [core] [Channel #1]Channel switches to new LB policy "pick_
first"  {"grpc_log": true}
2024-10-27T09:57:43.743Z        info    gracefulswitch/gracefulswitch.go:193    [pick-first-lb] [pick-first-lb 0xc002ebea50] Received new c
onfig {
  "shuffleAddressList": false
}, resolver state {
  "Addresses": [
    {
      "Addr": "10.43.17.7:4317",                                                                                                           
      "ServerName": "",                                                                                                                    
      "Attributes": null,                                                                                                                  
      "BalancerAttributes": null,                                                                                                          
      "Metadata": null                                                                                                                     
    }                                                                                                                                      
  ],                                                                                                                                       
  "Endpoints": [                                                                                                                           
    {                                                                                                                                      
      "Addresses": [                                                                                                                       
        {                                                                                                                                  
          "Addr": "10.43.17.7:4317",                                                                                                       
          "ServerName": "",                                                                                                                
          "Attributes": null,
          "BalancerAttributes": null,
          "Metadata": null
        }
      ],
      "Attributes": null
    }
  ],
  "ServiceConfig": null,
  "Attributes": null
}       {"grpc_log": true}
2024-10-27T09:57:43.743Z        info    grpc@v1.67.1/balancer_wrapper.go:180    [core] [Channel #1 SubChannel #2]Subchannel created     {"g
rpc_log": true}
2024-10-27T09:57:43.743Z        info    grpc@v1.67.1/clientconn.go:544  [core] [Channel #1]Channel Connectivity change to CONNECTING    {"g
rpc_log": true}
2024-10-27T09:57:43.743Z        info    grpc@v1.67.1/clientconn.go:1199 [core] [Channel #1 SubChannel #2]Subchannel Connectivity change to
CONNECTING      {"grpc_log": true}
2024-10-27T09:57:43.743Z        info    grpc@v1.67.1/clientconn.go:1317 [core] [Channel #1 SubChannel #2]Subchannel picks a new address "10
.43.17.7:4317" to connect       {"grpc_log": true}
2024-10-27T09:57:43.744Z        info    pickfirst/pickfirst.go:176      [pick-first-lb] [pick-first-lb 0xc002ebea50] Received SubConn state
 update: 0xc002ebeae0, {ConnectivityState:CONNECTING ConnectionError:<nil> connectedAddress:{Addr: ServerName: Attributes:<nil> BalancerAtt
ributes:<nil> Metadata:<nil>}}  {"grpc_log": true}
2024-10-27T09:57:43.754Z        info    grpc@v1.67.1/clientconn.go:1199 [core] [Channel #1 SubChannel #2]Subchannel Connectivity change to 
READY   {"grpc_log": true}
2024-10-27T09:57:43.754Z        info    pickfirst/pickfirst.go:176      [pick-first-lb] [pick-first-lb 0xc002ebea50] Received SubConn state
 update: 0xc002ebeae0, {ConnectivityState:READY ConnectionError:<nil> connectedAddress:{Addr:10.43.17.7:4317 ServerName:hera-signoz-otel-collector:4317 Attributes:<nil>BalancerAttributes:<nil> Metadata:<nil>}} {"grpc_log": true}
2024-10-27T09:57:43.755Z        info    grpc@v1.67.1/clientconn.go:544  [core] [Channel #1]Channel Connectivity change to READY {"grpc_log"
: true}Srikanth Chekuri
10/27/2024, 10:31 AMArye Halioua
10/27/2024, 10:32 AMArye Halioua
10/27/2024, 4:13 PMprocessors:
      batch:
        timeout: 120sSrikanth Chekuri
10/27/2024, 4:27 PMArye Halioua
10/27/2024, 4:35 PMcluster_namenode_namethe hostmetrics generated do not have k8s_* the attributes.Could you please clarify that sentence?
Srikanth Chekuri
10/27/2024, 4:36 PMArye Halioua
10/27/2024, 4:45 PMglobal:
  cloud: others
  clusterName: <CLUSTER_NAME>
  deploymentEnvironment: <DEPLOYMENT_ENVIRONMENT>
otelCollectorEndpoint: ingest.{region}.signoz.cloud:443
otelInsecure: false
signozApiKey: <SIGNOZ_INGESTION_KEY>
presets:
  otlpExporter:
    enabled: true
  loggingExporter:
    enabled: falseotelCollectorEndpointsignozApiKeySrikanth Chekuri
10/27/2024, 4:46 PMSrikanth Chekuri
10/27/2024, 4:47 PMArye Halioua
10/27/2024, 4:48 PMSrikanth Chekuri
10/27/2024, 4:50 PMArye Halioua
10/27/2024, 4:56 PMK8s-Infraself-hostSigNoz is an open-source APM. It helps developers monitor their applications & troubleshoot problems, an open-source alternative to DataDog, NewRelic, etc.
Powered by