Learn the basics
Last updated
Last updated
This guide will help you understand the basic concepts of Lunar and get started with monitoring your engineering practices.
Before you begin, make sure you have:
Installed Lunar following the
Access to your code repositories
Basic understanding of your CI/CD pipeline setup
Lunar operates on a few key concepts:
Components: These are your software projects (services, libraries, repositories)
Collectors: These gather information about your components
Policies: These define rules and standards for your components
Checks: These are the results of policy evaluations
Start by creating a lunar-config.yml
file in your project root:
You will need to replace github.com/my-org/my-service
with a real repository you want to monitor.
To apply this configuration, run
You should be able to see the new domain, the new component, and its component JSON being populated in the Lunar UI.
Add a policy to check your component:
Apply the new configuration:
You should be able to see the new policy, and the checks being populated for this component in the Lunar UI.
Lunar can also auto-discover components from external systems like GitHub, Backstage, and other sources using catalogers. See the for details on setting up automated component discovery. For now, this example will focus on manually declared components.
Learn more about
Explore
Check out the for advanced usage