Open CzyerChen opened 1 month ago
There is no net_host_name
or node_identifier_host_name
automatically added to labels
metric :Gauge(super=Metric(name=windows_service_status, labels={net_host_port=9182, job_name=windows-monitoring, name=wpnuserservice_152313, server_port=9182, http_scheme=http, service_instance_id=127.0.0.1:9182, url_scheme=http, status=starting}, timestamp=1721900262446), value=0.0)
Exporting failed when exporting data and hostname missing
Steps to reproduce
127.0.0.1:11800
receivers: prometheus: config: scrape_configs:
exporters: otlp: endpoint: 127.0.0.1:11800 tls: insecure: true insecure_skip_verify: true service: pipelines: metrics: receivers:
scrape from 127.0.0.1:9182,
and export to 127.0.0.1:11800
What did you expect to see?
export to gRpc port successfully and hostname can shown.
What did you see instead?
print many exporting failed logs, and no instance or hostname found.
What version did you use?
0.105.0
What config did you use?
Environment
Additional context
Maybe some security problems in win11 made hostname missing? If add labels
node_identifier_host_name: localhost
manually, it works fine.