-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
33 additions
and
9 deletions.
There are no files selected for viewing
This file contains 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 |
---|---|---|
@@ -1,7 +1,14 @@ | ||
# Sat Apr 25 16:19:01 +0000 2015 | ||
# Mon Jan 02 15:04:05 -0700 2006 | ||
# "RubyDate" | ||
set -x | ||
ARGS=() | ||
if [ "${ALLOW_EMPTY_PASSWORD}" != "yes" ]; then | ||
ARGS+=( | ||
--username "${MONGODB_ROOT_USER}" | ||
--password "${MONGODB_ROOT_PASSWORD}" | ||
) | ||
fi | ||
mongorestore \ | ||
--username "${MONGODB_ROOT_USER}" \ | ||
--password "${MONGODB_ROOT_PASSWORD}" \ | ||
"${ARGS[@]}" \ | ||
/mnt/host/grafana-mongodb-community-plugin/integration-test/datasets/download/tweets/dump/ |
This file contains 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 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 @@ | ||
{"queries":[{"refId":"A","database":"twitter","collection":"tweets","timestampField":"created_at","labelFields":["user"],"valueFields":["retweet_count"],"valueFieldTypes":["float64"],"aggregation":"[{\"$project\":{\"created_at\":1, \"retweet_count\": 1, \"user\": \"$user.url\" }}, { \"$match\" : { \"retweet_count\" : { \"$gt\": 1000 } } } ]","autoTimeBound":false,"autoTimeSort":true,"queryType":"Timeseries","timestampFormat":"Mon Jan 02 15:04:05 -0700 2006","key":"Q-dcb1733c-b2cd-4a45-bc7b-00e76984d22b-0","datasource":{"uid":"GLlI6wg4z","type":"meln5674-mongodb-community"},"datasourceId":2,"intervalMs":900000,"maxDataPoints":681}],"range":{"from":"2015-04-25T15:15:52.000Z","to":"2015-05-03T09:01:56.000Z","raw":{"from":"2015-04-25T15:15:52.000Z","to":"2015-05-03T09:01:56.000Z"}},"from":"1429974952000","to":"1430643716000"} |
This file contains 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 @@ | ||
{"queries":[{"refId":"A","database":"test","collection":"weather","timestampField":"timestamp","labelFields":["sensorID"],"valueFields":["timestamp","sensorID","temperature"],"valueFieldTypes":["time","int32","int32"],"aggregation":"[{\"$project\":{\"timestamp\":1,\"sensorID\":\"$metadata.sensorId\",\"temperature\":\"$temp\",\"_id\":0}}]","autoTimeBound":true,"autoTimeSort":true,"queryType":"Table","key":"Q-020c94fc-9c76-4def-a5fd-3c5377238e56-0","datasource":{"uid":"GLlI6wg4z","type":"meln5674-mongodb-community"},"datasourceId":2,"intervalMs":120000,"maxDataPoints":681}],"range":{"from":"2021-05-18T20:00:00.000Z","to":"2021-05-19T20:00:00.000Z","raw":{"from":"2021-05-18T20:00:00.000Z","to":"2021-05-19T20:00:00.000Z"}},"from":"1621368000000","to":"1621454400000"} |
This file contains 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 @@ | ||
{"queries":[{"database":"test","collection":"weather","timestampField":"timestamp","labelFields":["sensorID"],"valueFields":["temperature","foo"],"valueFieldTypes":["int32","int64"],"aggregation":"[{ \"$project\": { \"timestamp\": 1, \"sensorID\": \"$metadata.sensorId\", \"temperature\": \"$temp\", \"foo\": { \"$literal\" : 1621296000000 } }}]","refId":"A","key":"Q-1658634116513-0.7764272519013262-0","maxDataPoints":681,"liveStreaming":false,"showingGraph":true,"showingTable":true,"datasourceId":2,"intervalMs":300000,"orgId":1}],"range":{"from":"2021-05-18T00:00:00.000Z","to":"2021-05-19T20:00:00.000Z","raw":{"from":"2021-05-18T00:00:00.000Z","to":"2021-05-19T20:00:00.000Z"}},"from":"1621296000000","to":"1621454400000"} |
This file contains 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 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