Skip to content

Commit

Permalink
feat: Update App Service examples for Levski release (edgexfoundry#138)
Browse files Browse the repository at this point in the history
Signed-off-by: Leonard Goodell <[email protected]>

Signed-off-by: Leonard Goodell <[email protected]>
  • Loading branch information
Lenny Goodell authored Nov 8, 2022
1 parent da9cf1c commit 08c0a1c
Show file tree
Hide file tree
Showing 56 changed files with 4,102 additions and 1,386 deletions.
4 changes: 2 additions & 2 deletions application-services/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## Overview

This folder contains various examples of Application Services based on the `Kamakura 2.2.x` App Functions SDK and Profiles that can be used with App Service Configurable. See the [Application Services](https://docs.edgexfoundry.org/2.0/microservices/application/ApplicationServices/) documentation for complete details on Application services.
This folder contains various examples of Application Services based on the `Levski 2.3.x` App Functions SDK and Profiles that can be used with App Service Configurable. See the [Application Services](https://docs.edgexfoundry.org/latest/microservices/application/ApplicationServices/) documentation for complete details on Application services.

> *Note: All custom examples have their own `go.mod` file, `Makefile` and in some cases `Dockerfile` (e.g.`simple-filter-xml`). * These example are **not** designed to be templates for creating a new Application Service. For this we have the [app-service-template in app-functions-sdk-go](https://github.com/edgexfoundry/app-functions-sdk-go/blob/main/app-service-template/README.md)
Expand Down Expand Up @@ -41,7 +41,7 @@ The Makefile in this example also contains the `docker` target which will build

This command must be run from the example folder, i.e. not the top level Makefile.

> *Note that Application Services no longer use docker profiles. They use Environment Overrides in the docker compose file to make the necessary changes to the configuration for running in Docker. See the [Environment Variable Overrides](https://docs.edgexfoundry.org/2.0/microservices/application/AdvancedTopics/#environment-variable-overrides) section of the Application Services documentation for more details and an example.
> *Note that Application Services no longer use docker profiles. They use Environment Overrides in the docker compose file to make the necessary changes to the configuration for running in Docker. See the [Environment Variable Overrides](https://docs.edgexfoundry.org/latest/microservices/application/AdvancedTopics/#environment-variable-overrides) section of the Application Services documentation for more details and an example.
## Configurable Examples

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,25 @@
cacert = ""
clientcert = ""
clientkey = ""
[Writable.Telemetry]
Interval = "30s"
PublishTopicPrefix = "edgex/telemetry" # /<service-name>/<metric-name> will be added to this Publish Topic prefix
[Writable.Telemetry.Metrics] # All service's metric names must be present in this list.
# Common App Service Metrics
MessagesReceived = false
InvalidMessagesReceived = false
PipelineMessagesProcessed = false # Pipeline IDs are added as the tag for the metric for each pipeline defined
PipelineMessageProcessingTime = false # Pipeline IDs are added as the tag for the metric for each pipeline defined
PipelineProcessingErrors = false # Pipeline IDs are added as the tag for the metric for each pipeline defined
HttpExportSize = false # Single metric used for all HTTP Exports
MqttExportSize = false # BrokerAddress and Topic are added as the tag for this metric for each MqttExport defined
# Common Security Service Metrics
SecuritySecretsRequested = false
SecuritySecretsStored = false
SecurityConsulTokensRequested = false
SecurityConsulTokenDuration = false
[Writable.Telemetry.Tags] # Contains the service level tags to be attached to all the service's metrics
# Gateway="my-iot-gateway" # Tag must be added here since Env Override can only change existing value, not added new ones.

[Service]
HealthCheckInterval = "10s"
Expand All @@ -64,6 +83,14 @@ StartupMsg = "app-mqtt-export has started"
RequestTimeout = "30s"
MaxRequestSize = 0
MaxResultCount = 0
[Service.CORSConfiguration]
EnableCORS = false
CORSAllowCredentials = false
CORSAllowedOrigin = "https://localhost"
CORSAllowedMethods = "GET, POST, PUT, PATCH, DELETE"
CORSAllowedHeaders = "Authorization, Accept, Accept-Language, Content-Language, Content-Type, X-Correlation-ID"
CORSExposeHeaders = "Cache-Control, Content-Language, Content-Length, Content-Type, Expires, Last-Modified, Pragma, X-Correlation-ID"
CORSMaxAge = 3600

[Registry]
Host = "localhost"
Expand Down
69 changes: 65 additions & 4 deletions application-services/custom/advanced-filter-convert-publish/go.mod
Original file line number Diff line number Diff line change
@@ -1,9 +1,70 @@
module advanced-filter-convert-publish

go 1.16
go 1.18

require (
github.com/edgexfoundry/app-functions-sdk-go/v2 v2.2.0
github.com/edgexfoundry/go-mod-core-contracts/v2 v2.2.0
gopkg.in/yaml.v2 v2.4.0 // indirect
github.com/edgexfoundry/app-functions-sdk-go/v2 v2.3.0
github.com/edgexfoundry/go-mod-core-contracts/v2 v2.3.0
)

require (
bitbucket.org/bertimus9/systemstat v0.5.0 // indirect
github.com/Microsoft/go-winio v0.5.2 // indirect
github.com/armon/go-metrics v0.3.10 // indirect
github.com/cenkalti/backoff v2.2.1+incompatible // indirect
github.com/diegoholiveira/jsonlogic/v3 v3.2.6 // indirect
github.com/eclipse/paho.mqtt.golang v1.4.1 // indirect
github.com/edgexfoundry/go-mod-bootstrap/v2 v2.3.0 // indirect
github.com/edgexfoundry/go-mod-configuration/v2 v2.3.0 // indirect
github.com/edgexfoundry/go-mod-messaging/v2 v2.3.0 // indirect
github.com/edgexfoundry/go-mod-registry/v2 v2.3.0 // indirect
github.com/edgexfoundry/go-mod-secrets/v2 v2.3.0 // indirect
github.com/fatih/color v1.9.0 // indirect
github.com/fxamacker/cbor/v2 v2.4.0 // indirect
github.com/go-kit/log v0.2.1 // indirect
github.com/go-logfmt/logfmt v0.5.1 // indirect
github.com/go-playground/locales v0.14.0 // indirect
github.com/go-playground/universal-translator v0.18.0 // indirect
github.com/go-playground/validator/v10 v10.11.1 // indirect
github.com/go-redis/redis/v7 v7.3.0 // indirect
github.com/golang/protobuf v1.5.2 // indirect
github.com/gomodule/redigo v1.8.9 // indirect
github.com/google/uuid v1.3.0 // indirect
github.com/gorilla/mux v1.8.0 // indirect
github.com/gorilla/websocket v1.4.2 // indirect
github.com/hashicorp/consul/api v1.15.3 // indirect
github.com/hashicorp/errwrap v1.0.0 // indirect
github.com/hashicorp/go-cleanhttp v0.5.1 // indirect
github.com/hashicorp/go-hclog v0.14.1 // indirect
github.com/hashicorp/go-immutable-radix v1.3.0 // indirect
github.com/hashicorp/go-multierror v1.1.1 // indirect
github.com/hashicorp/go-rootcerts v1.0.2 // indirect
github.com/hashicorp/golang-lru v0.5.4 // indirect
github.com/hashicorp/serf v0.9.7 // indirect
github.com/leodido/go-urn v1.2.1 // indirect
github.com/mattn/go-colorable v0.1.12 // indirect
github.com/mattn/go-isatty v0.0.14 // indirect
github.com/mitchellh/consulstructure v0.0.0-20190329231841-56fdc4d2da54 // indirect
github.com/mitchellh/copystructure v1.0.0 // indirect
github.com/mitchellh/go-homedir v1.1.0 // indirect
github.com/mitchellh/mapstructure v1.5.0 // indirect
github.com/mitchellh/reflectwalk v1.0.0 // indirect
github.com/nats-io/nats.go v1.18.0 // indirect
github.com/nats-io/nkeys v0.3.0 // indirect
github.com/nats-io/nuid v1.0.1 // indirect
github.com/pebbe/zmq4 v1.2.7 // indirect
github.com/pelletier/go-toml v1.9.5 // indirect
github.com/rcrowley/go-metrics v0.0.0-20201227073835-cf1acfcdf475 // indirect
github.com/spiffe/go-spiffe/v2 v2.1.1 // indirect
github.com/x448/float16 v0.8.4 // indirect
github.com/zeebo/errs v1.2.2 // indirect
golang.org/x/crypto v0.0.0-20221010152910-d6f0a8c073c2 // indirect
golang.org/x/net v0.0.0-20211216030914-fe4d6282115f // indirect
golang.org/x/sync v0.0.0-20210220032951-036812b2e83c // indirect
golang.org/x/sys v0.0.0-20221010170243-090e33056c14 // indirect
golang.org/x/text v0.3.7 // indirect
google.golang.org/genproto v0.0.0-20211208223120-3a66f561d7aa // indirect
google.golang.org/grpc v1.46.0 // indirect
google.golang.org/protobuf v1.28.0 // indirect
gopkg.in/square/go-jose.v2 v2.4.1 // indirect
)
Loading

0 comments on commit 08c0a1c

Please sign in to comment.