-
Notifications
You must be signed in to change notification settings - Fork 327
[ChatQnA] Enable Prometheus and Grafana with telemetry docker compose file. #1623
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
louie-tsai
merged 3 commits into
opea-project:main
from
intel-ai-tce:grafana_prometheus_docker
Mar 14, 2025
Merged
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
louie-tsai marked this conversation as resolved.
Show resolved
Hide resolved
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 6 additions & 0 deletions
6
ChatQnA/docker_compose/intel/cpu/xeon/grafana/dashboards/download_opea_dashboard.sh
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| # Copyright (C) 2025 Intel Corporation | ||
| # SPDX-License-Identifier: Apache-2.0 | ||
|
|
||
| wget https://raw.githubusercontent.com/opea-project/GenAIEval/refs/heads/main/evals/benchmark/grafana/vllm_grafana.json | ||
| wget https://raw.githubusercontent.com/opea-project/GenAIEval/refs/heads/main/evals/benchmark/grafana/tgi_grafana.json | ||
| wget https://raw.githubusercontent.com/opea-project/GenAIEval/refs/heads/main/evals/benchmark/grafana/node_grafana.json |
14 changes: 14 additions & 0 deletions
14
ChatQnA/docker_compose/intel/cpu/xeon/grafana/provisioning/dashboards/local.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| # Copyright (C) 2025 Intel Corporation | ||
| # SPDX-License-Identifier: Apache-2.0 | ||
|
|
||
| apiVersion: 1 | ||
|
|
||
| providers: | ||
| - name: 'default' | ||
| orgId: 1 | ||
| folder: '' | ||
| type: file | ||
| disableDeletion: false | ||
| updateIntervalSeconds: 10 #how often Grafana will scan for changed dashboards | ||
| options: | ||
| path: /var/lib/grafana/dashboards |
54 changes: 54 additions & 0 deletions
54
ChatQnA/docker_compose/intel/cpu/xeon/grafana/provisioning/datasources/datasource.yml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,54 @@ | ||
| # Copyright (C) 2025 Intel Corporation | ||
| # SPDX-License-Identifier: Apache-2.0 | ||
|
|
||
| # config file version | ||
| apiVersion: 1 | ||
|
|
||
| # list of datasources that should be deleted from the database | ||
| deleteDatasources: | ||
| - name: Prometheus | ||
| orgId: 1 | ||
|
|
||
| # list of datasources to insert/update depending | ||
| # what's available in the database | ||
| datasources: | ||
| # <string, required> name of the datasource. Required | ||
| - name: Prometheus | ||
| # <string, required> datasource type. Required | ||
| type: prometheus | ||
| # <string, required> access mode. direct or proxy. Required | ||
| access: proxy | ||
| # <int> org id. will default to orgId 1 if not specified | ||
| orgId: 1 | ||
| # <string> url | ||
| url: http://prometheus:9090 | ||
| # <string> database password, if used | ||
| password: | ||
| # <string> database user, if used | ||
| user: | ||
| # <string> database name, if used | ||
| database: | ||
| # <bool> enable/disable basic auth | ||
| basicAuth: false | ||
| # <string> basic auth username, if used | ||
| basicAuthUser: | ||
| # <string> basic auth password, if used | ||
| basicAuthPassword: | ||
| # <bool> enable/disable with credentials headers | ||
| withCredentials: | ||
| # <bool> mark as default datasource. Max one per org | ||
| isDefault: true | ||
| # <map> fields that will be converted to json and stored in json_data | ||
| jsonData: | ||
| httpMethod: GET | ||
| graphiteVersion: "1.1" | ||
| tlsAuth: false | ||
| tlsAuthWithCACert: false | ||
| # <string> json object of data that will be encrypted. | ||
| secureJsonData: | ||
| tlsCACert: "..." | ||
| tlsClientCert: "..." | ||
| tlsClientKey: "..." | ||
| version: 1 | ||
| # <bool> allow users to edit datasources from the UI. | ||
| editable: true |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,43 @@ | ||
| # Copyright (C) 2025 Intel Corporation | ||
| # SPDX-License-Identifier: Apache-2.0 | ||
| # [IP_ADDR]:{PORT_OUTSIDE_CONTAINER} -> {PORT_INSIDE_CONTAINER} / {PROTOCOL} | ||
| global: | ||
| scrape_interval: 5s | ||
| external_labels: | ||
| monitor: "my-monitor" | ||
| scrape_configs: | ||
| - job_name: "prometheus" | ||
| static_configs: | ||
| - targets: ["prometheus:9090"] | ||
| - job_name: "vllm" | ||
| metrics_path: /metrics | ||
| static_configs: | ||
| - targets: ["vllm-service:80"] | ||
| - job_name: "tgi" | ||
| metrics_path: /metrics | ||
| static_configs: | ||
| - targets: ["tgi-service:80"] | ||
| - job_name: "tei-embedding" | ||
| metrics_path: /metrics | ||
| static_configs: | ||
| - targets: ["tei-embedding-server:80"] | ||
| - job_name: "tei-reranking" | ||
| metrics_path: /metrics | ||
| static_configs: | ||
| - targets: ["tei-reranking-server:80"] | ||
| - job_name: "retriever" | ||
| metrics_path: /metrics | ||
| static_configs: | ||
| - targets: ["retriever-redis-server:7000"] | ||
| - job_name: "dataprep-redis-service" | ||
| metrics_path: /metrics | ||
| static_configs: | ||
| - targets: ["dataprep-redis-server:5000"] | ||
| - job_name: "chatqna-backend-server" | ||
| metrics_path: /metrics | ||
| static_configs: | ||
| - targets: ["chatqna-xeon-backend-server:8888"] | ||
| - job_name: "prometheus-node-exporter" | ||
| metrics_path: /metrics | ||
| static_configs: | ||
| - targets: ["node-exporter:9100"] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.