Parca
- Canonical Observability
Channel | Revision | Published | Runs on |
---|---|---|---|
latest/stable | 299 | 18 Sep 2024 | |
latest/stable | 248 | 14 Sep 2023 | |
latest/beta | 24 | 29 Feb 2024 | |
latest/beta | 276 | 29 Feb 2024 | |
latest/edge | 315 | 15 Jan 2025 | |
latest/edge | 298 | 29 Jul 2024 | |
latest/edge | 24 | 09 Sep 2022 |
juju deploy parca-k8s
Deploy Kubernetes operators easily with Juju, the Universal Operator Lifecycle Manager. Need a Kubernetes cluster? Install MicroK8s to create a full CNCF-certified Kubernetes system in under 60 seconds.
Platform:
charms.parca_k8s.v0.parca_config
-
- Last updated Yesterday
- Revision Library version 0.3
Helpers for generating Parca configuration.
This library is used for generating YAML configuration files for Parca, the continuous profiling tool. More information about Parca can be found at https://www.parca.dev/.
You can use this library as follows:
from charms.parca_k8s.v0.parca_config import ParcaConfig, parca_command_line
# Generate a Parca config and get the dictionary representation
config = ParcaConfig().to_dict()
# Get the YAML representation of the config
yaml_config = str(ParcaConfig())
# Generate a command line to start Parca (pass the Parca charm config)
cmd = parca_command_line(app_config)
Index
def
parca_command_line(
http_address: str,
app_config: dict
)
Generate a valid Parca command line.
Arguments
Charm configuration dictionary.
Path to the Parca binary to be started.
Path to the Parca YAML configuration file.
Path to profile storage directory.
Path prefix to configure parca server with. Must start with a /
.
Configuration to send profiles to a remote store
def parse_version(vstr: str)
Description
Parse the output of 'parca --version' and return a representative string. None
class ParcaConfig
Description
Class representing the Parca config file. None
Methods
ParcaConfig. __init__( self , scrape_configs )
ParcaConfig. to_dict( self )
Description
Return the Parca config as a Python dictionary. None
ParcaConfig. __str__( self )
Description
Return the Parca config as a YAML string. None