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

Add target_info metric defaults and include in prometheus exporter #1017

Open
vordimous opened this issue May 9, 2024 · 0 comments
Open
Labels
story Feature description from user's perspective

Comments

@vordimous
Copy link
Contributor

Describe the desired outcome from the user's perspective
As a System Obervibility admin, I want to see details about services in the standard target_info metric format. The more information about he running service I have the better. I expect this will be a standard metric across any exporter of metrics. I will need to disable target_info specifically if my metrics are exposed publicly.

Acceptance criteria

  • include target_info in exported Prometheus metrics
  • Allow target_info to be disabled without disabling all metrics
  • Map telemetry attributes to the target_info metric

Additional context
OTEL Resources
Open Metrics target metadata

example metrics:

target_info{job="frontend-proxy", docker_cli_cobra_command_path="docker%20compose"}

target_info{redis_version="7.2.4"}

target_info{job="recommendationservice", telemetry_sdk_language="python", telemetry_sdk_name="opentelemetry", telemetry_sdk_version="1.22.0", docker_cli_cobra_command_path="docker compose", telemetry_auto_version="0.43b0"}

target_info{host_name="acbd472d7dae", job="adservice", os_description="Linux 6.6.22-linuxkit", os_type="linux", process_runtime_version="21.0.3+9-LTS", telemetry_sdk_language="java", telemetry_sdk_name="opentelemetry", telemetry_sdk_version="1.37.0", container_id="acbd472d7dae32e860184202b1bc03f23228e132347eb8c36b7777658bab9d49", docker_cli_cobra_command_path="docker compose", host_arch="aarch64", instance="45b48f58-7122-44c9-a156-84d8890116dc", process_command_line="/opt/java/openjdk/bin/java -javaagent:/usr/src/app/opentelemetry-javaagent.jar oteldemo.AdService", process_executable_path="/opt/java/openjdk/bin/java", process_pid="1", process_runtime_description="Eclipse Adoptium OpenJDK 64-Bit Server VM 21.0.3+9-LTS", process_runtime_name="OpenJDK Runtime Environment", telemetry_distro_name="opentelemetry-java-instrumentation", telemetry_distro_version="2.3.0"}

target_info{host_name="0ec93045bb97", job="frontend", os_type="linux", process_runtime_version="18.20.2", telemetry_sdk_language="nodejs", telemetry_sdk_name="opentelemetry", telemetry_sdk_version="1.18.1", docker_cli_cobra_command_path="docker compose", host_arch="arm64", process_executable_path="/usr/local/bin/node", process_pid="16", process_runtime_description="Node.js", process_runtime_name="nodejs", process_command_args="["/usr/local/bin/node","--require","./Instrumentation.js","/app/server.js"]", process_executable_name="node", process_owner="nextjs", os_version="6.6.22-linuxkit", process_command="/app/server.js"}
@vordimous vordimous added the story Feature description from user's perspective label May 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
story Feature description from user's perspective
Projects
None yet
Development

No branches or pull requests

1 participant