npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

cdk8s-xray

v0.1.3

Published

Provides a cdk8s Construct to synthesize [AWS X-Ray](https://docs.aws.amazon.com/xray/latest/devguide/aws-xray.html) api-resources on Amazon EKS.

Downloads

2

Readme

cdks8-xray

Provides a cdk8s Construct to synthesize AWS X-Ray api-resources on Amazon EKS.

Build NPM Version

Installation and Usage

Install cdk8s-xray construct from npm or yarn:

npm install -s cdk8s-xray

Usage:

import { XRayApp, DaemonProtocol, XRayConfig } from 'cdk8s-xray'

// inside your chart:
let config: XRayConfig = {
    image: "rnzdocker1/eks-workshop-x-ray-daemon:dbada4c77e6ae10ecf5a7b1c5864aa6522d9fb02",
    ns: "default",
    daemon: {
        daemonProtocol: DaemonProtocol.UDP,
        port: 2000,
        logLevel: "prod"
    }
}

new XRayApp(this, 'prod', config);

Features:

  • Adapted from the EKS Workshop X-Ray. A few cdk8s quirks make the generated manifest different though:

    apiVersion: rbac.authorization.k8s.io/v1
    kind: ClusterRoleBinding
    metadata:
    name: xray-prod-clusterrolebinding-xray-daemon-b962136e
    roleRef:
    apiGroup: rbac.authorization.k8s.io
    kind: ClusterRole
    name: cluster-admin
    subjects:
    - kind: ServiceAccount
        name: xray-daemon
        namespace: default
    ---
    apiVersion: v1
    kind: Service
    metadata:
    name: xray-service
    spec:
    clusterIP: None
    ports:
        - name: incoming
        port: 2000
        protocol: UDP
    selector:
        app: xray-daemon
        cdk8s/chart: xray
    ---
    apiVersion: v1
    kind: ServiceAccount
    metadata:
    labels:
        app: xray-daemon
        cdk8s/chart: xray
    name: xray-daemon
    namespace: default
    ---
    apiVersion: apps/v1
    kind: DaemonSet
    metadata:
    name: xray-prod-daemonset-xray-daemon-fcac88af
    spec:
    selector:
        matchLabels:
        app: xray-daemon
        cdk8s/chart: xray
    template:
        metadata:
        labels:
            app: xray-daemon
            cdk8s/chart: xray
        spec:
        containers:
            - command:
                - /usr/bin/xray
                - -c
                - /aws/xray/config.yaml
            image: rnzdocker1/eks-workshop-x-ray-daemon:dbada4c77e6ae10ecf5a7b1c5864aa6522d9fb02
            imagePullPolicy: Always
            name: xray-daemon
            ports:
                - containerPort: 2000
                hostPort: 2000
                name: xray-ingest
                protocol: UDP
            resources:
                limits:
                memory: 24Mi
            volumeMounts:
                - mountPath: /aws/xray
                name: config-volume
                readOnly: true
        hostNetwork: true
        volumes:
            - configMap:
                name: xray-config
            name: config-volume
    updateStrategy:
        type: RollingUpdate
    ---
    apiVersion: v1
    data:
    config.yaml: >-
        # Maximum buffer size in MB (minimum 3). Choose 0 to use 1% of host memory. 
    
        TotalBufferSizeMB: 0
    
        # Maximum number of concurrent calls to AWS X-Ray to upload segment documents.
    
        Concurrency: 8
    
        # Send segments to AWS X-Ray service in a specific region
    
        Region: ""
    
        # Change the X-Ray service endpoint to which the daemon sends segment documents.
    
        Endpoint: ""
    
        Socket:
        # Change the address and port on which the daemon listens for UDP packets containing segment documents.
        # Make sure we listen on all IP's by default for the k8s setup
        UDPAddress: 0.0.0.0:2000
        Logging:
        LogRotation: true
        # Change the log level, from most verbose to least: dev, debug, info, warn, error, prod (default).
        LogLevel: prod
        # Output logs to the specified file path.
        LogPath: ""
        # Turn on local mode to skip EC2 instance metadata check.
    
        LocalMode: false
    
        # Amazon Resource Name (ARN) of the AWS resource running the daemon.
    
        ResourceARN: ""
    
        # Assume an IAM role to upload segments to a different account.
    
        RoleARN: ""
    
        # Disable TLS certificate verification.
    
        NoVerifySSL: false
    
        # Upload segments to AWS X-Ray through a proxy.
    
        ProxyAddress: ""
    
        # Daemon configuration file format version.
    
        Version: 1
    kind: ConfigMap
    metadata:
    name: xray-config
    

Release Notes:

Initial Release, Contributions welcome

License:

Apache-2.0