> For the complete documentation index, see [llms.txt](https://rajan-silwal-1.gitbook.io/product-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://rajan-silwal-1.gitbook.io/product-docs/monitoring-tools/prometheus/setup-prometheus-to-get-metrics.md).

# Setup Prometheus to get metrics

1. Update a node file in prometheus repo with a port number in this format:<br>

   ```
   - targets:
       - HostName:portNumber
     labels:
       service: name
   ```
2. Once you add your host name we need to git push to a gitlab and git pull in prometheus server
3. To check login with prometheus IP adress and its port number to see in Graphic mode where you can see your node.

<figure><img src="https://1186894440-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9wnMXVEmEJ7k6VEhLJYN%2Fuploads%2FGRiL2hF8du4lgKMzYm0L%2FScreen%20Shot%202022-10-31%20at%206.04.12%20PM.png?alt=media&amp;token=c614b8f8-a8b7-4d5b-83c1-c859e90fda74" alt=""><figcaption></figcaption></figure>
