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

Last call! Secure your stack and shape the future! Help dev teams across the globe navigate their software supply chain security challenges.

Modernize your data layer. Learn how to design cloud-native database architectures to meet the evolving demands of AI and GenAI workloads.

Releasing software shouldn't be stressful or risky. Learn how to leverage progressive delivery techniques to ensure safer deployments.

Avoid machine learning mistakes and boost model performance! Discover key ML patterns, anti-patterns, data strategies, and more.

Related

  • Telemetry Pipelines Workshop: Installing Fluent Bit From Source
  • How Observability Is Redefining Developer Roles
  • How to Quarantine a Malicious File in Java
  • Router4j: A Free Alternative to Google Maps for Route and Distance Calculation

Trending

  • Revolutionizing Financial Monitoring: Building a Team Dashboard With OpenObserve
  • The Role of Functional Programming in Modern Software Development
  • How Clojure Shapes Teams and Products
  • SQL Server Index Optimization Strategies: Best Practices with Ola Hallengren’s Scripts
  1. DZone
  2. Software Design and Architecture
  3. Cloud Architecture
  4. O11y Guide: Exploring Perses API and Tooling

O11y Guide: Exploring Perses API and Tooling

In this article, journey into the world of cloud-native observability and continue the exploration of an open-source project called Perses.

By 
Eric D.  Schabell user avatar
Eric D. Schabell
DZone Core CORE ·
Jan. 06, 23 · Tutorial
Likes (3)
Comment
Save
Tweet
Share
4.2K Views

Join the DZone community and get the full member experience.

Join For Free

In this seventh installment of the series covering my journey into the world of cloud-native observability, I'm continuing to explore an open-source project called Perses. 

Perses Demo

After laying out the groundwork for this series in the initial article, I spent some time in the second article sharing who the observability players are. I also discussed the teams that these players are on in this world of cloud-native o11y. For the third article, I looked at the ongoing discussion around monitoring pillars versus phases. In the fourth article, I talked about keeping your options open with open-source standards. In my last installment, the fifth article in this series, I talked about bringing monolithic applications into the cloud-native o11y world. In my sixth and last article, I provided you with an introduction to a new open-source dashboard and visualization project and shared how to install the project on your local developer machine.

Being a developer from my early days in IT, it's been very interesting to explore the complexities of cloud-native o11y. Monitoring applications goes way beyond just writing and deploying code, especially in the cloud-native world. One thing remains the same: maintaining your organization's architecture always requires both a vigilant outlook and an understanding of available open standards.

In this seventh article, we'll be exploring the Perses application programming interface (API) and tooling. This is a preview of the third lab developed for my hands-on workshop dedicated to exploring dashboards and visualization.

This article is part of my ongoing effort to get practical hands-on experience in the cloud-native o11y world. Today you'll be learning about the available tooling in the Perses project and how its API works on your local development machine. This is one lab in the more extensive free online workshop. Feel free to start from the very beginning of this workshop here if you missed anything previously.

Workshop: Getting started with Perses, intro slide

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

Perses: Lab 3 slide

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

API and Tooling

This lab explores the Perses API and how to use the Perses command line tooling to gain insights into the currently available projects, dashboards, and data sources. After installing Perses in the previous lab, you have the 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 server. 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.

Perses API

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
  • Datasource

There are five API operations that can be applied to any resource, each providing us the ability to manipulate resources:

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

Response screenIn this lab, I share how to leverage this API from a browser and from an API client so that the raw browser output is then formatted in a nicely readable format. This section of the lab ends with a pointer to the official Perses documentation.

Output in a readable format

Next up, this lab dives into the tooling, which is the Perses command line executable known as the 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 in the Perses Easy Install project in the support directory at support/bin/percli. The rest of this lab is dedicated to exploring how to use this tooling and we explore a few of the interesting 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 learn by using each and every one of these commands through the percli tooling and are provided with both the before and after views of your system as you work through it all.Before and after views of system

You're now one step closer to creating your own dashboards and visualizations!

More To Come

Next up, I take you farther into the Perses project with more workshop materials to share. Stay tuned for more insights into a real practical experience as my cloud-native o11y journey continues.

API Open source 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

  • Telemetry Pipelines Workshop: Installing Fluent Bit From Source
  • How Observability Is Redefining Developer Roles
  • How to Quarantine a Malicious File in Java
  • Router4j: A Free Alternative to Google Maps for Route and Distance Calculation

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!