Arye Halioua
11/05/2024, 9:38 PMk8s-infa
helm chart to add a receiver that will scrape prometheus metrics.
I use the k8s-infra helm chart as a subchart to my own chart and here are the values that I used:
k8s-infra:
global:
cloud: others
clusterName: aws-il
deploymentEnvironment: dev
otelCollectorEndpoint: signoz-otel-collector.obs.svc.cluster.local:4317
otelInsecure: true
presets:
otlpExporter:
enabled: true
loggingExporter:
enabled: false
otelAgent:
receivers:
otlp: # copied from k8s-infra values
protocols:
grpc:
endpoint: 0.0.0.0:4317
max_recv_msg_size_mib: 4
http:
endpoint: 0.0.0.0:4318
prometheus: # Added the Prometheus receiver
config:
global:
scrape_interval: 15s
scrape_configs:
- job_name: 'sessions-server'
static_configs:
- targets: [ 'hera-sessions-server:8000' ]
service:
pipelines:
metrics:
receivers: [otlp, prometheus] # added prometheus
processors: [batch]
exporters: [otlp]
the prometheus metrics are available on service:port hera-sessions-server:8000
as written in the targets field.
I see no errors about prometheus in the k8s-infra-otel-agent
pod.
I would expect my metrics to be available in the SigNoz UI when creating a new dashboard, but they are not.
Any information on how to troubleshoot this and get my own first metric into SigNoz would be greatly appreciated.Arye Halioua
11/06/2024, 12:38 PMk8s-infra:
global:
cloud: others
clusterName: aws-il
deploymentEnvironment: dev
otelCollectorEndpoint: signoz-otel-collector.obs.svc.cluster.local:4317
otelInsecure: true
presets:
otlpExporter:
enabled: true
loggingExporter:
enabled: false
otelAgent:
receivers:
otlp: # copied from k8s-infra values
protocols:
grpc:
endpoint: 0.0.0.0:4317
max_recv_msg_size_mib: 4
http:
endpoint: 0.0.0.0:4318
prometheus: # Added the Prometheus receiver
config:
global:
scrape_interval: 15s
scrape_configs:
- job_name: 'sessions-server'
static_configs:
- targets: [ 'hera-sessions-server:8000' ]
service:
pipelines:
metrics:
receivers: [otlp, prometheus] # added prometheus
processors: [batch]
exporters: [otlp]
clusterRole:
rules: # copied from k8s-infra, added PVs, PVCs ...
- apiGroups: [""]
resources:
- events
- namespaces
- namespaces/status
- nodes
- nodes/spec
- pods
- pods/status
- replicationcontrollers
- replicationcontrollers/status
- resourcequotas
- services
- persistentvolumes
- persistentvolumeclaims
- nodes/stats
- nodes/proxy
verbs: [ "get", "list", "watch" ]
- apiGroups: [ "apps" ]
resources: [ "daemonsets", "deployments", "replicasets", "statefulsets" ]
verbs: [ "get", "list", "watch" ]
- apiGroups: [ "extensions" ]
resources: [ "daemonsets", "deployments", "replicasets" ]
verbs: [ "get", "list", "watch" ]
- apiGroups: [ "batch" ]
resources: [ "jobs", "cronjobs" ]
verbs: [ "get", "list", "watch" ]
- apiGroups: [ "autoscaling" ]
resources: [ "horizontalpodautoscalers" ]
verbs: [ "get", "list", "watch" ]
Arye Halioua
11/06/2024, 3:42 PMSrikanth Chekuri
11/08/2024, 4:12 PMArye Halioua
11/09/2024, 4:40 PM