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

Logging Exporter doesn't log metrics details at 'debug' level #1107

Closed
nilebox opened this issue Jun 11, 2020 · 0 comments · Fixed by #1108
Closed

Logging Exporter doesn't log metrics details at 'debug' level #1107

nilebox opened this issue Jun 11, 2020 · 0 comments · Fixed by #1108
Labels
bug Something isn't working

Comments

@nilebox
Copy link
Member

nilebox commented Jun 11, 2020

Describe the bug
The loglevel: debug config parameter currently doesn't have any effect on metric logging.

Steps to reproduce
Configure collector with any metric receiver (e.g. self-observability Prometheus endpoint) and a logging exporter, e.g.:

receivers:
  prometheus:
    config:
      scrape_configs:
      - job_name: "test"
        scrape_interval: 60s
        static_configs:
        - targets: ["localhost:8888"]
exporters:
  logging:
    loglevel: debug
service:
  pipelines:
    metrics:
      receivers: [prometheus]
      exporters: [logging]

What did you expect to see?
Detailed log messages with metric descriptor

What did you see instead?
Only information at the "info" level with a number of data points

2020-06-11T14:10:08.693+1000	INFO	loggingexporter/logging_exporter.go:169	MetricsExporter	{"#metrics": 4}
2020-06-11T14:11:08.693+1000	INFO	loggingexporter/logging_exporter.go:169	MetricsExporter	{"#metrics": 4}
@nilebox nilebox added the bug Something isn't working label Jun 11, 2020
hughesjj pushed a commit to hughesjj/opentelemetry-collector that referenced this issue Apr 27, 2023
…emetry#1107)

Only select smart-agent monitors can be created via endpoints. This is
defined as a struct tag on the monitor configs "acceptsEndpoints". In
the case where we attempt to set Host/Port on a monitor that has it's
"acceptsEndpoints" value set to false, an error occurs and we do not
create the monitor.

This change would create the monitor but avoid setting the
Host/Port fields. This allows the receiver creator to
create any smart-agent monitor.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant