DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Please enter at least three characters to search
Refcards Trend Reports
Events Video Library
Refcards
Trend Reports

Events

View Events Video Library

Zones

Culture and Methodologies Agile Career Development Methodologies Team Management
Data Engineering AI/ML Big Data Data Databases IoT
Software Design and Architecture Cloud Architecture Containers Integration Microservices Performance Security
Coding Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Culture and Methodologies
Agile Career Development Methodologies Team Management
Data Engineering
AI/ML Big Data Data Databases IoT
Software Design and Architecture
Cloud Architecture Containers Integration Microservices Performance Security
Coding
Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance
Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks

Because the DevOps movement has redefined engineering responsibilities, SREs now have to become stewards of observability strategy.

Apache Cassandra combines the benefits of major NoSQL databases to support data management needs not covered by traditional RDBMS vendors.

The software you build is only as secure as the code that powers it. Learn how malicious code creeps into your software supply chain.

Generative AI has transformed nearly every industry. How can you leverage GenAI to improve your productivity and efficiency?

Related

  • Build a Simple REST API Using Python Flask and SQLite (With Tests)
  • Build a REST API With Just 2 Classes in Java and Quarkus
  • Micronaut vs Spring Boot: A Detailed Comparison
  • Best Practices for Designing Resilient APIs for Scalability and Reliability

Trending

  • AI Agents: A New Era for Integration Professionals
  • Optimizing Serverless Computing with AWS Lambda Layers and CloudFormation
  • When Airflow Tasks Get Stuck in Queued: A Real-World Debugging Story
  • How to Introduce a New API Quickly Using Micronaut
  1. DZone
  2. Testing, Deployment, and Maintenance
  3. Monitoring and Observability
  4. Open Dashboard and Visualization Workshop: Exploring Perses API

Open Dashboard and Visualization Workshop: Exploring Perses API

This article explores an updated introduction to the PersesAPI, as well as an open dashboard and visualization workshop.

By 
Eric D.  Schabell user avatar
Eric D. Schabell
DZone Core CORE ·
Dec. 12, 23 · Tutorial
Likes (4)
Comment
Save
Tweet
Share
3.3K Views

Join the DZone community and get the full member experience.

Join For Free

Back in December of 2022, I started a series taking you on a tour of the Perses project. These articles covered this fairly new open dashboard and visualization project targeting cloud-native environments. I used a "getting started" workshop to guide you through this series and to provide a hands-on experience for those new to visualizing observability data.Perses Dashboard

In the previous article, I kicked off with an introduction to and installation of Perses and provided links to the actual online workshop content.

In this article, I'll share a guided tour of the Perses application programming interface (API) and how you can interact with your Perses instance through its API.

Let's dive right in, shall we?

I'm going to preview the Perses API as covered in my workshop lab before diving into the actual hands-on with the project.

You can find the free workshop here online:

Workshop: Getting started with open dashboards and visualization slide

Now let's dive into the Perses project API lab. Note this article is only a short summary, so please see the complete lab found online as lab 3 to work through the API experience yourself:

Lab 3 - Exploring dashboard tooling slide

The following is a short overview of what is in this specific lab of the Perses workshop.

Perses API

One of the most interesting aspects of any project for developers is the amount and ease of access that a project API provides. Rest assured, everything you ever might want to do with your Perses instance is covered, allowing you to perform operations on your resources. You'll see that a resource is part of the Perses dashboard specification and you can perform all of the following with your resources known as CRUD (create, read, update, delete):

  • Creating a resource
  • Retrieving a resource
  • Updating a resource
  • Deleting a resource
  • Retrieving a list of resources

After installing Perses in the previous lab, you have a dashboard open in your browser. There is an application programming interface (API) available for you to gain insights into the configuration applied to your Perses instance. You can find out more about the projects, dashboards, and data sources that have been created. This can be handy to start with existing resources and modify them for your own versions.

The pre-installed project is called WorkshopProject. This is how we get started exploring some of the provided API operations for handling a Perses resource, which can be one of the following:

  • Project
  • Dashboard
  • Data source

You learn that you can use a standard browser and the RestAPI (URL) to leverage the API operations, such as how you can view the configured projects on your Perses server with a browser, just enter this URL:

http://localhost:8080/api/v1/projects

This shows you the unformatted JSON output of the available projects. You should see the single WorkshopProject listed:

Unformatted JSON output of available projects

Next, you explore an example REST API tool and query the same operation:

Same operation in example RestAPI tool

See the results now embedded and formatted nicely for human consumption:

Results, formatted and embedded

Finally, you'll start using the provided Perses command line executable known as percli. If you built the project from the source code, you have built this executable, but if you are using the container image installation, then you will find an executable percli for your operating system using the pointers provided in the lab. The rest of this lab is dedicated to exploring how to use this command line tool and you explore all of the following commands:

  • login - Log in to an instance of the Perses API
  • get - Request a response from the Perses API
  • project - Select a project to be used as the default
  • describe - Request details for a specific resource
  • delete - Delete a specific resource
  • apply - Create or update existing resources using JSON or YAML file

You'll learn by using each one of these commands and exploring the output they provide. For example, if you use the command line tool to get all the projects in your Perses instance, it would look like this in your console:Console: all projects in Perses instance

This lab leaves you one step closer to creating your own dashboards and visualizations.

More To Come

Next up, I'll continue working with you through the Perses project with a look at the Perses specification. Stay tuned for more insights into a real practical experience as my cloud-native o11y journey continues.

API REST Cloud native computing Observability

Published at DZone with permission of Eric D. Schabell, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

Related

  • Build a Simple REST API Using Python Flask and SQLite (With Tests)
  • Build a REST API With Just 2 Classes in Java and Quarkus
  • Micronaut vs Spring Boot: A Detailed Comparison
  • Best Practices for Designing Resilient APIs for Scalability and Reliability

Partner Resources

×

Comments
Oops! Something Went Wrong

The likes didn't load as expected. Please refresh the page and try again.

ABOUT US

  • About DZone
  • Support and feedback
  • Community research
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Core Program
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 3343 Perimeter Hill Drive
  • Suite 100
  • Nashville, TN 37211
  • support@dzone.com

Let's be friends:

Likes
There are no likes...yet! 👀
Be the first to like this post!
It looks like you're not logged in.
Sign in to see who liked this post!