Quick Start Guide
This guide will help you get up and running with Harbor Scale quickly. Follow these steps to create your account, set up a harbor, send your first data point, and visualize it in Grafana.
1. Create an Account
- Visit Harbor Scale's website and click on "Sign Up".
- Fill in your details and submit the registration form.
- Check your email for a verification link and click it to verify your account.
2. Create a Harbor
- Log in to your Harbor Scale dashboard.
- Click on "Create New Harbor" and select General for the type and Free for the specs.
- Once created, you can view the Harbor Details.
3. Get Your API Endpoints and Key
From the Harbor Details page, you will find the necessary credentials:
- Copy the Single Ingestion Endpoint or Batch Ingestion Endpoint.
- Copy your API Key. Keep this secure, as it's used to authenticate your requests.
Security Notice
Your API Key is sensitive. Do not share it publicly or embed it directly in client-side code. Use environment variables for secure storage.
4. Send Your First Data Point
You can send data using curl. Since the API requires a timestamp, we will generate the current time automatically so your data appears in Grafana immediately.
General Endpoints:
- Single Data Push:
POST https://harborscale.com/api/v2/ingest/your_harbor_id - Batch Data Push:
POST https://harborscale.com/api/v2/ingest/your_harbor_id/batch
Replace YOUR_HARBOR_ID and YOUR_API_KEY in the examples below.
Linux / MacOS (Bash)
This command automatically inserts the current UTC timestamp:
curl -X POST "https://harborscale.com/api/v2/ingest/YOUR_HARBOR_ID" \
-H "X-API-Key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d "{
\"time\": \"$(date -u +"%Y-%m-%dT%H:%M:%S.%3NZ")\",
\"ship_id\": \"quickstart_ship\",
\"cargo_id\": \"temperature\",
\"value\": 24.5
}"
Windows (PowerShell)
Use this command if you are on Windows:
$timestamp = (Get-Date).ToUniversalTime().ToString("yyyy-MM-ddTHH:mm:ss.fffZ")
Invoke-RestMethod -Uri "https://harborscale.com/api/v2/ingest/YOUR_HARBOR_ID" `
-Method Post `
-Headers @{ "X-API-Key" = "YOUR_API_KEY" } `
-ContentType "application/json" `
-Body (@{
time = $timestamp
ship_id = "quickstart_ship"
cargo_id = "temperature"
value = 24.5
} | ConvertTo-Json)
5. Visualize Your Data
Harbor Scale integrates seamlessly with Grafana for powerful data visualization.
- From the Harbor Details, copy the Grafana Endpoint and Grafana Password.
Note: Your Grafana password is different from your main account password.
- Open the Grafana endpoint in your browser and log in using:
- Username: [Your Harbor Scale Account Email]
- Password: [The password from Harbor Details]
- You'll find pre-configured dashboards ready for your data.
6. Explore the Demo Dashboard
To get started quickly:
- In Grafana, look for the "Comprehensive Telemetry Dashboard" in your list of dashboards.
- Open it to see example visualizations of the data you just sent.
- Use this as a template to create your own custom dashboards.
Congratulations! You've set up your Harbor Scale account, sent your first data point, and accessed your visualization tools.
For more detailed information on data ingestion, API usage, and advanced Grafana configurations, check out our Harbor Types documentation.