Implemented OTLP for the metrics crate to standardize metrics collection#191
Conversation
…reuse the function in metrics service
…map handling and added read_perf_buffer function
…ed imports. Added error handling in event listener
…esses vector is empty. Added comments and annotations
…_VETH). The shared map is used to store the veth names and the status (attached or not) during the startup
…e the tracked veths (pt.2)
….rs. Simplified buffers filling and buffer initialization
…ing opentelemetry sdk. added srtruct Metrics to group all the metrics in one place. added auxiliary functions record_network_metrics and record_timestamp_metrics. added exporter setting in buffer_type/read_network_metrics and buffer_type/read_timestamp_metrics
…the function in the common crate
… ConfigMap. Added updated image in the metrics.yaml with the new implementations
|
I'm unable to run metrics image here manifest for lorenzotettamanti/cortexflow-metrics:otel-test-1 { Manifest for lorenzotettamanti/cortexflow-identity:0.1.2 { could you please check it? |
|
@siddh34 I've tried to follow this discussion. I set the --provenance=false and the --sbom=false in the build command. The new image is this: lorenzotettamanti/cortexflow-metrics:otel-test-2 |
| containers: | ||
| - name: metrics | ||
| image: lorenzotettamanti/cortexflow-metrics:0.1.2-test12 | ||
| image: lorenzotettamanti/cortexflow-metrics:otel-test-1 |
There was a problem hiding this comment.
please replace with otel-test-2
it is working fine
|
@LorenzoTettamanti otel is working fine from metrics pod
from identity pod
from otel agent pod
|



Changes
Metrics:
Counter<u64>Counter<u64>net_metricsGauge<i64>sk_drops) from the kernel sock struct.Gauge<i64>sk_err) from the kernel sock struct.Histogram<u64>delta_usvalues supplied by thetime_stamp_eventsperf buffer.Histogram<u64>ts_usvalues seen in bothnet_metricsandtime_stamp_eventsTesting:
environment: minikube with --cni=cilium --driver= docker
metrics_image: lorenzotettamanti/cortexflow-metrics:otel-test-1
you should see a MetricsExporter in the otel-agent pod