Skip to content

Commit

Permalink
Merge pull request #10 from Chia-Network/change-port
Browse files Browse the repository at this point in the history
  • Loading branch information
cmmarslender authored Sep 29, 2023
2 parents c594329 + 7dbf621 commit 3e1f09e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ func init() {
rootCmd.PersistentFlags().StringVar(&cfgFile, "config", "", "config file (default is $HOME/.chia-healthcheck.yaml)")

rootCmd.PersistentFlags().StringVar(&hostname, "hostname", "localhost", "The hostname to connect to")
rootCmd.PersistentFlags().IntVar(&healthcheckPort, "healthcheck-port", 9915, "The port the metrics server binds to")
rootCmd.PersistentFlags().IntVar(&healthcheckPort, "healthcheck-port", 9950, "The port the metrics server binds to")
rootCmd.PersistentFlags().DurationVar(&healthyThreshold, "healthcheck-threshold", 5*time.Minute, "Duration after which the healthchecks will switch to unhealthy")
rootCmd.PersistentFlags().StringVar(&logLevel, "log-level", "info", "How verbose the logs should be. panic, fatal, error, warn, info, debug, trace")
rootCmd.PersistentFlags().StringVar(&dnsHostname, "dns-hostname", "", "The hostname to check for DNS responses. Disabled if not provided.")
Expand Down
6 changes: 3 additions & 3 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@ sudo apt-get install chia-healthcheck

First, install [chia-blockchain](https://github.com/Chia-Network/chia-blockchain). Chia healthcheck expects to be run on the same machine as the chia blockchain installation, and will use either the default chia config (`~/.chia/mainnet/`) or else the config located at `CHIA_ROOT`, if the environment variable is set.

`chia-healthcheck serve` will start the healthcheck service on the default port of `9915`.
`chia-healthcheck serve` will start the healthcheck service on the default port of `9950`.

You can check the status of the full node at `<hostname>:9915/full_node`. A response code `200` indicates the full node is receiving new blocks, while a response code of `500` would indicate that a new block has not been received within the healthcheck interval (5 minutes by default).
You can check the status of the full node at `<hostname>:9950/full_node`. A response code `200` indicates the full node is receiving new blocks, while a response code of `500` would indicate that a new block has not been received within the healthcheck interval (5 minutes by default).

### Configuration

Expand All @@ -57,5 +57,5 @@ To set a config value as an environment variable, prefix the name with `CHIA_HEA
To use a config file, create a new yaml file and place any configuration options you want to specify in the file. The config file will be loaded by default from `~/.chia-healthcheck.yaml`, but the location can be overridden with the `--config` flag.

```yaml
healthcheck-port: 9915
healthcheck-port: 9950
```

0 comments on commit 3e1f09e

Please sign in to comment.