grafana / pyroscope

Continuous Profiling Platform. Debug performance issues down to a single line of code
https://grafana.com/oss/pyroscope/
GNU Affero General Public License v3.0
9.65k stars 576 forks source link

Fail to run alloy to pull profiles #3317

Closed woodliu closed 1 month ago

woodliu commented 1 month ago

Describe the bug

I follow this doc to start a pull mode to scrape app profile and send to a local pyroscope. But the Alloy report the error as:


ts=2024-05-27T02:53:41.875785Z level=warn msg="final error sending to profiles to endpoint" component_path=/ component_id=pyroscope.write.staging endpoint=http://localhost:4040 err="invalid_argument: proto: Profile: wiretype end group for non-group"
ts=2024-05-27T02:53:41.876301Z level=error msg="push failed" component_path=/ component_id=pyroscope.scrape.default scrape_pool=pyroscope.scrape.default labels="{instance=\"localhost:8000\", service_name=\"webtest\"}" err="1 error occurred:\n\t* invalid_argument: proto: Profile: wiretype end group for non-group\n\n"
ts=2024-05-27T02:53:46.345786Z level=warn msg="failed to push to endpoint" component_path=/ component_id=pyroscope.write.staging endpoint=http://localhost:4040 err="invalid_argument: proto: Profile: wiretype end group for non-group"

To Reproduce

Follow the pull mode doc.

Expected behavior

The profiles should send the pyroscpe

Environment

The pyroscope start as docker, and Alloy is start as binary. The Env is macos 14.5 (23F79)

Additional Context

woodliu commented 1 month ago

I didn't expose pprof endpoint