Skip to content

Commit

Permalink
Add grafana settings
Browse files Browse the repository at this point in the history
  • Loading branch information
mosuka committed Feb 7, 2022
1 parent c7cdfb9 commit 626f4dc
Show file tree
Hide file tree
Showing 2 changed files with 118 additions and 9 deletions.
20 changes: 11 additions & 9 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,15 +58,17 @@ services:
ports:
- "4566:4566"

# dynamodb-admin:
# image: aaronshaf/dynamodb-admin:latest
# environment:
# DYNAMO_ENDPOINT: localstack:4566
# PORT: 8081
# ports:
# - 8081:8081
# depends_on:
# - localstack
grafana:
container_name: grafana
image: grafana/grafana:latest
ports:
- "3000:3000"
volumes:
- ./grafana.ini:/etc/grafana/grafana.ini
- ./dist:/var/lib/grafana/plugins/phalanx-grafana-datasource
environment:
- GF_SERVER_ROOT_URL=http://localhost:3000
- GF_SECURITY_ADMIN_PASSWORD=admin

# phalanx:
# container_name: phalanx
Expand Down
107 changes: 107 additions & 0 deletions examples/grafana_dashboard.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,107 @@
{
"annotations": {
"list": [
{
"builtIn": 1,
"datasource": "-- Grafana --",
"enable": true,
"hide": true,
"iconColor": "rgba(0, 211, 255, 1)",
"name": "Annotations & Alerts",
"target": {
"limit": 100,
"matchAny": false,
"tags": [],
"type": "dashboard"
},
"type": "dashboard"
}
]
},
"editable": true,
"fiscalYearStartMonth": 0,
"graphTooltip": 0,
"id": 1,
"links": [],
"liveNow": false,
"panels": [
{
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"custom": {
"align": "auto",
"displayMode": "auto"
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
}
},
"overrides": []
},
"gridPos": {
"h": 19,
"w": 24,
"x": 0,
"y": 0
},
"id": 2,
"options": {
"footer": {
"fields": "",
"reducer": [
"sum"
],
"show": false
},
"showHeader": true
},
"pluginVersion": "8.3.4",
"targets": [
{
"datasource": {
"type": "mosuka-phalanx-datasource",
"uid": "PZjN_c-7z"
},
"fieldList": "*",
"indexName": "logs",
"queryString": "*",
"refId": "A",
"timestampField": "datetime"
}
],
"title": "Latest Logs",
"type": "table"
}
],
"schemaVersion": 34,
"style": "dark",
"tags": [],
"templating": {
"list": []
},
"time": {
"from": "now-6h",
"to": "now"
},
"timepicker": {},
"timezone": "",
"title": "Phalanx dashboard",
"uid": "E0_L_c-7z",
"version": 2,
"weekStart": ""
}

0 comments on commit 626f4dc

Please sign in to comment.