Skip to content

Commit

Permalink
update consulsd in README
Browse files Browse the repository at this point in the history
Signed-off-by: Jayapriya Pai <[email protected]>
  • Loading branch information
slashpai committed Feb 2, 2024
1 parent 2b33571 commit d33a468
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions scrape_config/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,26 @@ Look at each scrapeconfig file for various fields used.
![img](img/scrape_config_kube_sd_node.png)
![img](img/scrape_config_kube_sd_pod.png)

## consulSDConfigs

- Available from Prometheus-Operator version `0.68`. In example a consul instance is created and a app is registered with consul. Both app and consul is running inside kubernetes but it will work similar for external consul instance as well.

```bash
kubectl apply -f ./consul_sd
```

- Port forward consul UI

```bash
k port-forward svc/consul 8500
```

![img](img/consul_ui.png)

- Refresh prometheus target page it should show scrape config targets

![img](img/scrape_config_consul_sd.png)

## dnsSDConfigs

- Available from Prometheus-Operator version `0.68`
Expand Down

0 comments on commit d33a468

Please sign in to comment.