• Home
  • About
    • Background
    • LinkedIn
    • Presenting Activities
    • Internet Profile
    • About
    • www.cloud-native.info
    • AI Disclosure
  • Observability, Fluent(d) Bit & OpAMP
    • OpAMP Product
    • OpAMP Overview
    • Log Generator
    • Fluent Bit Classic to YAML Format configurations
  • My Books
    • Logs and Telemetry using Fluent Bit
      • Fluent Bit book
      • Book Resources in GitHub
    • Logging in Action with Fluentd, Kubernetes and More
      • Logging in Action with Fluentd – Book
      • Fluentd Book Resources
      • Fluentd & Fluent Bit Additional stuff
    • API & API Platform
      • API Useful Resources
    • Oracle Integration
      • Book Website
      • Useful Reading Sources
    • Publication Contributions
  • Resources
    • GitHub
    • Oracle Integration Site
    • Oracle Resources
    • Mindmaps Index
    • Useful Tech Resources
      • Fluentd & Fluent Bit Additional stuff
      • Recommended Tech Podcasts
      • Official Sources for Product Logos
      • Java and Graal Useful Links
      • DevTips
  • Music
    • Monster On Music
    • Music Listening
    • Music Reading

Phil (aka MP3Monster)'s Blog

~ from Technology to Music

Phil (aka MP3Monster)'s Blog

Tag Archives: GitHub

CICD for our OpAMP Project

01 Tuesday Dec 2026

Posted by mp3monster in Cloud, Fluent Observability, General, OpAMP, Security, Technology

≈ Leave a comment

Tags

apiops, Bandit, CICD, CycloneDX, GitHub, OpAMP, Owasp, Playwright, pytest, SBOM, Security, semgrep, testing, Vitest, xhatops, Zap

As our OpAMP solution has grown and evolved, from showing how OpAMP works, and can help ChatOps and into AIOps to the fr richer offering it has today where we can:

  • Manage most open source Observability tools using the Supervisor or variant Observer models., along with a core set of commands and status information.
  • Simulator for clients so we can exercise the server side at volume.
  • Natural language operations using AI and MCP.
  • Server side presentation, with plugins for editing configurations driven purely by JSON configuration files.
  • Convenience tools using JSON configuration that can make it easy to spin up different test scenarios.
  • Reference solution for the ChatOps concept.

With all of this are the non functional such as authentication, API definitions for the boundaries. Plus the all important build, test, package and securing of the code.

Developing an open-source observability platform involves considerably more than writing code and getting it to compile. We need to be confident that changes don’t break existing functionality, introduce security vulnerabilities, disrupt the user interface or result in packages that can’t be deployed. Keep the documentation aligned and published.

For OpAMP Core, part of the opamp-observe project, we’ve been putting together a development toolchain that addresses these challenges while remaining open-source and independent of commercial development platforms (with the exception of GitHub as a repository, and the use cloud vendors as a test bed).

The approach combines GitHub Actions with Python tooling, automated testing, static and dynamic security analysis, containerized integration environments and controlled release processes.

This article walks through how those pieces fit together, which processes are currently supported, and where we’re looking to take the development pipeline next.

1. The development lifecycle

At a high level, OpAMP Core follows a fairly conventional Git-based development process. It admittedly has evolved, and we’ve tightened on aspects such as security testing. The interesting thing is, as we’ve evolved, and our CI/CD pipeline has been built out, looking for templates to lean into for adoption, we’ve not seen anything that has jumped out at as as tried and proven combination of tools and preconfigured actions.

Contributing content

Contributors work on branches or forks, make changes, validate them locally and submit pull requests. Once reviewed and merged, GitHub Actions takes responsibility for the configured build, deployment and documentation processes.

One important feature of the setup is the separation between application changes and documentation changes. There’s little value in deploying an OpAMP test environment simply because somebody has corrected a spelling mistake.

The main workflow therefore uses path-based exclusions for documentation-only changes, while a separate GitHub Pages workflow handles documentation publication.

Development and CI workflow

OpAMP Core development lifecycle. Grey nodes represent process stages, blue represents testing tools, red security tooling, amber infrastructure and build tools, and green publication activities. Dashed connections identify supporting tools rather than execution dependencies

Figure 1 — OpAMP Core development lifecycle. Grey nodes represent process stages, blue represents testing tools, red security tooling, amber infrastructure and build tools, and green publication activities. Dashed connections identify supporting tools rather than execution dependencies.

The diagram brings together several processes which are sometimes treated as separate concerns:

  • Local development: Git, Python and the developer CLI provide the initial validation capabilities.
  • Version management: A repository-managed pre-commit hook ensures that we don’t accidentally include credentials, and versioning is correct.
  • Continuous integration: GitHub Actions handles the configured main-branch build and optional cloud deployment.
  • Documentation: Jekyll and GitHub Pages provide a separate publication path.
  • Release management: A dedicated workflow validates packages before authorised PyPI publication.

The tool callouts on local validation identify available capabilities; they do not imply that every developer runs every check before committing. We do this more to control the cost of validating changes using AWS and Azure, but from a pragmatic perspective, if we’re developing the Config Editor which can be operated independently of everything else then you don’t need end-to-end tests all the time.

Similarly, not every available test and security scanner runs in the main GitHub Actions build. This distinction is important when evaluating how much assurance the automated pipeline actually provides. When we want to tag the code for a new release, then we run the full regression stack covering unit tests and containerized component and end to end tests.

We are starting to move towards enabling local runners to be registered and OCI runners which can operate without incurring compute costs.

2. Bringing developer tooling together

OpAMP Core contains several Python components, browser-based interfaces, supporting services, and integrations with different observability agents. Not to mention the OpAMP spec specific library in the center.

Testing each component independently is useful, but it becomes increasingly difficult to remember which commands need to be run, how their reports are generated and where the results should be stored. To address this, the repository provides a common developer command-line interface, opamp-dev-cli which with the right flags will be picked up and be accessible in the main cli (opamp-cli) tool as well.

Rather than replacing established testing and security tools, the CLI orchestrates them and gives developers a consistent way of running quality checks across the project.

For example:

# Test one component
opamp-dev-cli build test named provider
​
# Run tests across components
opamp-dev-cli build test all
​
# Run the full repository security gate
opamp-dev-cli build secure all
​
# Run repository end-to-end tests
opamp-dev-cli build test e2e
​
# Run a passive dynamic security scan
opamp-dev-cli build dast baseline

The developer CLI also supports configuration-driven test suites, dependency auditing, packaging, SBOM (Software Bill of Material) generation and release asset preparation.

Testing and security workflow

The developer CLI's testing and security capabilities. The vertically arranged stages are a conceptual grouping, not a requirement to run every check in sequence. OWASP ZAP is a separate DAST activity

Figure 2 — The developer CLI’s testing and security capabilities. The vertically arranged stages are a conceptual grouping, not a requirement to run every check in sequence. OWASP ZAP is a separate DAST activity.

Testing: different tools for different problems

We use several complementary approaches to testing.

  • pytest handles Python unit, integration and protocol-level tests. This includes the logic within the individual components and interactions between services.
  • Vitest addresses JavaScript behaviour that can be tested without launching the complete browser application.
  • Playwright provides end-to-end testing of user interfaces. This is especially valuable for services such as the configuration editor, where a successful API response doesn’t necessarily mean the browser is behaving correctly.

Playwright also produces useful diagnostic evidence, including screenshots, traces and HTML reports. These can make reproducing intermittent UI failures considerably easier.

None of these tools replaces the others. They address different layers of the application.

Static application security testing

Security testing takes a similar layered approach.

  • Ruff performs Python static analysis, including security-related checks. Its speed makes it practical to use frequently during development.
  • Semgrep provides rule-driven static analysis capable of identifying more specific code patterns. The repository maintains reviewed Semgrep rules rather than relying on a continuously changing remote ruleset.
  • Bandit provides Python-focused security analysis, offering an additional perspective on potentially unsafe coding patterns.

The intention isn’t to treat three scanners as multiple guarantees of security. There is some overlap, but the combination helps us achieve a more through level of checking and coverage.

At present, Ruff findings are blocking in the developer security gate, while Semgrep and Bandit findings are report-only during evaluation. Scanner execution failures remain blocking.

This allows the project to introduce additional analysis without immediately making an existing finding baseline prevent all development.

Dependency and secrets analysis

Two further tools address risks that aren’t necessarily visible through source-code inspection.

  • pip-audit examines Python dependencies for known vulnerabilities. The repository’s auditing process uses the locked dependency graph where available, helping ensure that the packages being assessed match those selected for the project.
  • detect-secrets looks for potentially exposed secrets in source-controlled files.

These are different problems: a perfectly written application may still depend on a vulnerable package, while an otherwise harmless configuration change could accidentally expose credentials.

Both belong in the development security process.

Dynamic application security with OWASP ZAP

Static analysis cannot identify every vulnerability. Some problems only become apparent when a running application is exercised through its HTTP interfaces. For this, OpAMP Core includes OWASP ZAP integration. The developer CLI can launch disposable application targets using Docker, then scan them over HTTP and HTTPS.

This gives us two useful levels of testing:

  • Baseline scanning: Passive inspection that avoids deliberately attacking the application.
  • Full scanning: Active security testing, which requires an explicit option acknowledging the potentially disruptive behaviour.

For example:

opamp-dev-cli build dast baseline
opamp-dev-cli build dast full --allow-active-scan

Container isolation is especially useful here. It allows potentially disruptive tests to be performed against a deliberately disposable environment rather than a shared development or production deployment. ZAP also has limitations. It won’t automatically understand the semantics of OpAMP Protobuf messages, all MCP tool permissions or every supervisor command boundary. Those areas still require purpose-built protocol and integration tests.

3. Making the results useful

Running tests is only half the process. We also need useful, repeatable evidence about what happened.

The development toolchain supports several report formats:

ToolTypical evidence
pytestJUnit XML and coverage reports
PlaywrightHTML reports, JUnit XML, traces and screenshots
RuffSARIF findings
SemgrepSARIF findings
BanditJSON findings
pip-auditDependency vulnerability JSON
detect-secretsSecret scan results
OWASP ZAPHTML, JSON, XML and Markdown reports

Standard report formats are useful because they make it easier to integrate results into CI systems, security reporting and code-review workflows.

The developer CLI also retains issue and error logs, allowing developers to inspect more than a single success or failure message.

An important improvement we’re considering is ensuring that every appropriate CI job publishes its test and security evidence consistently, including when an earlier check has failed.

4. Building and releasing components

OpAMP Core is a multi-component Python project rather than a single standalone package. The development tooling supports building Python wheels and source distributions, checking dependency closure, and creating CycloneDX Software Bills of Materials (SBOMs).

Packaging uses uv, while the release process can validate packages and prepare assets for publication. The GitHub PyPI workflow is deliberately separate from everyday development. Before publishing, it requires evidence that the main workflow completed successfully for the corresponding commit. The release process then performs its security and packaging validation.

Publishing uses PyPI Trusted Publishing with GitHub OIDC credentials, avoiding the need for a long-lived PyPI API token in the CI environment.

There’s an important distinction here: a successful main workflow isn’t necessarily equivalent to every available development test having passed. The current main workflow performs dependency installation and its configured cloud operations, while the dedicated release workflow adds further checks.

