{"id":16615309,"url":"https://github.com/jonmosco/lfs241","last_synced_at":"2026-04-20T17:04:28.952Z","repository":{"id":68951937,"uuid":"267892573","full_name":"jonmosco/LFS241","owner":"jonmosco","description":"Linux Foundation LFS241 - Monitoring Systems and Services with Prometheus.  Files/notes from the course","archived":false,"fork":false,"pushed_at":"2020-06-07T14:01:23.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-17T17:54:12.331Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jonmosco.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-05-29T15:32:25.000Z","updated_at":"2020-06-07T14:01:25.000Z","dependencies_parsed_at":"2023-02-26T08:15:23.448Z","dependency_job_id":null,"html_url":"https://github.com/jonmosco/LFS241","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonmosco%2FLFS241","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonmosco%2FLFS241/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonmosco%2FLFS241/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonmosco%2FLFS241/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jonmosco","download_url":"https://codeload.github.com/jonmosco/LFS241/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242956551,"owners_count":20212454,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-12T02:09:10.665Z","updated_at":"2026-04-20T17:04:28.921Z","avatar_url":"https://github.com/jonmosco.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"### LFS241 - Monitoring Systems and Services with Prometheus\n\nNotes and various files for the Linux Foundation LFS241 training\nNOTE: This repo does not have any of the official files from the training,\n      only my personal files used to help with the course.\n\n## Lab Environment\n\n* Vagrantfile for Ubuntu 18.04 LTS\n* Vagrantfile for Debian 10 - Buster\n\n### Vagrant\n\nVagrant needs to know that we want to use Libvirt and not default VirtualBox.\nThat's why there is --provider=libvirt option specified. Other way to tell\nVagrant to use Libvirt provider is to setup environment variable\n```\nexport VAGRANT_DEFAULT_PROVIDER=libvirt\n```\n\nChanging the Vagrantfile requires a reload:\n```\nvagrant reload\n```\n\n#### Provisioning with Ansible\n\nThe first time you run vagrant up, Vagrant will execute the provisioner and\nwill record that the provisioner was run. If you halt the virtual machine and\nthen start it up, Vagrant remembers that it has already run the provisioner\nand will not run it a second time.\n\nForce Vagrant to run the provisioner against a running virtual machine:\n```\n$ vagrant provision\n```\nReboot a virtual machine and run the provisioner after reboot:\n```\n$ vagrant reload --provision\n```\nStart up a halted virtual machine and have Vagrant run the provisioner:\n```\n$ vagrant up --provision\n```\n\n##### Inventory\n\nNote that it uses default as the inventory hostname. When writing playbooks\nfor the Vagrant provisioner, specify hosts: default or hosts: all.\n\n### Prometheus cli\n\nMake sure Prometheus reloads it's configuration file:\n```\nkillall -HUP prometheus\n```\n\n#### Prometheus Python Client\n\nhttps://github.com/prometheus/client_python\n\n```bash\npip install prometheus_client\n```\n\n#### Grafana\n\n```\ndocker run -d -p 3000:3000 --name grafana grafana/grafana:5.2.4\n```\n\n### Issues\n\n```\nInitialization parameters must be an attributes hash, got NilClass nil\n```\n\nThis error was encountered when changing the location of the storage pool.\nIt was resolved by restarting libvirtd:\n```\n$ sudo systemctl restart libvirtd\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjonmosco%2Flfs241","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjonmosco%2Flfs241","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjonmosco%2Flfs241/lists"}