Chronosphere partners with Pulumi to streamline the deployment, management, and monitoring of cloud native workloads

An icon of a workflow with gears and a checkmark, set against a blue and green background with wave-like patterns, representing the efficiency of managing cloud-native workloads.
ACF Image Blog

Learn how the new Chronosphere Provider for Pulumi enables developers to deploy, manage, and monitor their cloud native workloads seamlessly. 

Karl Kalash, a man with short dark hair and a beard, smiles while standing against a plain white background. He is wearing a black shirt and a black jacket.
Karl Kalash | Product Marketing Manager | Chronosphere
3 MINS READ

We’re excited to announce a new partnership with Pulumi, a leading infrastructure-as-code platform. This collaboration combines Chronosphere’s industry-leading observability platform with Pulumi’s powerful automation capabilities. The new Chronosphere Provider for Pulumi enables developers to deploy, manage, and monitor their cloud native workloads seamlessly.

What can you do with the Chronosphere provider for Pulumi?

By treating observability as code, just like your application code and infrastructure, you gain complete control, visibility, and collaboration across your entire stack. The Chronosphere Pulumi provider empowers developers to build, deploy, and monitor modern applications confidently.

Some of the key features are:

  • Version Control Your Observability Stack: Track changes, collaborate effectively, and effortlessly roll back to previous configurations, which ensures your monitoring and alerting setup is always reliable across all your environments.
  • Streamline Your Deployments: Define your infrastructure and observability resources (alerts, monitors, dashboards, etc) alongside your application code and enable automated deployments through CI/CD pipelines with Pulumi’s automation.
  • Enforce Change Management: Require code reviews and team approvals to protect your observability resources from accidental changes or misconfigurations.
  • Unify Your Workflows: Manage your entire cloud native stack using familiar GitOps and DevOps practices, eliminating the need to switch between tools, thereby simplifying your development workflow.

The Chronosphere Pulumi provider supports TypeScript, Python, Go, Java, C# and YAML, and can be installed using the Pulumi CLI

team = chronosphere.Team("testTeam",
    name="Pulumi Test Team",
    slug="pulumi-test-team",
)

notifier = chronosphere.EmailAlertNotifier("testNotifier",
    name="Pulumi Test Notifier",
    slug="pulumi-test-notifier",
    to="[email protected]",
)

notification_policy = chronosphere.NotificationPolicy("testNotificationPolicy",
    name="Pulumi Test Notification Policy",
    slug="pulumi-test-notification-policy",
    team_id=team.id,
    routes=[{
        "severity": "warn",
        "notifiers": [notifier.slug],
    }],
)

collection = chronosphere.Collection("testCollection",
    name="Pulumi Test Collection",
    slug="pulumi-test-collection",
    team_id=team.id,
    notification_policy_id=notification_policy.id,
)

monitor = chronosphere.Monitor("testMonitor",
    name="Pulumi Test Monitor",
    slug="pulumi-test-monitor",
    collection_id=collection.id,
    query={
        "prometheus_expr": 'chrono_test_metric{job="chrono_test_job"}',
    },
    series_conditions={
        "conditions": [{
            "op": "GT",
            "value": 1000,
            "severity": "critical",
            "sustain": "10h",
        }],
    },
)

This code snippet shows how you can use the Chronosphere Pulumi provider to define and manage your observability resources. In this example, we’re creating a team, an email notification channel, a notification policy, a collection to group related monitors, and finally, a monitor that tracks a specific metric and triggers alerts based on predefined conditions.

By leveraging the joint solution, you will unlock the following key advantages:

Accelerated Development Cycles

The ability to define and deploy observability configurations as code eliminates manual processes and reduces the time spent on setup and maintenance. This allows developers to focus on what they do best: building new features and improving their applications.

Enhanced Collaboration

Using GitOps practices for observability improves collaboration among developers, operations teams, and other engineers. This enables them to collaborate seamlessly to define, refine, and implement their infra and observability strategies.

Improved Code Quality and Reliability

By treating observability configurations as code, engineers can apply the same rigor and best practices for application development. The ability to version control, review, and test observability alongside application code helps identify and address potential issues early in development, leading to more reliable and resilient systems.

Reduced Context Switching

Managing observability configurations within the same workflow as infrastructure and application code eliminates the need to switch between different tools and processes. This approach reduces unnecessary cognitive load and helps developers reclaim valuable time.

Get Started with Chronosphere and Pulumi

The Chronosphere provider is now available through the Pulumi registry. Check our documentation to learn more and start monitoring your cloud native workloads with code.

Join us at PulumiUP on September 18th to hear more about the partnership and how it can help you achieve infrastructure and observability as code. We’re excited to see how you’ll use Chronosphere and Pulumi to seamlessly build, deploy, and monitor your cloud native applications!

Check out the 2024 Gartner® Magic Quadrant™ for Observability Platforms

Share This: