onpremise
systemd-utils
Our great sponsors
onpremise | systemd-utils | |
---|---|---|
1 | 2 | |
5,303 | 85 | |
- | - | |
8.6 | 3.2 | |
over 1 year ago | over 2 years ago | |
Shell | Python | |
GNU General Public License v3.0 or later | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
onpremise
-
Spin up EC2 instance, install a tool, run a command, download result, destroy the instance.
Here is some sample code that starts an EC2 Instance with a startup script. You can also set a timer and destroy the instance. Note the userData.addCommands which will run the first time an instance starts up. Also note init: CloudFormationInit.fromConfigSets({ which runs every time the instance starts or reboots.: userData.addCommands( 'sudo -s', 'apt-get update -y', 'apt-get install -y git awscli ec2-instance-connect', 'until git clone https://github.com/aws-quickstart/quickstart-linux-utilities.git; do echo "Retrying"; done', 'cd quickstart-linux-utilities/', 'source quickstart-cfn-tools.source', 'qs_update-os || qs_err', 'qs_bootstrap_pip || qs_err', 'qs_aws-cfn-bootstrap || qs_err', 'mkdir -p /opt/aws/bin', 'ln -s /usr/local/bin/cfn-* /opt/aws/bin/', `apt-get update && apt-get install -y \ apt-transport-https \ ca-certificates \ curl \ gnupg \ lsb-release`, 'curl -fsSL https://download.docker.com/linux/ubuntu/gpg | gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg && \ echo "deb [arch=amd64 signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu \ $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null', 'apt-get update && \ apt-get install -y docker-ce docker-ce-cli containerd.io', 'curl -L "https://github.com/docker/compose/releases/download/1.29.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose', 'chmod +x /usr/local/bin/docker-compose', 'cd .. && git clone https://github.com/getsentry/onpremise.git', 'cd onpremise/ && ./install.sh --no-user-prompt' ) /** * Disk drive */ const rootVolume: BlockDevice = { deviceName: '/dev/sda1', volume: BlockDeviceVolume.ebs(50) } /** * EC2 instance */ this.sentryInstance = new Instance(this, 'HubsSentryIO', { vpc: this.loggingVpc, securityGroup: sentrySG, allowAllOutbound: false, instanceName: 'HubsSentryIO', instanceType: InstanceType.of( InstanceClass.BURSTABLE3, InstanceSize.LARGE ), resourceSignalTimeout: Duration.minutes(30), detailedMonitoring: true, machineImage: MachineImage.genericLinux( { // Ubuntu 20.04 AMD64 image, obtained from https://cloud-images.ubuntu.com/locator/ec2/ 'ap-southeast-2': 'ami-03cfcb06be7fa0860' }, { userData } ), blockDevices: [rootVolume], init: CloudFormationInit.fromConfigSets({ configs: { sentry: new InitConfig([ InitCommand.shellCommand( 'cd /onpremise/ && sudo docker-compose up -d' ) ]) }, configSets: { default: ['sentry'] } }), keyName: 'keyname' })
systemd-utils
-
Ask HN: How do you monitor your systemd services?
I use the `OnFailure` property to trigger a service that emails me for failed services like backups which are run as system timers + service.
I also use `failure-monitor` which is Python service that monitors `journald`.
Files on Github for those interested:
- Sending Emails to Myself
What are some alternatives?
Sentry - Developer-first error tracking and performance monitoring
self-hosted - Sentry, feature-complete and packaged up for low-volume deployments and proofs-of-concept
Vaultwarden_Self_Host - Automatically setup and host a Vaultwarden (unoffical Bitwarden) instance on a Raspberry Pi or other Linux Server
NPushOver - Full fledged, async, .Net Pushover client
boiler_plates - Docker Compose Boilerplates
rkvdns_examples - Examples for RKVDNS under a more permissive license.
pds - Bluesky PDS (Personal Data Server) container image, compose file, and documentation
quickstart-linux-utilities - Linux Common Utilitys
apprise - Apprise - Push Notifications that work with just about every platform!
musicbrainz-docker - Docker Compose project for the MusicBrainz Server with replication, search, and development setup
Healthchecks - Open-source cron job and background task monitoring service, written in Python & Django