Skip to content

Commit 6fcc9d0

Browse files
minor changes
1 parent 62883ec commit 6fcc9d0

File tree

7 files changed

+22
-22
lines changed

7 files changed

+22
-22
lines changed

Dockerfile.base.alpine

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@ RUN apk add --no-cache \
1414

1515
ENV PATH=${PATH}:/usr/local/go/bin
1616

17-
WORKDIR /opt/workspace/yc-agent
17+
WORKDIR /opt/workspace/yc-360-script
1818

1919
ENTRYPOINT ["/bin/sh"]

Makefile

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,17 @@ _:
66
echo "default"
77

88
alpine:
9-
docker build -f Dockerfile.base.alpine -t yc-agent-base:alpine .
9+
docker build -f Dockerfile.base.alpine -t yc-360-script-base:alpine .
1010

1111
base: alpine
12-
docker rm -f yc-agent-alpine || true
12+
docker rm -f yc-360-script-alpine || true
1313
docker run --init -d -ti --rm \
14-
--name yc-agent-alpine \
15-
-v $(CWD):/opt/workspace/yc-agent \
16-
yc-agent-base:alpine
14+
--name yc-360-script-alpine \
15+
-v $(CWD):/opt/workspace/yc-360-script \
16+
yc-360-script-base:alpine
1717

1818
shell:
19-
docker exec -it yc-agent-alpine /bin/sh
19+
docker exec -it yc-360-script-alpine /bin/sh
2020