Strengthening that relationship is one of the opportunities for the next iteration of the development process.

5. Cloud deployment and regression testing

The current GitHub Actions configuration supports three deployment selections: AWS, Azure and no cloud deployment. The AWS path can build and deploy a CloudFormation-based regression environment, execute the configured regression scenarios and retain test evidence in cloud storage. The Azure path can deploy the application to Azure Web App using OIDC authentication.

The build-only path allows the workflow to complete without provisioning cloud infrastructure. This separation is valuable because different changes require different levels of assurance. A small Python change may need unit tests and static analysis, while a change to OpAMP transport behaviour could justify a complete multi-service regression environment It also helps control the cost and complexity of development.

6. The next step: an isolated private GitHub runner

While GitHub-hosted runners are suitable for much of the project’s public CI, there are reasons to introduce an additional self-hosted execution environment.

Some tests can require substantial resources, local Docker access or more elaborate integration environments. However, there’s a security consideration. A public GitHub repository accepts contributions from people we don’t necessarily know. Running arbitrary pull-request code on a persistent self-hosted machine could expose that machine, its credentials or other systems on the same network.

For OpAMP Core, we’re exploring a model that separates normal public CI from privately controlled integration builds.

Proposed private runner process

Proposed on-demand private runner architecture. This represents a future enhancement, not the current GitHub Actions implementation

Figure 3 — Proposed on-demand private runner architecture. This represents a future enhancement, not the current GitHub Actions implementation.

The approach is relatively straightforward.

Public contributions continue to use GitHub-hosted runners. Only after changes have been reviewed would a maintainer initiate an additional build through a separate private CI repository.

A Docker-hosted GitHub runner would register when started, execute the authorised workload and deregister when stopped. The private repository provides the access-control boundary, while the on-demand runner reduces the amount of time that the build environment is active.

It’s worth emphasising that Docker alone isn’t a security boundary against malicious build scripts. We would still need restricted credentials, appropriate host isolation and careful treatment of code selected for execution. The aim is to make more comprehensive testing available without giving every external contributor a path to execute code on privately operated infrastructure.

Where next?

The immediate priorities are to expand automated pull-request quality gates, retain test evidence consistently, continue evaluating additional SAST findings, and introduce the private-runner approach for more demanding integration tests.

Longer term, the aim is to ensure that a released OpAMP Core package can be traced back through the source revision, build environment, dependency set and validation results that produced it.

All of this is being developed openly as part of opamp-observe/opamp-core. With this repo are several related repos, which we’ll start driving these improvement into.

Contributions, suggestions and experiences with similar open-source development pipelines are welcome.


Further reading

  • OpAMP Core repository
  • Contributor guide
  • Build, test and release commands
  • Testing and result review
  • GitHub Actions workflows
  • GitHub Actions security guidance
  • PyTest
  • Semgrep
  • OWASP ZAP
  • CycloneDX

Share this:

  • Share on Facebook (Opens in new window) Facebook
  • Share on X (Opens in new window) X
  • Share on Reddit (Opens in new window) Reddit
  • Share on LinkedIn (Opens in new window) LinkedIn
  • Email a link to a friend (Opens in new window) Email
  • Share on WhatsApp (Opens in new window) WhatsApp
  • Print (Opens in new window) Print
  • Share on Tumblr (Opens in new window) Tumblr
  • Share on Mastodon (Opens in new window) Mastodon
  • Share on Pinterest (Opens in new window) Pinterest
  • Share on Bluesky (Opens in new window) Bluesky
Like Loading...

OpAMP Project – own org in GitHub

21 Monday Sep 2026

Posted by mp3monster in Fluent Observability, OpAMP, Technology

≈ 1 Comment

Tags

GitHub, OpAMP, Technology

As the OpAMP project has grown from a small idea to something pretty substantive, we’ve decided to put it in its own Org and repository with GitHub. This should mean it no longer looks a pet project. The repo name has also been changed as we have address more than just Fluentd and Fluent Bit needs with the Elastic observability pipeline tools having been incorporated with the basic features as well asl Vector.

Git Repo for all OpAMP related content (OpAMP Observe)

The Tool we’ve migrated formerly Fluent-OpAMP now OpAMP-Core

We’ve been checking and correcting links as a result of the changes.

We haven’t migrated the tooling such as the LogGenerator, FluentBit configuration converter to the new Org, but would welcome thoughts on this.

Fluentd & Fluent Bit OpAMP implementation
Fluentd & Fluent Bit OpAMP implementation logo

Share this:

  • Share on Facebook (Opens in new window) Facebook
  • Share on X (Opens in new window) X
  • Share on Reddit (Opens in new window) Reddit
  • Share on LinkedIn (Opens in new window) LinkedIn
  • Email a link to a friend (Opens in new window) Email
  • Share on WhatsApp (Opens in new window) WhatsApp
  • Print (Opens in new window) Print
  • Share on Tumblr (Opens in new window) Tumblr
  • Share on Mastodon (Opens in new window) Mastodon
  • Share on Pinterest (Opens in new window) Pinterest
  • Share on Bluesky (Opens in new window) Bluesky
Like Loading...

Fluent Bit configuration quick reference and editor

27 Wednesday May 2026

Posted by mp3monster in Fluent Observability, Fluentbit, General, OpAMP, Technology

≈ Leave a comment

Tags

AI, docs, Fluent Bit, Fluentd, GitHub, MCP, Music, OpAMP, youtube

Fluent Bit’s documentation is spread across many static web pages; in some cases, attributes allowed for a plugin are documented across several pages. There is absolutely nothing wrong with this. Having written a book on Fluent Bit, I can say it makes sense, and if the standard docs went into further detail, it would increase the spread of content.

