Using the Observability service on OPCP
Find out how to explore your logs, metrics and traces, and set up dashboards and alerts with the Observability service in the OPCP Cloud Console
Alpha version — This guide documents the alpha version of Cloud Store. Features, interfaces and procedures will change until general availability (GA), and this guide will be updated along with them.
Objective
This guide shows Organization users how to open the Observability service from the OPCP Cloud Console, explore their logs, metrics and traces, and set up dashboards and alerts.
The Observability service gives your Organization its own Grafana, with its own logs, metrics, traces and alerts. No other Organization can see your data. You sign in with your Organization account.
How your IT Admin deploys the service is described in the guide Deploying the Observability service on OPCP.
This guide documents version 0.1.0-alpha.99.
Requirements
- An account in your Organization, as described in the guide OPCP Cloud Console.
- The Observability service enabled for your Organization by your IT Admin.
Instructions
What the service offers in the Alpha
Opening the service
- Log in to the OPCP Cloud Console and open Observability in your Enabled Services.
- In the
Overviewtab, open thegrafana_urllink. - Sign in with your Organization account.
Every user of the Organization who signs in gets the Editor role in Grafana: they can explore the data and create and change dashboards and alert rules.
Exploring your data
In the Alpha, the data of your Organization comes from the IAM audit log of your Keycloak realm, and from what your own servers and applications send, see "Sending your own data". The other Cloud Store services will add their data, for example the S31 access logs of your buckets, with the Beta.
Four data sources are provisioned in your Grafana:
To explore your data:
- Open
Explorein the Grafana menu and select a data source. - Build the query in
Buildermode, or type it inCodemode. For example:- Loki:
{job="keycloak-audit", type="LOGIN_ERROR"}returns the failed sign-ins of your Organization; - Mimir: open the
Metrics browserto list the metrics your Organization has, then pick one.
- Loki:
- Select the time range and click
Run query.
Provisioned dashboards
To create your own dashboard, go to Dashboards > New > New dashboard. You can also import a dashboard from a JSON file with Dashboards > New > Import.
Sending your own data
Your servers, applications and scripts can send their logs, metrics and traces to the gateway of your Organization, and read them back. The data shows up in your Grafana, alongside your other data.
- Address: the
gateway_urllink in theOverviewtab of the service. - Access: a token from your Organization's realm in each request. Ask your IT Admin for a client ID, a client secret and the token URL, see the "Giving an Organization push credentials" section of the "Deploying the Observability service on OPCP" guide.
- APIs: the standard APIs of Loki, Mimir (Prometheus) and Tempo, and OTLP over HTTP.
The guide Sending and reading data with the OPCP Observability gateway lists the API and gives end-to-end examples with curl, Grafana Alloy and the OpenTelemetry SDK.
Data retention and limits
Your IT Admin sets how long your data is kept. By default:
The Observability service sets fixed limits for each Organization. They only apply to the data sent to this service, not to your other Cloud Store services:
Data above a rate limit is refused and sent again later by its sender. Metric series above 150,000 are dropped. Track your usage on the Usage & Limits dashboard.
Setting up alerts
You can write alert rules on your logs and metrics, and send the notifications to your own tools.
- Go to
Alerting>Notification configuration>Contact pointsand clickNew contact point. Choose the integration (email, webhook, Slack, Microsoft Teams, PagerDuty, etc.) and fill in its settings. - Go to
Alerting>Alert rulesand clickNew alert rule. - Choose the Mimir or Loki data source, write the query and the condition, and choose your contact point.
- Save the rule.
The rules are evaluated by the service itself, so they keep running when nobody has Grafana open.
When you write a rule, the preview may show the error Jwt is missing. Save the rule anyway: it is evaluated correctly. Check the result in Explore.
Notifications can only be sent to public addresses. A contact point that targets a private address (for example 10.x.x.x or 192.168.x.x) fails with blocked address.
Known limitations
The Alpha has the following known limitations:
Go further
Sending and reading data with the OPCP Observability gateway
Deploying the Observability service on OPCP
For training or technical assistance implementing our solutions, contact your sales representative or visit our Professional Services page to request a quote and have your project analysed by our experts.
Join our community of users.
1: S3 is a trademark of Amazon Technologies, Inc. OVHcloud's service is not sponsored by, endorsed by, or otherwise affiliated with Amazon Technologies, Inc.