The Charm Store will undergo scheduled database maintenance on July 5, 2026 22:00 to July 6, 02:00 UTC. During this time, you may be unable to access charm and bundle metadata or publish updates. No user action is required and services will automatically resume once maintenance is complete.

Platform:

Channel Revision Published Runs on
1/stable 363 14 May 2025
Ubuntu 24.04 Ubuntu 22.04
1/stable 362 14 May 2025
Ubuntu 24.04 Ubuntu 22.04
1/candidate 363 14 May 2025
Ubuntu 24.04 Ubuntu 22.04
1/candidate 362 14 May 2025
Ubuntu 24.04 Ubuntu 22.04
1/beta 363 14 May 2025
Ubuntu 24.04 Ubuntu 22.04
1/beta 362 14 May 2025
Ubuntu 24.04 Ubuntu 22.04
1/edge 363 08 May 2025
Ubuntu 24.04 Ubuntu 22.04
1/edge 362 08 May 2025
Ubuntu 24.04 Ubuntu 22.04
dev/edge 389 30 Jun 2026
Ubuntu 26.04
2/stable 378 13 Nov 2025
Ubuntu 24.04
2/candidate 378 08 Oct 2025
Ubuntu 24.04
2/beta 378 31 Mar 2026
Ubuntu 24.04
2/edge 378 29 Aug 2025
Ubuntu 24.04
juju deploy parca-k8s --channel 1/stable

charms.parca_k8s.v0.parca_config

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)

def parca_command_line(
    http_address: str,
    app_config: dict
)

Generate a valid Parca command line.

Arguments

app_config

Charm configuration dictionary.

bin_path

Path to the Parca binary to be started.

config_path

Path to the Parca YAML configuration file.

profile_path

Path to profile storage directory.

path_prefix

Path prefix to configure parca server with. Must start with a /.

store_config

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