Skip to content
Snippets Groups Projects
Commit c6ea804c authored by Hammam Abdelwahab's avatar Hammam Abdelwahab
Browse files

add files + README

parents
No related branches found
No related tags found
No related merge requests found
# Tenosrflow serving metrics with Grafana
To run Grafana, Prometheus, and Tensorflow serving:
`docker-compose up`
- Grafana: http://localhost:3000
- Prometheus: http://localhost:9090
- Predicrion example (for halp plus two model): curl -d '{"instances": [1.0, 2.0, 5.0]}' -X POST http://localhost:8501/v1/models/half_plus_two:predict
prometheus_config: {
enable: true,
path: "/monitoring/prometheus/metrics"
}
version: '3.2'
services:
prometheus:
image: prom/prometheus:latest
container_name: prometheus
ports:
- 9090:9090
command:
- --config.file=/etc/prometheus/prometheus.yml
volumes:
- ./prometheus.yml:/etc/prometheus/prometheus.yml:ro
depends_on:
- tfx
tfx:
image: tensorflow/serving:latest
container_name: tfx
ports:
- 8501:8501
volumes:
- ./configs:/home/configs
- ./models/half_plus_two:/models/half_plus_two
environment:
- MODEL_NAME=half_plus_two
command:
- --monitoring_config_file=/home/configs/monitoring_config.txt
grafana:
image: grafana/grafana:latest
container_name: grafana
ports:
- 3000:3000
depends_on:
- prometheus
asset-file-contents
\ No newline at end of file
File added
File added
File added
scrape_configs:
- job_name: tfx
scrape_interval: 5s
metrics_path: '/monitoring/prometheus/metrics'
static_configs:
- targets:
- tfx:8501
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment