Skip to content

Commit

Permalink
Merge branch 'main' into docs/alert
Browse files Browse the repository at this point in the history
  • Loading branch information
raosan authored Mar 12, 2021
2 parents 5e9082d + 798a30c commit ce293cc
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ npm ci

## Getting Started

To start monitoring URLs, you need to create a configuration file (JSON file). The configuration file contains the probes, alerts, and notification configurations. You can check the sample configuration file in [config.json.example](https://github.com/hyperjumptech/monika/blob/main/config.json.example) or from our [docs](https://github.com/hyperjumptech/monika/quick-start).
To start monitoring URLs, you need to create a configuration file (JSON file). The configuration file contains the probes, alerts, and notification configurations. You can check the sample configuration file in [config.example.json](https://github.com/hyperjumptech/monika/blob/main/config.example.json) or from our [docs](https://github.com/hyperjumptech/monika/quick-start).

When you have created the configuration file, you can run `monika` as follows

Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion src/utils/parse-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export const parseConfig = async (configPath: string) => {
return output
} catch (error) {
throw new Error(
'Config file not found! Copy example config from https://github.com/hyperjumptech/monika/blob/main/config.json.example'
'Config file not found! Copy example config from https://github.com/hyperjumptech/monika/blob/main/config.example.json'
)
}
}
2 changes: 1 addition & 1 deletion test/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ describe('http-probe', () => {
// General Test
test
.stdout()
.do(() => cmd.run(['--config', resolve('./config.json.example')]))
.do(() => cmd.run(['--config', resolve('./config.example.json')]))
.it('runs with normal config', (ctx) => {
expect(ctx.stdout).to.contain('Parsed configuration')
})
Expand Down

0 comments on commit ce293cc

Please sign in to comment.