Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: adding hostmetrics receiver for otel and jeager tracing and metrics added for spdk using go otel sdk #155

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

mohamedasifs123
Copy link

@mohamedasifs123 mohamedasifs123 commented Dec 11, 2024

for hostmetrics
Fixes #11

curl --fail http://127.0.0.1:9091/api/v1/query?query=system_processes_count | grep system_processes_count
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   761  100   761    0     0   242k      0 --:--:-- --:--:-- --:--:--  247k
{"status":"success","data":{"resultType":"vector","result":[{"metric":{"__name__":"system_processes_count","instance":"otel-gw-collector:8889","job":"otel-collector","label1":"value1","status":"blocked"},"value":[1733897303.800,"0"]},{"metric":{"__name__":"system_processes_count","instance":"otel-gw-collector:8889","job":"otel-collector","label1":"value1","status":"running"},"value":[1733897303.800,"1"]},{"metric":{"__name__":"system_processes_count","instance":"otel-gw-collector:8889","job":"otel-collector","label1":"value1","status":"sleeping"},"value":[1733897303.800,"1"]},{"metric":{"__name__":"system_processes_count","instance":"otel-gw-collector:8889","job":"otel-collector","label1":"value1","status":"unknown"},"value":[1733897303.800,"476"]}]}}

for spdk prometheus

curl --fail http://127.0.0.1:9091/api/v1/query?query=spdk_bdev_bytes_read_total | grep spdk_bdev_bytes_read_total
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   496  100   496    0     0  34853      0 --:--:-- --:--:-- --:--:-- 35428
{"status":"success","data":{"resultType":"vector","result":[{"metric":{"__name__":"spdk_bdev_bytes_read_total","bdev_name":"Malloc0","exported_job":"spdk-client","instance":"otel-gw-collector:8889","job":"otel-collector","label1":"value1"},"value":[1733923803.662,"28274688"]},{"metric":{"__name__":"spdk_bdev_bytes_read_total","bdev_name":"Malloc1","exported_job":"spdk-client","instance":"otel-gw-collector:8889","job":"otel-collector","label1":"value1"},"value":[1733923803.662,"28274688"]}]}}

for jeager tracing

  curl "http://127.0.0.1:16686/api/traces?service=spdk-client&limit=1"
{"data":[{"traceID":"e79333760fbae5a8418e9c21dedfa1fd","spans":[{"traceID":"e79333760fbae5a8418e9c21dedfa1fd","spanID":"694ac754c79f7486","operationName":"HTTP POST","references":[{"refType":"CHILD_OF","traceID":"e79333760fbae5a8418e9c21dedfa1fd","spanID":"061c408629c0a0e2"}],"startTime":1733923888468214,"duration":8557,"tags":[{"key":"http.method","type":"string","value":"POST"},{"key":"http.request_content_length","type":"int64","value":37},{"key":"http.status_code","type":"int64","value":200},{"key":"http.url","type":"string","value":"http://spdk:9009"},{"key":"internal.span.format","type":"string","value":"otlp"},{"key":"net.peer.name","type":"string","value":"spdk"},{"key":"net.peer.port","type":"int64","value":9009},{"key":"otel.scope.name","type":"string","value":"go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp"},{"key":"otel.scope.version","type":"string","value":"0.57.0"},{"key":"span.kind","type":"string","value":"client"}],"logs":[],"processID":"p1","warnings":null},{"traceID":"e79333760fbae5a8418e9c21dedfa1fd","spanID":"061c408629c0a0e2","operationName":"FetchSPDKMetrics","references":[],"startTime":1733923888468031,"duration":8867,"tags":[{"key":"internal.span.format","type":"string","value":"otlp"},{"key":"otel.scope.name","type":"string","value":"spdk-client"},{"key":"span.kind","type":"string","value":"internal"}],"logs":[],"processID":"p1","warnings":null}],"processes":{"p1":{"serviceName":"spdk-client","tags":[]}},"warnings":null}],"total":0,"limit":0,"offset":0,"errors":null}

Signed-off-by: mohamedasifs123 <asifabu272@gmail.com>
@mohamedasifs123 mohamedasifs123 requested a review from a team as a code owner December 11, 2024 06:08
Signed-off-by: mohamedasifs123 <asifabu272@gmail.com>
@mohamedasifs123 mohamedasifs123 changed the title feat: adding hostmetrics receiver for otel feat: adding hostmetrics receiver for otel and jeager tracing and metrics added for spdk using go otel sdk Dec 11, 2024
Signed-off-by: mohamedasifs123 <asifabu272@gmail.com>
Signed-off-by: mohamedasifs123 <asifabu272@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

migrate telegraf to host metrics otel receiver
1 participant