The problem is, once you’ve got a grip on Fluent Bit, you want a quick reference just to check the attribute names or confirm that an attribute does what you expect.

The good news is that’s what we have created …

  • Quick references
    • 3.2.10 HTML, Markdown
    • 4.2.4 HTML , Markdown
    • 5.0.4 HTML , Markdown

Each quick reference page has a section at the top that provides a comma-separated list of all the plugins for the different operations, inputs, outputs, etc., with anchor links to that section. Each plugin has a table that lists all configuration attributes, including those inherited from the Fluent Bit kernel and those introduced by extending another plugin.

Why and how …

The “why” may prove even more appealing. As part of our OpAMP project, we wanted to make it easy to edit and validate Fluent Bit and Fluentd configurations before deployment using the OpAMP tooling. That tool became the config-service part of the OpAMP repo, and can be independently deployed as well as function as part of the main OpAMP service. As a result, the UI offers the same authentication and authorisation options, ranging from running without authentication to using OAuth.

This shows the editor with all the different configuration sections collapsed.
All the different editable components collapsed
The editor UI showing part of the plugin config feature
Plugins part of the editor

The key to both the UI and documentation is the use of JSON Schemas, as they contain all the information needed to create documentation just as easily as they power the UI. We have therefore generated a markdown page using a Python script. This means the docs are easy to check (compared to an HTML file) and can be rendered within GitHub. We could extend the script to generate HTML. But rather than trying to remember to keep both document types in sync (and double-check formatting), we found a JavaScript tool (marked.js) that performs an on-the-fly transformation that, as long as we stay within the core Markdown syntax, won’t cause any issues. We’ve then enriched that output a bit by applying stylesheets.

To come…

At the moment, we have only covered a subset of Fluent Bit versions, so we will, in due course, expand to cover more versions. Today, this is just the last version from each major release. We haven’t done every version to date as it does take a lot of effort to go through the documentation to generate and check the schema, and we’re still refining things as we enhance the UI.

We are also looking to do the same for Fluentd, though this is much trickier, as the portfolio of plugins that make up the core is smaller than those incorporated into the core of Fluent Bit, and the leveraging of Ruby’s dynamic behaviour makes it very easy for people to offer plugins separately. Then, of course, there is the task of collating all that information.

Resources

  • Quick references
    • 3.2.10 HTML, Markdown
    • 4.2.4 HTML, Markdown
    • 5.0.4 HTML, Markdown
  • OpAMP landing page
  • GitHub home
  • Fluent Bit
  • Fluentd

Share this:

  • Share on Facebook (Opens in new window) Facebook
  • Share on X (Opens in new window) X
  • Share on Reddit (Opens in new window) Reddit
  • Share on LinkedIn (Opens in new window) LinkedIn
  • Email a link to a friend (Opens in new window) Email
  • Share on WhatsApp (Opens in new window) WhatsApp
  • Print (Opens in new window) Print
  • Share on Tumblr (Opens in new window) Tumblr
  • Share on Mastodon (Opens in new window) Mastodon
  • Share on Pinterest (Opens in new window) Pinterest
  • Share on Bluesky (Opens in new window) Bluesky
Like Loading...

A Fast (and Dirty) Way to Publish API specs

03 Monday Jun 2024

Posted by mp3monster in APIs & microservices, General, Technology

≈ Leave a comment

Tags

API, AstyncAPI, AsyncAPI, Backstage, CLI, CNCF, Git, GitHub, npm, OAS, Open API, Simple Web Server

The API specs created using Open API Specification (OAS) and ASyncAPI specification aren’t just for public API consumption. In today’s world of modular component services that make up a business solution, we’re more than likely to have APIs of one sort or another. These need documenting, perhaps not as robustly as those public-facing ones, but the material needs to be easily accessible.

Spotify’s contribution to the CNCF—Backstage is a great tool for sharing development content, particularly when your document and code repository is at least git-based if not GitHub (you move away from this or don’t easily have permissions to configure application authentication, you can still work with Backstage, but your workload will grow a lot). There is no doubt that Backstage is a very powerful, information-rich product. But that does come at the cost of needing lots of configuration, the generation of metadata descriptors additional to the APIs to be cataloged, etc. All of these can be a little heavy if you’re using Backstage as a low-cost API documentation portal that might fill the gaps that your corporate wiki/doc management (Confluence/SharePoint) solution can’t support (it is one of the very, very few open-source options that can support both OAS and AsyncAPI reader friendly API rendering tools).

We could, of course, adopt the approach of there are free VS Code plugins that can render the friendly views of APIs, so just perform a git pull (or copy the API specs from a central location) to give the nice visualization. This is fine, but the obligation is now on the developer to ensure they have the latest version of the API spec and that they are using VSCode – while it is very dominant as an IDE – not everyone uses it, particularly if you’re working with low code tooling.

There is a fast and inelegant solution to this if you’re not in need of nice features such as attribute-based search and sorting, etc. Both the Open API Specification and the Async API communities have built command line-based renderers that will read your API specification (even if the schema is spread across multiple files) and generate HTML (an index.html file), CCS, and JavaScript renderings that you see in many tools (hyperlinked, folding, with code and payload examples of the API).

So, we need to grab the YAML/JSON specifications and run them through the tool to get the presentation formatting. You do need to get the specs, but we can easily script that with a bit of shell script that retrieves/finds the relevant files from a repository and then runs the CLI utility on the files.

We want to bring the static content to life across the network for developers. So, on a little server, we can host this logic, plus an instance of Apache, IIS, or Nginx if you’re comfortable with one of the industrial superpower web servers. Or use a spin-off project from the Chrome Server called the Simple Web Server. This tool is incredibly simple and provides you with a UI that allows you to configure quickly and easily and then start a web server that can dish up static content. I would hesitate to suggest such an approach for production use cases, but it’s not to be sniffed at for internal solutions, safely behind firewalls, network security, etc.

Steps in summary:

  • Install NPM
  • Install a Simpler Web Server – Apache, Nginx, or even Simple Web Server
  • Install the CLI tools for OpenAPI and AsyncAPI
  • Script to identify API documents and use the CLIs

Steps …

As all the functionality is dependent on Node, we need both Niode.js and NPM (Node Package Manager). Installing the Node Version Manager (NVM) is the easiest way to do that for Linux, and Mac with the command:

curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash

Windows has a separately produced binary called NVM for Windows (which will eventually be superseded by Runtime), which has an installer that can be downloaded from the GitHub releases part of the repo.

Once nvm is installed (and ideally in the OS’ PATH environment variable) we can complete the process with the command:

nvm install lts

Which will see the latest Long Term Support (LTS) version installed.

Open API

To install Open API using NPM:

npm install @openapitools/openapi-generator-cli -g

The command that we will need to wrap in a script is:

npx @openapitools/openapi-generator-cli generate -i <your-open-api-spec.yaml> -g html2 -o <your-output-folder-for-this-api>

As the output generated is index.html with subfolders for the stylesheet and Javascript needed, we recommend using the name of the API Spec file (without the postfix, e.g., .yaml) as the folder name.

AsyncAPI

Just Like the Open API command line, we need to install the Async version using the command line:

npm install -g @asyncapi/cli

The equivalent command to generate the HTML is pretty similar, but, note over time, the template-referenced version will evolve (i.e. @2.3.5 to be a newer version)

asyncapi generate fromTemplate <your-async-api-spec.yaml> @asyncapi/html-template@2.3.5 -o ./<your-output-folder-for-this-api> --force-write

Scripting the Process

