Comments (2)
Got it. Works as expected now. Thanks for the detailed answer.
from pyroscope.
Filtering rules in the relabel
section should be adjusted. Your configuration basically says that only .*/grafana-agent
executables are getting profiled. With python, it probably makes sense to inspect __meta_process_commandline
field instead, like this:
discovery.relabel "agent" {
targets = discovery.process.all.targets
// Filter needed processes
rule {
source_labels = ["__meta_process_commandline"]
regex = ".*run_forever\.py.*"
action = "keep"
}
}
More about the available fields: https://grafana.com/docs/agent/latest/flow/reference/components/discovery.process/#exported-fields
Also, you don't need to put PID to pyroscope.scrape
:
pyroscope.scrape "local" {
forward_to = [pyroscope.write.endpoint.receiver]
targets = [
{"__address__" = "localhost:12345", "service_name" = "test_profile"},
]
}
Moreover, if you don't want to profile agent (via scraping), you don't need this section.
from pyroscope.
Related Issues (20)
- Multi-tenant Query Support
- Service analytics
- [DOC] Update the SDKs and supported profile types table to make info easier to find
- How run pyroscope agent with IIS HOT 4
- Improve symbols partitioning heuristics
- use pyroscope with .net app and IIS
- Row buffering prevents asynchronous symbols fetching
- ebpf(python): does not work with memory swapping enabled nicely
- ebpf improvements ideas
- Improve developer experience with ebpf testdata HOT 4
- [DOC] Update Pyroscope for Agent > Alloy HOT 1
- [DOC] Update Cloud Profiles docs for Agent > Alloy
- Helm: Update from the agent helm chart to the alloy one HOT 1
- Doesn't work with Python3.12 HOT 1
- Trace exemplars HOT 1
- Memory allocation profiling in .NET HOT 7
- [pyro UI] Tags don't work as expected
- Fail to run alloy to pull profiles HOT 1
- Reduce confusion with profile types in Pyroscope HOT 1
- Panic during Ad Hoc profile upload
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pyroscope.