2121
build:
22-
docker exec -it yc-agent-alpine /bin/sh -c "cd cmd/yc && go build -o yc -ldflags='-s -w' -buildvcs=false && mkdir -p ../../bin/ && mv yc ../../bin/"
22+
docker exec -it yc-360-script-alpine /bin/sh -c "cd cmd/yc && go build -o yc -ldflags='-s -w' -buildvcs=false && mkdir -p ../../bin/ && mv yc ../../bin/"

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
# yc-360 Script: One Script to Capture 360° Production Artifacts
22
[![License](https://img.shields.io/badge/license-Apache%202.0-orange.svg)](LICENSE)
3-
[![Docs](https://img.shields.io/badge/yc--360%20Script-Documentation-green)](https://test.docs.ycrash.io/ycrash-agent/launch-modes/only-capture-mode.html)
3+
[![Docs](https://img.shields.io/badge/yc--360%20Script-Documentation-green)](https://docs.ycrash.io/yc-360/launch-modes/only-capture-mode.html)
44

55
![img](/docs/images/360-degree.png)
66

77
## What is yc-360 Script?
88

9-
**yc-360 script** is a simple script that captures 16 different artifacts from your application in a [pristine manner](https://test.docs.ycrash.io/ycrash-agent/features/pristine-capture.html), which are highly useful to troubleshoot production problems. Here is the list of artifacts captured by the script:
9+
**yc-360 script** is a simple script that captures 16 different artifacts from your application in a [pristine manner](https://docs.ycrash.io/yc-360/features/pristine-capture.html), which are highly useful to troubleshoot production problems. Here is the list of artifacts captured by the script:
1010

1111
| **Artifact** | **What It Captures** |
1212
|-----------------------|--------------------------------------------------------------------------------------|
@@ -39,7 +39,7 @@
3939

4040
## Getting Started - How to run the yc-360 Script?
4141

42-
It’s easy to get started with the yc-360 script. Just follow the simple steps provided in our [Getting Started Guide](https://test.docs.ycrash.io/ycrash-agent/launch-modes/only-capture-mode.html). In a matter of seconds, you’ll be able to trigger the script and collect all the critical artifacts needed for troubleshooting.
42+
It’s easy to get started with the yc-360 script. Just follow the simple steps provided in our [Getting Started Guide](https://docs.ycrash.io/yc-360/launch-modes/only-capture-mode.html). In a matter of seconds, you’ll be able to trigger the script and collect all the critical artifacts needed for troubleshooting.
4343

4444
Whether you're running on Linux, Windows, Mac, Docker, K8, … the guide walks you
4545
through the setup and execution process.
@@ -61,7 +61,7 @@ Please refer to any one of the following links if you want to build the yc-360-s
6161
<details>
6262
<summary><strong>1. What if I Want to Capture Additional Data that yc-360 Script Doesn’t Collect by Default?</strong></summary>
6363

64-
You can extend the functionality using the [`-edScript` argument](https://test.docs.ycrash.io/ycrash-agent/features/extended-data.html). This lets you specify a custom script that yc-360 script will execute as the final step, allowing you to capture additional logs, metrics, or custom files specific to your environment.
64+
You can extend the functionality using the [`-edScript` argument](https://docs.ycrash.io/yc-360/features/extended-data.html). This lets you specify a custom script that yc-360 script will execute as the final step, allowing you to capture additional logs, metrics, or custom files specific to your environment.
6565
</details>
6666

6767
<details>
@@ -84,7 +84,7 @@ Absolutely. The yc-360 script is a non-intrusive, read-only script. It doesn’t
8484
<details>
8585
<summary><strong>4. Can yc-360 Script be executed in containerized environments like Docker, Kubernetes, or OpenShift?</strong></summary>
8686

87-
Yes, yc-360 script is designed to work seamlessly across all major environments — including bare-metal servers, virtual machines, Docker containers, Kubernetes, and OpenShift. You can execute the script directly inside your containers or use it as part of a sidecar or init container to collect diagnostic data. For detailed guidance on each supported environments, visit [https://test.docs.ycrash.io/ycrash-agent/environment/introduction.html](https://test.docs.ycrash.io/ycrash-agent/environment/introduction.html)
87+
Yes, yc-360 script is designed to work seamlessly across all major environments — including bare-metal servers, virtual machines, Docker containers, Kubernetes, and OpenShift. You can execute the script directly inside your containers or use it as part of a sidecar or init container to collect diagnostic data. For detailed guidance on each supported environments, visit [https://docs.ycrash.io/yc-360/environment/introduction.html](https://docs.ycrash.io/yc-360/environment/introduction.html)
8888
</details>
8989

9090
<details>

internal/agent/agent.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ func Run() error {
2525

2626
// Validation: if no mode is specified (neither M3, OnDemand, nor API Mode), abort here
2727
if !onDemandMode && !apiMode && !m3Mode {
28-
logger.Log("WARNING: M3 mode is not enabled. API mode is not enabled. Agent is about to run OnDemand mode but no PID is specified.")
28+
logger.Log("WARNING: M3 mode is not enabled. API mode is not enabled. The yc-360 script is about to run OnDemand mode but no PID is specified.")
2929

3030
return ErrNothingCanBeDone
3131
}
@@ -64,8 +64,8 @@ func Shutdown() {
6464
}
6565

6666
func startupLogs() {
67-
logger.Log("yc agent version: " + executils.SCRIPT_VERSION)
68-
logger.Log("yc script starting...")
67+
logger.Log("yc-360 script version: " + executils.SCRIPT_VERSION)
68+
logger.Log("yc=360 script starting...")
6969

7070
msg, ok := common.StartupAttend()
7171
logger.Log(

internal/agent/m3/m3.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -197,8 +197,8 @@ func GetM3CommonEndpointParameters(timestamp string, timezone string) string {
197197
}
198198

199199
func (m3 *M3App) captureAndTransmit(pids map[int]string, endpoint string) (err error) {
200-
logger.Log("yc agent version: " + executils.SCRIPT_VERSION)
201-
logger.Log("yc script starting in m3 mode...")
200+
logger.Log("yc-360 script version: " + executils.SCRIPT_VERSION)
201+
logger.Log("yc-360 script starting in m3 mode...")
202202

203203
logger.Log("Starting collection of top data...")
204204
capTop := &capture.Top4M3{}
@@ -356,7 +356,7 @@ func uploadThreadDumpM3(endpoint string, pid int, sendPidParam bool) {
356356
capThreadDump.SetEndpointParam("pid", strconv.Itoa(pid))
357357
}
358358
capThreadDump.SetEndpointParam("cpuCount", strconv.Itoa(runtime.NumCPU()))
359-
359+
360360
threadDump = capture.GoCapture(endpoint, capture.WrapRun(capThreadDump))
361361
// -------------------------------
362362
// Log Thread dump

internal/agent/ondemand/ondemand.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -783,7 +783,7 @@ Resp: %s
783783
}
784784
agentLogFile = nil
785785
logger.Log(
786-
`AGENT LOG DATA
786+
`YC-360 SCRIPT LOG DATA
787787
Is transmission completed: %t
788788
Resp: %s
789789

internal/cli/cli.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ func Run() {
3030
runCaptureModeIfConditionSatisfied()
3131

3232
if config.GlobalConfig.ShowVersion {
33-
logger.Log("yc agent version: " + executils.SCRIPT_VERSION)
33+
logger.Log("yc-360 script version: " + executils.SCRIPT_VERSION)
3434
return
3535
}
3636

@@ -45,7 +45,7 @@ func Run() {
4545
logger.Log("Error: %s", err.Error())
4646
}
4747

48-
logger.Log("Agent is shutting down...")
48+
logger.Log("yc-360 script is shutting down...")
4949
agent.Shutdown()
5050

5151
if err != nil {

0 commit comments

Comments
 (0)