As you can see, we need to tease out the API files from the source folder, which may contain other resources, even if such resources are schemas that get included in the API (as our APIs grow in scope, we’ll want to break the definitions up to keep things manageable. but also re-use common schema definitions.

The easiest way to do this is to have a text file providing the path and name of the API definition. Each type of API has its own file – removing the need to first work out which type of API needs to be run.

This also means we can read all the API list files to determine then if any API spec pages need to be removed.

Final Thoughts

One of the things we saw when adopting this approach is that the generating process did highlight an issue in the API YAML that the VS Code plugin for Open API didn’t flag, which was the accidental duplication of the operationId when defining an API (an error when creating related API definitions using a bit of cut, paste, and edit).

A static documentation generator is also available for GraphQL (https://2fd.github.io/graphdoc/); although we have not tested it, the available examples, while making the schema navigable, it isn’t as elegant in presenting the details as our Async and Open APIs,

Share this:

  • Share on Facebook (Opens in new window) Facebook
  • Share on X (Opens in new window) X
  • Share on Reddit (Opens in new window) Reddit
  • Share on LinkedIn (Opens in new window) LinkedIn
  • Email a link to a friend (Opens in new window) Email
  • Share on WhatsApp (Opens in new window) WhatsApp
  • Print (Opens in new window) Print
  • Share on Tumblr (Opens in new window) Tumblr
  • Share on Mastodon (Opens in new window) Mastodon
  • Share on Pinterest (Opens in new window) Pinterest
  • Share on Bluesky (Opens in new window) Bluesky
Like Loading...

Demo Fluentd using Ubuntu with optional inclusion of OpenSearch and OCI Log Analytics

17 Wednesday Aug 2022

Posted by mp3monster in Cloud, development, Fluentd, General, Oracle, Technology

≈ Leave a comment

Tags

Cloud, demo, Fluentd, GitHub, Log Analytics, log simulator, OCI, OpenSearch, Oracle, Ubuntu

One of the areas I present publicly is the use of Fluentd. including the use of distributed and multiple nodes. As many events have been virtual it has been easy to demo everything from my desktop – everything is set up so I can demo things very easily. While doing this all on one machine does point to how compact and efficient Fluentd is as I can run multiple instances concurrently it does undermine distributed capabilities somewhat.

Add to that I now work for Oracle it makes sense to use OCI resources. With that, I have been developing the scripts to configure Ubuntu VMs to set up the demo environments installing Ruby, Fluentd, and various gems needed and pulling the relevant configurations in. All the assets can be found in the GitHub repository https://github.com/mp3monster/logging-demos. The repository readme includes plenty of information as well.

While I’ve been putting this together using OCI, the fact that everything is based on Ubuntu should mean it can be run locally on VMs, WSL2, and adaptable for MacOS as well. The environment has been configured means you can still run on Ubuntu with a single node if desired.

Additional Log Destinations

As the demo will typically be run on OCI we can not only run the demo with a multinode setup, we have extended the setup with several inclusion files so we can utilize OCI services OpenSearch and OCI Log Analytics. If you don’t want to use these services simply replace the contents of several inclusion files including files with the contents of the dummy_inclusion.conf file provided.

Representation of the Demo setup

The configuration works by each destination having one or two inclusion files. The files with the postfix of label-inclusion.conf contains the configuration to direct traffic to the respective service with a configuration that will push log events at a very high frequency to the destination. The second inclusion file injects the duplication of log events to each service. The inclusion declarations in the main node Fluentd config file references an environment variable that should provide the path to the inclusion file to use. As a result, by changing the environment variable to point to a dummy file it becomes possible o configure out the use of one of the services. The two inclusions mean we can keep the store declarations compact and show multiple labels being used. With the OpenSearch setup, we have a variant of the inclusion file model where the route inclusion can reference the logic that we would use in the label directly within the sore declaration.

The best way to see the use of the inclusions is to experiment with setting the different environment variables to reference the different files and then using the Fluentd dry-run feature (more on this in the book).

Setup script

The setup script performs a number of tasks including:

  • Pulling from Git all the resources needed in terms of configuration files and folders
  • Retrieving the necessary plugins against the possibility of their use.
  • Setting up the various environment variables for:
    • Slack token
    • environment variables to reference inclusion files
    • shortcut environment variables and aliases
    • network (IP) address for external services such as OpenSearch
  • Setting up a folder for OCI tokens needed.
  • Setting up temp folders to be used by OCI Plugins as a file-based cache.

Using OpenSearch

OpenSearch setup is documented in a tutorial here, and a Reference Architecture at the time of writing there isn’t a one-click deploy Terraform available in the Oracle Reference Architecture library on GitHub.

Currently, the setup for OpenSearch means manually adding the node1 index into the configuration.

Useful Links:

  • https://opensearch.org/
  • https://docs.oracle.com/en/solutions/oci-opensearch-application-search/#GUID-C968ACCC-2E79-4C88-A466-F9DF2503E920
  • https://www.opensearch.org/blog/technical/2022/02/getting-started-with-fluentd-and-opensearch/?utm_source=pocket_mylist

Log Analytics

Feeding the log analytics service is a more complex process to set up as the feeds need to have metadata about the events being ingested. The downside is the configuration effort is greater, but the payback is that it becomes easier to extract meaningful information quickly because the service has a greater understanding of the content. For example, attributing the logs to a type of source means the predefined or default log formats are immediately understood, and maximum meaning can be retrieved from the log event.

Going to OCI Log Analytics does cut out the need for the Connections hub, which would allow rules and routing to be defined to different OCI services which functionally can help such as directing log events to PagerDuty.

Useful Links

  • https://docs.oracle.com/en/solutions/oci-opensearch-log-analytics/index.html#GUID-9A3E3E7A-C899-4D43-8DA0-4BA7FA3E44ED
  • https://docs.oracle.com/en/cloud/paas/management-cloud/logcs/install-output-plug.html
  • https://docs.oracle.com/en/learn/oci_logging_analytics_fluentd/index.html

Demo Enhancements to come

There are a few things we’re planning to do with the demo:

  • Create a terraform script to perform all the environment setup
  • Integrate the configuration script into the terraform
  • Provide some simple dashboard insights for OpenSearch – currently, this is all manual
  • Basic setup for OCI Log Analytics

Share this:

  • Share on Facebook (Opens in new window) Facebook
  • Share on X (Opens in new window) X
  • Share on Reddit (Opens in new window) Reddit
  • Share on LinkedIn (Opens in new window) LinkedIn
  • Email a link to a friend (Opens in new window) Email
  • Share on WhatsApp (Opens in new window) WhatsApp
  • Print (Opens in new window) Print
  • Share on Tumblr (Opens in new window) Tumblr
  • Share on Mastodon (Opens in new window) Mastodon
  • Share on Pinterest (Opens in new window) Pinterest
  • Share on Bluesky (Opens in new window) Bluesky
Like Loading...

GitHub Actions on OCI

29 Monday Nov 2021

Posted by mp3monster in development, General, Oracle, Technology

≈ Leave a comment

Tags

actions, Cloud, free, GitHub, OCI, Presentation, runners, slide

Today was the first run of some new presentation material looking at the use of GitHub Actions using Runners deployed on OCI Free Tier. The presentation was actually physical rather than virtual which was after 2 years of virtual presenting, rather refreshing. Not to mention the UKOUG hosted the event at the Oval Cricket ground, which made for an interesting venue. The example configuration is included in our GitHub OCI Utilities repository (as we use this solution to help validate and test our development work).

The presentation itself (which includes screenshots of the setup of a simple Action and runner) is here, note I have disconnected my Runners, but you will be able to see the Action configuration but if you try to trigger activity through my repository then nothing will happen.

GitHub Actions – using Free Oracle Cloud Infrastructure (OCI) from Phil Wilkins
Implementing GitHub Action Handlers (aka Runners) on OCI
Continue reading →

Share this:

  • Share on Facebook (Opens in new window) Facebook
  • Share on X (Opens in new window) X
  • Share on Reddit (Opens in new window) Reddit
  • Share on LinkedIn (Opens in new window) LinkedIn
  • Email a link to a friend (Opens in new window) Email
  • Share on WhatsApp (Opens in new window) WhatsApp
  • Print (Opens in new window) Print
  • Share on Tumblr (Opens in new window) Tumblr
  • Share on Mastodon (Opens in new window) Mastodon
  • Share on Pinterest (Opens in new window) Pinterest
  • Share on Bluesky (Opens in new window) Bluesky
Like Loading...

Oracle Cloud + GitHub Actions

05 Monday Jul 2021

Posted by mp3monster in Cloud, development, General, Oracle, Technology

≈ Leave a comment

Tags

@oracledevs, @soacommunity, actions, always free, arm, CICD, Cloud, flake8, free, GitHub, OCI, Oracle, pytest, python, unit test

While there is a deserved amount of publicity around the introduction of ARM compute onto OCI with the ARM Ampere CPU offering, and the amazing level of always free compute being provided (24GB of memory and 4 cores which can be used in any combination of servers). There have been some interesting announcements that perhaps haven’t drawn as much attention that they deserve. This includes OCI support for GitHub Actions, plus several new DevOps services and an Artifact Registry. We’ll comeback to the new services in another post. Today, let’s look at GitHub Actions.

Continue reading →

Share this:

  • Share on Facebook (Opens in new window) Facebook
  • Share on X (Opens in new window) X
  • Share on Reddit (Opens in new window) Reddit
  • Share on LinkedIn (Opens in new window) LinkedIn
  • Email a link to a friend (Opens in new window) Email
  • Share on WhatsApp (Opens in new window) WhatsApp
  • Print (Opens in new window) Print
  • Share on Tumblr (Opens in new window) Tumblr
  • Share on Mastodon (Opens in new window) Mastodon
  • Share on Pinterest (Opens in new window) Pinterest
  • Share on Bluesky (Opens in new window) Bluesky
Like Loading...

Development Standards for API Policies?

16 Monday Dec 2019

Posted by mp3monster in API Platform CS, General, tools

≈ Leave a comment

Tags

API, Azure, code, GitHub, Oracle, quality, regex, utility

When it comes to development, we have had coding standards for almost as long as we have been coding. We tend to look at coding standards for purposes of helping to promote good quality code and reduce the likelihood of bugs and so on. But they also help with readability, making it easy to navigate a code base and so on. This is sufficiently important that there is a vast choice of tools to help us ensure we align with good practices.

That readability etc, when it comes to code interfaces lends to making it easier to use an interface as it promotes consistency and as Don Norman would say avoids ‘cognitive load‘, in other words, the effort involved in performing actions with the interface. Any Java Developer will tell you, want to print out an object (any object) you get a string representation using the .toString() method and direct it using the io packages.

That consistency and predictability are important not just for code if you look at any API best practises documents you’ll encounter directly or indirectly the need to use conventions that drive consistency – use of singular or plural for the name of entities, application of case – camel case, snake case etc. Good naming etc and we’ll see related things appear together in the documentation. Products such as Apiary and SwaggerHub include tooling to help police this in our API design work.

But what about policies that we use to define how an API Gateway handles the receipt and routing of API invocations? Well yes, we should have standards here as well. Some might say, governance gone mad. But gateways are often shared services, so making it easy to see and logically group APIs together at very least by using a good naming convention will help as a minimum. If API management is being administered in a more DevOps fashion, then information security professionals will probably want assurance that developers are applying policies in a recommended manner.

Continue reading →

Share this:

  • Share on Facebook (Opens in new window) Facebook
  • Share on X (Opens in new window) X
  • Share on Reddit (Opens in new window) Reddit
  • Share on LinkedIn (Opens in new window) LinkedIn
  • Email a link to a friend (Opens in new window) Email
  • Share on WhatsApp (Opens in new window) WhatsApp
  • Print (Opens in new window) Print
  • Share on Tumblr (Opens in new window) Tumblr
  • Share on Mastodon (Opens in new window) Mastodon
  • Share on Pinterest (Opens in new window) Pinterest
  • Share on Bluesky (Opens in new window) Bluesky
Like Loading...

Making Scripts Work with IDCS Deployed PaaS

09 Saturday Feb 2019

Posted by mp3monster in API Platform CS, APIs & microservices, General, Oracle, Technology, tools

≈ 5 Comments

Tags

API Platform, GitHub, Groovy, IDCS, OAuth, Script, tokens

A while back I made some utilities I developed to help with managing the API Platform. At the time we didn’t have access to an IDCS based environment, so credentials worked using basic auth (I.e. user name and password). But with environments managed by IDCS tokens are used.

As a developer with a Java background I have to admit to liking Groovy over Python for scripting, not to mention for the API Platform groovy is part of the gateway deployment and SDK. Meaning it is readily available in its 2.x form (3.x is relatively recent and aligning to the latest Java idioms). We haven’t tested against Groovy 3.0

Thank you to Andy Knight for sharing with us some Java code which I adapted to be pure Groovy (removing external dependencies for processing JSON). The result is a script that can be taken can be taken and worked into other scripts (which is what we have done for our previously provided scripts – Understanding API Deployment State on API Platform, Managing API Policy Versioning in Oracle API Platform, Documenting APIs on the Oracle API Platform). But this script can be used to get a token and display it on the command line or write it to file. Writing tokens to files is generally not good practise, but as a temporary measure when working on developing scripts arguably a managed risk.

The script can be found at https://github.com/mp3monster/API-Platform-Utils/tree/master/getToken and all the details on using the script can be obtained by passing -h as a parameter. The important thing is to understand how to obtain the Client ID and Client Secret, the details of which are described at https://docs.oracle.com/en/cloud/paas/api-platform-cloud/apfad/find-your-client-id-and-client-secret.html

Share this:

  • Share on Facebook (Opens in new window) Facebook
  • Share on X (Opens in new window) X
  • Share on Reddit (Opens in new window) Reddit
  • Share on LinkedIn (Opens in new window) LinkedIn
  • Email a link to a friend (Opens in new window) Email
  • Share on WhatsApp (Opens in new window) WhatsApp
  • Print (Opens in new window) Print
  • Share on Tumblr (Opens in new window) Tumblr
  • Share on Mastodon (Opens in new window) Mastodon
  • Share on Pinterest (Opens in new window) Pinterest
  • Share on Bluesky (Opens in new window) Bluesky
Like Loading...

Oracle Developer Meetup – London Feb 19

05 Tuesday Feb 2019

Posted by mp3monster in Dev Meetup, development, General, Oracle, Technology

≈ 2 Comments

Tags

developer, GitHub, Helidon, meetup, micro profile, Microservices, open tracing, Oracle, signatures

Last night was the first Oracle Developer Meetup in London for 2019.  We were very fortunate to have Tomas Langer fly over to talk about the new micro container/framework being developed as an open-source solution by Oracle.

 

Oracle Developer Meet-up - Tomas Langer presenting on Helidon

Tomas, opened by explaining the evolution of the micro-profile being championed by the Eclipse Foundation who are now the guardians of J2EE also known as Jakarta and how the J2EE and Micro-Profile standards compare (in simplistic terms – micro-profile is J2EE stripped back to be simple and support what is typically needed in a micro-service world).

The presentation then went onto compare Helidon SE and Helidon MP (micro-profile).  What was really pleasing is that with a couple of exceptions everything that Helidon MP can do, can be done in the SE edition, the difference being that for SE you have to implement more code, rather than the auto-magic of annotations, but in return you have a Reactive Java platform with a development paradigm which relates to JavaScript Express.

In addition to talking about what can be done, Tomas described the kinds of features being developed, this includes:

  • Bringing micro-profile support up to the very latest specification,
  • More reactive persistence technologies support,

With the scene set, Tomas then worked through a series of live code scenarios starting with a clean slate and building Hello World in both the SE & MP models illustrating the differences in approach.  This was then built upon to add the following capabilities:

  • Tracing (using Zipkin leveraging the Open Tracing Standard)
  • Dynamic configuration
  • Security (including Signatures)
  • Fault Handling (just MP)

You can get the complete example which uses Helidon in both configurations from Tomas GitHub.

In addition to Helidon itself on GitHub, there are resources provided include rich documentation and examples of each key feature.  Plus a Slack community, that if you contact any of the Helidon team will get you invited allowing you to discuss with the development team how to do things along with other developers using Helidon.

Tomas can be contracted via @Langer_Tomas.  Helidon project also has its own Twitter account – Helidon Project

Helidon itself can be found at:

  • Helidon website
  • GitHub
  • Helidon documentation

I have previously blogged on Helidon at Exploring Helidon – Part 1

 

Share this:

  • Share on Facebook (Opens in new window) Facebook
  • Share on X (Opens in new window) X
  • Share on Reddit (Opens in new window) Reddit
  • Share on LinkedIn (Opens in new window) LinkedIn
  • Email a link to a friend (Opens in new window) Email
  • Share on WhatsApp (Opens in new window) WhatsApp
  • Print (Opens in new window) Print
  • Share on Tumblr (Opens in new window) Tumblr
  • Share on Mastodon (Opens in new window) Mastodon
  • Share on Pinterest (Opens in new window) Pinterest
  • Share on Bluesky (Opens in new window) Bluesky
Like Loading...
← Older posts
    • About
      • AI Disclosure
      • Internet Profile
      • Music Buying
      • Presenting Activities
    • Books & Publications
      • Logging in Action with Fluentd, Kubernetes and More
      • Logs and Telemetry using Fluent Bit
      • Oracle Integration
      • API & API Platform
        • API Useful Resources
        • Useful Reading Sources
    • Mindmaps Index
    • Monster On Music
      • Music Listening
      • Music Reading
    • OpAMP explained: the control plane for observability agents
    • Oracle Resources
    • Useful Tech Resources
      • Fluentd & Fluent Bit Additional stuff
        • Logging Frameworks and Fluent Bit and Fluentd connectivity
        • REGEX for BIC and IBAN processing
      • Formatting etc
      • Java and Graal Useful Links
      • Official Sources for Product Logos
      • Python Setup & related tips
      • Recommended Tech Podcasts

    TOGAF 9

    Logs and Telemetry using Fluent Bit


    Logging in Action — Fluentd

    Logging in Action with Fluentd


    Oracle Ace Director Alumni

    Oracle Cloud Integration Book


    API Platform Book


    Oracle Dev Meetup London

    Blog Categories

    • App Ideas
    • Books
    • Enterprise architecture
    • General
      • ExternalWebPublications
      • LinkedIn
      • Website
    • Music
      • Music Resources
      • Music Reviews
    • Photography
    • Podcasts
    • Security
    • Technology
      • AI
      • APIs & microservices
      • chatbots
      • Cloud
      • Cloud Native
      • Dev Meetup
      • development
        • languages
      • drone
      • Fluent Observability
        • Fluentbit
        • Fluentd
        • OpAMP
      • logsimulator
      • mindmap
      • OMESA
      • Oracle
        • API Platform CS
          • tools
        • ITSO & OEAF
        • OIC – ICS
        • Oracle Cloud Native
        • OUG
      • railroad diagrams
      • TOGAF

    Enter your email address to subscribe to this blog and receive notifications of new posts by email.

    Join 2,629 other subscribers

    RSS

    RSS Feed RSS - Posts

    RSS Feed RSS - Comments

    December 2026
    M T W T F S S
     123456
    78910111213
    14151617181920
    21222324252627
    28293031  
    « Nov    

    Speaker Recognition

    Open Source Summit Speaker

    Twitter

    Tweets by mp3monster

    History

    Flickr Pics

    More Photos

    Social

    • View @mp3monster’s profile on Twitter
    • View philwilkins’s profile on LinkedIn
    • View mp3monster’s profile on GitHub
    • View mp3monster’s profile on Flickr
    • View mp3muncher’s profile on WordPress.org
    • View philmp3monster’s profile on Twitch
    Follow Phil (aka MP3Monster)'s Blog on WordPress.com

    Blog at WordPress.com.

    • Subscribe Subscribed
      Phil (aka MP3Monster)'s Blog
      Join 233 other subscribers

      Have a WordPress.com account? Log in now.

    • Phil (aka MP3Monster)'s Blog
      View site in Reader
      Manage subscriptionsSign upLog in
      Report this content
      Collapse this bar
    Loading Comments...

    You must be logged in to post a comment.

    Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use.
    To find out more, including how to control cookies, see here: Our Cookie Policy
    %d