Skip to content

Commit 6ae68b3

Browse files
committed
cleanup: remove unused process_agent_enabled
Signed-off-by: Andrea Terzolo <andreaterzolo3@gmail.com>
1 parent fc0563f commit 6ae68b3

5 files changed

Lines changed: 0 additions & 17 deletions

File tree

DockerFiles/agent/stackstate-docker.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
log_level: debug
22

33

4-
process_agent_enabled: true
54
incremental_publishing_enabled: true
65
process_config:
76
enabled: 'true'

conf-dev.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ sts_url: http://localhost:7077/stsAgent
1313
# Use this when running process agent with branch deploy
1414
#sts_url: https://<branch-name>.test.stackstate.io/stsAgent
1515
api_key: API_KEY
16-
process_agent_enabled: true
1716
incremental_publishing_enabled: true
1817
local_run: true
1918
process_config:

config/config_test.go

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,6 @@ func TestAgentConfigYamlOnly(t *testing.T) {
335335
err := yaml.Unmarshal([]byte(strings.Join([]string{
336336
"sts_url: 'https://stackstate.com'",
337337
"api_key: apikey_20",
338-
"process_agent_enabled: true",
339338
"process_config:",
340339
" enabled: 'true'",
341340
" queue_size: 10",
@@ -366,7 +365,6 @@ func TestAgentConfigYamlOnly(t *testing.T) {
366365
err = yaml.Unmarshal([]byte(strings.Join([]string{
367366
"sts_url: 'https://stackstate.com'",
368367
"api_key: apikey_20",
369-
"process_agent_enabled: true",
370368
"incremental_publishing_enabled: false",
371369
"incremental_publishing_refresh_interval: 120",
372370
"process_config:",
@@ -396,7 +394,6 @@ func TestAgentConfigYamlOnly(t *testing.T) {
396394
err = yaml.Unmarshal([]byte(strings.Join([]string{
397395
"sts_url: 'https://stackstate.com'",
398396
"api_key: apikey_20",
399-
"process_agent_enabled: true",
400397
"process_config:",
401398
" enabled: 'disabled'",
402399
" queue_size: 10",
@@ -418,7 +415,6 @@ func TestAgentConfigYamlOnly(t *testing.T) {
418415
err = yaml.Unmarshal([]byte(strings.Join([]string{
419416
"sts_url: 'https://stackstate.com'",
420417
"api_key: apikey_20",
421-
"process_agent_enabled: true",
422418
"process_config:",
423419
" enabled: 'disabled'",
424420
" additional_endpoints:",
@@ -450,7 +446,6 @@ func TestAgentConfigYamlOnly(t *testing.T) {
450446
err = yaml.Unmarshal([]byte(strings.Join([]string{
451447
"sts_url: 'https://stackstate.com'",
452448
"api_key: apikey_20",
453-
"process_agent_enabled: true",
454449
"site: " + site,
455450
"process_config:",
456451
" enabled: 'true'",
@@ -468,7 +463,6 @@ func TestAgentConfigYamlOnly(t *testing.T) {
468463
err = yaml.Unmarshal([]byte(strings.Join([]string{
469464
"sts_url: 'https://stackstate.com'",
470465
"api_key: apikey_20",
471-
"process_agent_enabled: true",
472466
"site: " + site,
473467
"process_config:",
474468
" enabled: 'true'",
@@ -489,7 +483,6 @@ func TestStackStateNetworkConfigFromMainAgentConfig(t *testing.T) {
489483
err := yaml.Unmarshal([]byte(strings.Join([]string{
490484
"sts_url: 'https://stackstate.com'",
491485
"api_key: apikey_20",
492-
"process_agent_enabled: true",
493486
"process_config:",
494487
" enabled: 'true'",
495488
" queue_size: 10",
@@ -720,7 +713,6 @@ func TestStackStateFallbackAgentConfigToSTSUrl(t *testing.T) {
720713
err := yaml.Unmarshal([]byte(strings.Join([]string{
721714
"api_key: apikey_30",
722715
"sts_url: http://default-endpoint.test.stackstate.com",
723-
"process_agent_enabled: true",
724716
"process_config:",
725717
" enabled: 'true'",
726718
" queue_size: 10",
@@ -749,7 +741,6 @@ func TestStackStateFallbackAgentConfigToEnvSTSUrl(t *testing.T) {
749741
var ddy YamlAgentConfig
750742
err := yaml.Unmarshal([]byte(strings.Join([]string{
751743
"api_key: apikey_30",
752-
"process_agent_enabled: true",
753744
"process_config:",
754745
" enabled: 'true'",
755746
" queue_size: 10",
@@ -778,7 +769,6 @@ func TestStackStateFallbackAgentConfigEmptyUrlToEnvSTSUrl(t *testing.T) {
778769
var ddy YamlAgentConfig
779770
err := yaml.Unmarshal([]byte(strings.Join([]string{
780771
"api_key: apikey_30",
781-
"process_agent_enabled: true",
782772
"process_config:",
783773
" enabled: 'true'",
784774
" queue_size: 10",
@@ -809,7 +799,6 @@ func TestStackStatePreferAgentConfigToEnvPROCESS_AGENT_URL(t *testing.T) {
809799
var ddy YamlAgentConfig
810800
err := yaml.Unmarshal([]byte(strings.Join([]string{
811801
"api_key: apikey_30",
812-
"process_agent_enabled: true",
813802
"process_config:",
814803
" enabled: 'true'",
815804
" queue_size: 10",
@@ -839,7 +828,6 @@ func TestStackStatePreferSTS_STS_URLOverYamlProcessAgentConfig(t *testing.T) {
839828
var ddy YamlAgentConfig
840829
err := yaml.Unmarshal([]byte(strings.Join([]string{
841830
"api_key: apikey_30",
842-
"process_agent_enabled: true",
843831
"process_config:",
844832
" enabled: 'true'",
845833
" queue_size: 10",
@@ -870,7 +858,6 @@ func TestStackStatePreferPROCESS_AGENT_URLOverYamlsts_sts_url(t *testing.T) {
870858
err := yaml.Unmarshal([]byte(strings.Join([]string{
871859
"api_key: apikey_30",
872860
"sts_url: http://default-endpoint.test.stackstate.com",
873-
"process_agent_enabled: true",
874861
"process_config:",
875862
" enabled: 'true'",
876863
" queue_size: 10",

k8s-deployment/process-agent-config.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ skip_kubelet_tls_verify: true
88
incremental_publishing_enabled: true
99
# we are running inside k8s so we want to enrich data with k8s
1010
local_run: false
11-
# process_agent_enabled: true
1211
process_config:
1312
enabled: 'true'
1413
queue_size: 10

stackstate-docker-dev.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ log_level: debug
22

33
skip_ssl_validation: true
44

5-
process_agent_enabled: true
65
incremental_publishing_enabled: true
76
process_config:
87
enabled: 'true'

0 commit comments

Comments
 (0)