Comments (5)
Scrape configs are identical to those of Prometheus, so yes, you can do this with kubernetes_sd_configs
: https://prometheus.io/docs/prometheus/latest/configuration/configuration/
from parca.
In my case, the metrics
url also exposes the /debug/pprof
urls which we are interested in.
Would that work with kubernetes_sd_configs
?
do you have a configuration example for parca ?
from parca.
Here's the config we use in production:
scrape_configs:
- job_name: pods
scrape_interval: "3s"
profiling_config:
pprof_config:
memory:
keep_sample_type:
- type: inuse_space
unit: bytes
process_cpu:
enabled: false
kubernetes_sd_configs:
- role: pod
selectors:
- role: pod
label: parca-scraping=true
relabel_configs:
- action: labelmap
regex: __meta_kubernetes_pod_label_app_kubernetes_io_(.+)
replacement: "app_kubernetes_io_$1"
- source_labels: [__meta_kubernetes_namespace]
action: replace
target_label: namespace
- source_labels: [__meta_kubernetes_pod_name]
action: replace
target_label: pod
- source_labels: [__meta_kubernetes_pod_container_name]
action: replace
target_label: container
This ignores pprof's CPU profiling since we already capture profiling data at lower overhead and higher resolution with Parca Agent as well as only keeps heap profiling data from memory profiles (everything else tends to be too expensive to ingest). For the keep_sample_type
configuration you will need to run a currently not yet released version like the container image ghcr.io/parca-dev/parca:main-1691672302-414b9271
.
from parca.
oh ok. I forgot to mention that I am not using the agent using because of lack of permissions on my cluster.
In similar cases as mine, do you think that it could make sense to have a support for headless services?
Or do you think that it is too much of an edge case ?
I would be interested in working on a PR with some guidance if the use case seems useful.
from parca.
By using role: endpoints
instead of role: pods
you can already discover targets via endpoints objects (which is what headless services create under the hood). Let me know if you need help putting together a config! Also always feel free to drop by on our Discord.
from parca.
Related Issues (20)
- Meticulous logo broken in README
- Symbols not found for rust application HOT 3
- bug: debuginfod logger never inited HOT 2
- `pkg/query`: Data races
- Support basic auth for parca grafana data sourse plugin
- memory usage of symbolizer's linerCache? HOT 4
- Profile has no samples HOT 4
- Rrelease 0.21.0 is missing binaries HOT 2
- [Question] Why a location shows different file/function line number at different timestamps?
- Istio support HOT 1
- Kubelet becomes unresponsive - Parca Server v0.21.0, EKS v1.28, Bottlerocket vLinux v6.1.77 HOT 1
- Support for postponing data transfer between agent and server HOT 1
- Improved Symbolizer HOT 1
- Write pprof downloads to object storage
- Clicking on binaries in the legend for the icicle graph sometimes doesn't highlight the actual data
- Tutorial for deploying parca isn't working - Parca agent keeps crashing HOT 4
- How to get additional profile types such as allocated memory and heap profiling in Parca UI HOT 3
- UI incrorrectly trims Build ID
- Getting batch write client failed to send profiles in Parca Agent Logs HOT 1
- Implement new FunctionFilter API to filter by function
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 parca.