Skip to content

Commit a999339

Browse files
authored
Merge pull request #386 from HarperFast/fabric-docs-updates
Added docs for Grafana, editing a cluster, the API tab in an instance/cluster, etc.
2 parents 2201eaf + 4cd56e8 commit a999339

File tree

4 files changed

+99
-0
lines changed

4 files changed

+99
-0
lines changed

fabric/api-documentation.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
---
2+
title: API Documentation
3+
---
4+
5+
# API Documentation
6+
7+
Harper provides automatically generated API documentation page via [Swagger UI](https://github.com/swagger-api/swagger-ui) integration. This page allows developers to explore and test the various API endpoints available in your Harper instance/cluster.
8+
9+
## Accessing the API Documentation
10+
11+
To access the API documentation, navigate to the following URL in your web browser:
12+
13+
1. Sign in to your Harper Fabric Studio.
14+
2. Select your Organization and Cluster.
15+
3. Sign in to the Cluster and navigate to the `APIs` tab in the sub-menu.
16+
17+
## API Execution
18+
19+
In order to execute API calls directly from the Swagger UI:
20+
21+
1. Click an endpoint to expand it.
22+
2. Enter the required information in the provided fields under the "Parameters" tab.
23+
3. Scroll down and click the "Execute" button.
24+
4. The server response from the API call will be displayed below, including HTTP status code, and response body.
25+
26+
## Authorize
27+
28+
To authorize API requests, you need to include a valid basic authentication header or bearer authentication token.
29+
30+
1. Click on the "Authorize" button in the Swagger Documentation UI.
31+
2. Choose your preferred authentication method (Basic or Bearer) and enter your credentials or token.
32+
3. Click the "Authorize" button to apply the authentication key to all subsequent requests.
33+
4. Execute an API call to verify that the authorization was successful.

fabric/cluster-creation-management.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,19 @@ A cluster is a group of instances managed together to run applications and servi
2323
5. \*Confirm or replace the preferred payment method. Add a new card if necessary
2424
6. Cluster will begin provisioning as soon as you complete your selections.
2525

26+
## Editing a Cluster
27+
28+
To edit an existing cluster:
29+
30+
1. Navigate to your organization page.
31+
2. Locate the cluster you want to edit in the list of clusters.
32+
3. Click the three dots menu next to the cluster name and select "Edit" from the dropdown.
33+
4. Make the necessary changes to the cluster configuration such as:
34+
- Performance & Usage
35+
- Modifying the Region location and Estimated P90 Latency
36+
- Adding or removing additional regions.
37+
5. Click the "Save Changes" or "Confirm Payment Details" button to summarize and apply your modifications.
38+
2639
## Harper Deployment Types:
2740

2841
### Colocated:

fabric/grafana-integration.md

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
---
2+
title: Grafana Integration
3+
---
4+
5+
# Setup Grafana Integration with Harper
6+
7+
Grafana is an observability platform for monitoring and visualizing metrics, logs, and traces. Harper provides a plugin to integrate with Grafana for enhanced analytics and visualization capabilities.
8+
9+
To install the Harper Grafana integration:
10+
11+
1. Navigate to Harper's plug-in inside the [Grafana marketplace](https://grafana.com/grafana/plugins/harperfast-harper-datasource/).
12+
2. Sign-in to your Grafana account. If you do not have an account, you will need to create one.
13+
3. Click the "Get plugin" button.
14+
15+
## Installing on a Local/Self-Hosted Grafana Instance
16+
17+
4. Follow the steps under "[Installing on a local Grafana](https://grafana.com/grafana/plugins/harperfast-harper-datasource/?tab=installation)"
18+
19+
## Connect to Harper
20+
21+
4. Navigate to your Grafana instance URL specified under `Installing Harper on Grafana Cloud`.
22+
5. On the left sidebar, click the `Connections` navigation link and select `Add new connection`
23+
6. In the search bar, type `Harper` to filter the list of available data source plugins.
24+
7. On the top right corner, click the `Add new data source` button.
25+
8. You will be directed to the `Settings` page for the new data source. Configure the following settings:
26+
- **Name**: Provide a name for the data source (e.g., `My Fabric Cluster Analytics`).
27+
- **Operations API URL**: Enter the URL to your Harper Fabric cluster's operations API
28+
- Found in Harper Fabric Studio navigating to the cluster:
29+
- Clicking the three dots and selecting `Copy API Url`.
30+
- Add `:9925` to the end of the URL if not already present.
31+
- **Username**: Enter a username with permission to use the analytics ops in the Operations API.
32+
- **Password**: Enter the password for the specified username.
33+
9. Click the `Save & Test` button to save the data source configuration and test the connection. You should see a message indicating that the data source is working.
34+
35+
## Building Dashboards
36+
37+
Once the Harper data source is configured, you can start building dashboards in Grafana.
38+
39+
## Explore
40+
41+
1. Click on the `Explore` navigation link in the left sidebar.
42+
2. You can now create queries using the Harper data source to visualize your Harper Fabric cluster metrics and logs.
43+
Reference the [Harper Analytics Operations](../docs/developers/operations-api/analytics) for more details on available metrics and query options.

sidebarsFabric.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,11 @@ const sidebarsFabric: SidebarsConfig = {
3232
id: 'managing-applications',
3333
label: 'Managing Applications',
3434
},
35+
{
36+
type: 'doc',
37+
id: 'api-documentation',
38+
label: 'API Documentation',
39+
},
3540
{
3641
type: 'doc',
3742
id: 'database-management',
@@ -42,6 +47,11 @@ const sidebarsFabric: SidebarsConfig = {
4247
id: 'logging',
4348
label: 'Logging',
4449
},
50+
{
51+
type: 'doc',
52+
id: 'grafana-integration',
53+
label: 'Grafana Integration',
54+
},
4555
{ type: 'autogenerated', dirName: 'fabric' },
4656
],
4757
};

0 commit comments

Comments
 (0)