Docker Compose(profiles): Profiles Ingestion via Labels #51
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Added support for ingesting profiles and controlling the behavior of their ingestion through labels.
The following docker compose service labels are supported:
Profiles
The following service labels are supported for docker compose services:
profiles.agent.grafana.com/service_name
or
profiles.grafana.com/service_name
or
pyroscope.io/service_name
service_name
is required and must always be present. If it is not specified, will attempt to infer it from either of the following sources. in this order:__meta_docker_container_label_profiles_agent_grafana_com_service_name
which is aprofiles.agent.grafana.com/service_name
service label__meta_docker_container_label_profiles_grafana_com_service_name
which is aprofiles.grafana.com/service_name
service label__meta_docker_container_label_pyroscope_io_service_name
which is apyroscope.io/service_name
service label__meta_docker_container_name
profiles.agent.grafana.com/<profile-type>.scrape
or
profiles.grafana.com/<profile-type>.scrape
false
).profiles.agent.grafana.com/<profile-type>.path
or
profiles.grafana.com/<profile-type>.path
profiles.agent.grafana.com/tenant
or
profiles.grafana.com/tenant
tenant
to write profile to. default: (.*)profiles.agent.grafana.com/scheme
or
profiles.grafana.com/scheme
http
.profiles.agent.grafana.com/port
or
profiles.grafana.com/port
port
to scrape is the target port, this can be specified as a single value which would override the scrape port being used for all ports attached to the target, note that even if an target had multiple targets, the relabel_config targets are deduped before scrapingprofiles.agent.grafana.com/interval
or
profiles.grafana.com/interval
interval
to scrape is30s
, this can be override.profiles.agent.grafana.com/timeout
or
profiles.grafana.com/timeout
timeout
for scraping is15s
, this can be override.Metrics
See: #49
Logs
See: #47