3 changed files with 152 additions and 2 deletions
@ -0,0 +1,120 @@ |
|||||||
|
https://github.com/little-angry-clouds/prometheus-data-generator |
||||||
|
|
||||||
|
{ |
||||||
|
"id": 2, |
||||||
|
"gridPos": { |
||||||
|
"h": 9, |
||||||
|
"w": 12, |
||||||
|
"x": 0, |
||||||
|
"y": 0 |
||||||
|
}, |
||||||
|
"type": "stat", |
||||||
|
"title": "Fruits", |
||||||
|
"pluginVersion": "8.4.5", |
||||||
|
"fieldConfig": { |
||||||
|
"defaults": { |
||||||
|
"mappings": [], |
||||||
|
"thresholds": { |
||||||
|
"mode": "absolute", |
||||||
|
"steps": [ |
||||||
|
{ |
||||||
|
"color": "green", |
||||||
|
"value": null |
||||||
|
}, |
||||||
|
{ |
||||||
|
"color": "red", |
||||||
|
"value": 80 |
||||||
|
} |
||||||
|
] |
||||||
|
}, |
||||||
|
"color": { |
||||||
|
"mode": "continuous-GrYlRd" |
||||||
|
} |
||||||
|
}, |
||||||
|
"overrides": [ |
||||||
|
{ |
||||||
|
"matcher": { |
||||||
|
"id": "byName", |
||||||
|
"options": "number_of_fruits{color=\"red\", instance=\"localhost:9000\", job=\"data-exporter\", name=\"apple\"}" |
||||||
|
}, |
||||||
|
"properties": [ |
||||||
|
{ |
||||||
|
"id": "color", |
||||||
|
"value": { |
||||||
|
"fixedColor": "red", |
||||||
|
"mode": "fixed" |
||||||
|
} |
||||||
|
} |
||||||
|
] |
||||||
|
}, |
||||||
|
{ |
||||||
|
"matcher": { |
||||||
|
"id": "byName", |
||||||
|
"options": "number_of_fruits{color=\"yellow\", instance=\"localhost:9000\", job=\"data-exporter\", name=\"apple\"}" |
||||||
|
}, |
||||||
|
"properties": [ |
||||||
|
{ |
||||||
|
"id": "color", |
||||||
|
"value": { |
||||||
|
"fixedColor": "yellow", |
||||||
|
"mode": "fixed" |
||||||
|
} |
||||||
|
} |
||||||
|
] |
||||||
|
} |
||||||
|
] |
||||||
|
}, |
||||||
|
"options": { |
||||||
|
"reduceOptions": { |
||||||
|
"values": false, |
||||||
|
"calcs": [ |
||||||
|
"lastNotNull" |
||||||
|
], |
||||||
|
"fields": "" |
||||||
|
}, |
||||||
|
"orientation": "auto", |
||||||
|
"textMode": "auto", |
||||||
|
"colorMode": "value", |
||||||
|
"graphMode": "area", |
||||||
|
"justifyMode": "auto" |
||||||
|
}, |
||||||
|
"targets": [ |
||||||
|
{ |
||||||
|
"datasource": { |
||||||
|
"type": "prometheus", |
||||||
|
"uid": "XgffZ787k" |
||||||
|
}, |
||||||
|
"exemplar": true, |
||||||
|
"expr": "number_of_fruits{color=\"green\"}", |
||||||
|
"interval": "", |
||||||
|
"legendFormat": "GREEN", |
||||||
|
"refId": "A" |
||||||
|
}, |
||||||
|
{ |
||||||
|
"datasource": { |
||||||
|
"type": "prometheus", |
||||||
|
"uid": "XgffZ787k" |
||||||
|
}, |
||||||
|
"exemplar": true, |
||||||
|
"expr": "number_of_fruits{color=\"red\"}", |
||||||
|
"hide": false, |
||||||
|
"interval": "", |
||||||
|
"legendFormat": "RED", |
||||||
|
"refId": "B" |
||||||
|
}, |
||||||
|
{ |
||||||
|
"datasource": { |
||||||
|
"type": "prometheus", |
||||||
|
"uid": "XgffZ787k" |
||||||
|
}, |
||||||
|
"exemplar": true, |
||||||
|
"expr": "number_of_fruits{color=\"yellow\"}", |
||||||
|
"hide": false, |
||||||
|
"interval": "", |
||||||
|
"legendFormat": "YELLOW", |
||||||
|
"refId": "C" |
||||||
|
} |
||||||
|
], |
||||||
|
"interval": "5s", |
||||||
|
"datasource": null |
||||||
|
} |
||||||
@ -0,0 +1,25 @@ |
|||||||
|
services: |
||||||
|
node-exporter: |
||||||
|
container_name: node-exporter |
||||||
|
image: atf.intranet.bb.com.br:5001/prom/node-exporter:latest |
||||||
|
network_mode: host |
||||||
|
|
||||||
|
prometheus: |
||||||
|
container_name: prometheus |
||||||
|
image: atf.intranet.bb.com.br:5001/prom/prometheus:latest |
||||||
|
network_mode: host |
||||||
|
volumes: |
||||||
|
- /home/f2256342/forge/monitor/prometheus.yml:/etc/prometheus/prometheus.yml |
||||||
|
|
||||||
|
grafana: |
||||||
|
container_name: grafana |
||||||
|
image: atf.intranet.bb.com.br:5001/grafana/grafana:latest |
||||||
|
network_mode: host |
||||||
|
|
||||||
|
data-generator: |
||||||
|
container_name: data-generator |
||||||
|
build: |
||||||
|
context: ../prometheus-data-generator/ |
||||||
|
network_mode: host |
||||||
|
volumes: |
||||||
|
- /home/f2256342/forge/prometheus-data-generator/config.yml:/config.yml |
||||||
Loading…
Reference in new issue