jina-ai / example-grafana-prometheus Goto Github PK
View Code? Open in Web Editor NEWDocker compose file to use prometheus and grafana with Jina
Docker compose file to use prometheus and grafana with Jina
I use these three profiles from:
https://github.com/jina-ai/example-grafana-prometheus/tree/main/opentelemetry-local
The following command was executed:
docker-compose up
The output log is here:
https://gist.github.com/coolmian/0b583a24d044255bda76889caf5f83a8
I can normally access these three front-end pages:
http://ip:3000/
http://ip:16686/
http://ip:9090/
I added a Prometheus data source in Grafana, and the configured address is http://ip:9090
After saving, display Data source is working
Then I imported the dashboard through the configuration file
https://github.com/jina-ai/example-grafana-prometheus/blob/main/grafana-dashboards/flow-histogram-metrics.json
Then I sent a few requests
from jina import Flow, Document, DocumentArray
if __name__ == '__main__':
with Flow(
tracing=True,
traces_exporter_host='http://myip',
traces_exporter_port=4317,
metrics=True,
metrics_exporter_host='http://myip',
metrics_exporter_port=4317,
).add(uses='jinaai://jina-ai/SimpleIndexer') as f:
f.post('/', DocumentArray([Document(text='hello')]))
I see the tracking data in the Jeager UI.
However, No data is displayed on all panels of the dashboard in Grafana.
I also can't get any data by the metrics names in Prometheus front-end pages.
https://docs.jina.ai/concepts/flow/instrumentation/#instrumenting-flow
Waiting for solving this issue. google/cadvisor#2763
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.