Metrics on Andasy.io
The Andasy.io platform includes a fully-managed metrics solution to help you easily monitor your Andasy apps. It includes the following components:
- Default metrics viewer is provided which is based on Prometheus at metrics.andasy.io
- Managed Prometheus-compatible time series storage
- Metrics automatically sent from every Andasy app you deploy
Prometheus on Andasy.io
Prometheus is a popular open source monitoring system used to store and query metrics efficiently, with a stable HTTP querying API compatible with a range of systems.
Prometheus on Andasy.io is a fully-managed service based on Prometheus. It supports most common Prometheus querying API endpoints:
/api/v1/query
/api/v1/query_range
/api/v1/series
/api/v1/labels
/api/v1/label/<label_name>/values
/api/v1/status/tsdb
/federate
Note that remote read (/api/v1/read
) and remote storage integration
are not supported.
MetricsQL
Prometheus queries are typically based on the PromQL query language. Prometheus on Andasy.io queries use PromQL.
Querying
Queries can be sent to the following endpoint:
https://metrics.andasy.io/
You'll need to authenticate with a Access Token sent in the standard Bearer Token format (e.g., an HTTP request header Authorization: <TOKEN>
), and you may only query series scoped to your organizations.
Manually
Get an access token
TOKEN=$(andasy auth token)
Test it out!
curl https://metrics.andasy.io/api/v1/query \
--data-urlencode 'query=sum(increase(cpu_seconds_total)) by (app_name, org_id)' \
-H "Authorization: $TOKEN"
External or self-hosted Grafana
You can also configure your Prometheus endpoint with an existing Grafana installation like this:
- Add a Prometheus data source (Settings -> Data Sources -> Add data source -> Prometheus)
- Fill the form with the following:
- HTTP -> URL:
https://metrics.andasy.io
- Custom HTTP Headers -> + Add Header:
- Header:
Authorization
, Value:Bearer <token>
- Header:
You're all set.
Standard Labels
All published series include the following labels:
app_name
: App nameorg_id
: Organization IDmachine_id
: Virtual machine ID.