🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

github.com/mattermost/community-continuous-profiling

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/mattermost/community-continuous-profiling

v0.0.0-20210928084146-28cdaac16f9e
Source
Go
Version published
Created
Source

Mattermost Community Continuous Profiling

Mattermost community continuous profiling tool is a microservice designed to work as part of a k8s cronjob that runs cpu and memory profiles for Mattermost community (or any other Mattermost installation) and posts in a Mattermost channel.

Environment Variables

The following environment variables need to be exported for the microservice to work:

  • UPLOAD_API_URL: This is the API url that should be used for the profiling attachment uploads. For example http://community:8065/api/v4/files. More information on Mattermost files API call can be found here.

  • POST_API_URL: This is the API url that should be used for the profiling attachment posts. For example http://community:8065/api/v4/posts. More information on Mattermost posts API call can be found here.

  • MATTERMOST_DEPLOYMENTS: The k8s deployments that profiling will be run against their pods. For example community, community-release

  • MATTERMOST_NAMESPACE: The namespace of the Mattermost deployments. Each profiling job can run against one namespace only.

  • PROFILING_TIME: How long the CPU profiling should run for. For example 30 for 30 seconds.

  • CHANNEL_ID: The ID of the channel that the microservice should post the profiles. It is best to keep this in a k8s secret.

  • TOKEN: The Token for the Mattermost Bot that will authenticate and upload/post the profile attachments. It is best to keep this in a k8s secret. More information on Mattermost bots can be found here.

  • DEVELOPER_MODE(Optional): When set to true local k8s config is used for developing purposes

FAQs

Package last updated on 28 Sep 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts