Skip to content

Elastic, kibana and APM#47

Draft
AmbtenaarInFunctie wants to merge 1 commit into
mainfrom
feature/elastic-setup
Draft

Elastic, kibana and APM#47
AmbtenaarInFunctie wants to merge 1 commit into
mainfrom
feature/elastic-setup

Conversation

@AmbtenaarInFunctie

Copy link
Copy Markdown
Collaborator

small start to roll out elastic/kibana and provision apm servers to projects

@AmbtenaarInFunctie AmbtenaarInFunctie marked this pull request as draft April 10, 2026 10:50
Comment thread provision_apm_user.py
api_key_id = data["id"]
api_key_secret = data["api_key"]
encoded_key = data.get("encoded") or base64.b64encode(f"{api_key_id}:{api_key_secret}".encode()).decode()
print(f"APM agent key created: {api_key_id}")
Comment thread provision_apm_user.py

try:
subprocess.run(["kubectl", "apply", "-f", manifest_file], check=True, capture_output=True)
print(f"Kubernetes secret created: {secret_name} in namespace {namespace}")
Comment thread provision_apm_user.py

manifest_file = f"apm-server-{username}.yaml"
with open(manifest_file, "w") as f:
f.write(manifest)
Comment thread provision_apm_user.py
print(f"\nProvisioning complete!\n")
print("User Credentials:")
print(f"Username: {username}")
print(f"Password: {password}")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants