/metrics
.
brew install prometheus
iex -S mix phx.server
prometheus --config.file=prometheus.yml
brew install grafana
grafana-cli plugins install grafana-piechart-panel
brew services start grafana
open http://localhost:3000/datasources
b. Click ”+ Add data source”
c. Put “Prometheus” for “Name”
d. Change “Type” to “Prometheus”
e. Set “URL” to “http://localhost:9090”
f. Set “Scrape Interval” to ”10s”
*.json
file in the repo.
a. open http://localhost:3000/dashboard/import
b. Copy the contents of the JSON file in the “Or paste JSON” entry
c. Click “Load”