Skip to content

Commit

Permalink
Removing no longer used metrics endpoints
Browse files Browse the repository at this point in the history
  • Loading branch information
mpeterss committed Oct 3, 2019
1 parent 4016f74 commit 24ba2be
Show file tree
Hide file tree
Showing 11 changed files with 2 additions and 119 deletions.
1 change: 0 additions & 1 deletion analytics-grpc-api/README.md

This file was deleted.

58 changes: 0 additions & 58 deletions analytics-grpc-api/build.gradle.kts

This file was deleted.

20 changes: 0 additions & 20 deletions analytics-grpc-api/src/main/proto/analytics.proto

This file was deleted.

27 changes: 0 additions & 27 deletions analytics-grpc-api/src/main/proto/prime_metrics.proto

This file was deleted.

1 change: 0 additions & 1 deletion docker-compose.esp.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,6 @@ services:
command: ["./wait_including_esps.sh"]
environment:
- OCS_GRPC_SERVER=ocs.dev.ostelco.org
- METRICS_GRPC_SERVER=metrics.dev.ostelco.org
- SERVICE_FILE=prime-service-account.json
- GOOGLE_CLOUD_PROJECT=${GCP_PROJECT_ID}
- PUBSUB_EMULATOR_HOST=pubsub-emulator:8085
Expand Down
1 change: 0 additions & 1 deletion docker-compose.seagull.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ services:
environment:
- DISABLE_TLS=true
- OCS_GRPC_SERVER=prime:8082
- METRICS_GRPC_SERVER=prime:8083
- SERVICE_FILE=prime-service-account.json
- GOOGLE_CLOUD_PROJECT=${GCP_PROJECT_ID}
- PUBSUB_EMULATOR_HOST=pubsub-emulator:8085
Expand Down
1 change: 0 additions & 1 deletion docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ services:
environment:
- DISABLE_TLS=true
- OCS_GRPC_SERVER=prime:8082
- METRICS_GRPC_SERVER=prime:8083
- SERVICE_FILE=prime-service-account.json
- GOOGLE_CLOUD_PROJECT=${GCP_PROJECT_ID}
- PUBSUB_EMULATOR_HOST=pubsub-emulator:8085
Expand Down
1 change: 0 additions & 1 deletion ocsgw/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ services:
command: ["./start_dev.sh"]
environment:
- OCS_GRPC_SERVER=ocs.dev.oya.world
- METRICS_GRPC_SERVER=metrics.dev.oya.world
- SERVICE_FILE=prime-service-account.json
- GOOGLE_CLOUD_PROJECT=${GCP_PROJECT_ID}
- PUBSUB_PROJECT_ID=${GCP_PROJECT_ID}
Expand Down
3 changes: 1 addition & 2 deletions ocsgw/src/main/java/org/ostelco/ocsgw/OcsServer.kt
Original file line number Diff line number Diff line change
Expand Up @@ -164,8 +164,7 @@ object OcsServer {
appConfig: AppConfig): GrpcDataSource =
GrpcDataSource(
protobufDataSource,
appConfig.grpcServer,
appConfig.metricsServer)
appConfig.grpcServer)

private fun getPubSubDataSource(
protobufDataSource: ProtobufDataSource,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,16 +73,14 @@ public class GrpcDataSource implements DataSource {
*/
public GrpcDataSource(
final ProtobufDataSource protobufDataSource,
final String ocsServerHostname,
final String metricsServerHostname) throws IOException {
final String ocsServerHostname) throws IOException {

this.protobufDataSource = protobufDataSource;

this.ocsServerHostname = ocsServerHostname;

LOG.info("Created GrpcDataSource");
LOG.info("ocsServerHostname : {}", ocsServerHostname);
LOG.info("metricsServerHostname : {}", metricsServerHostname);

// Not using the standard GOOGLE_APPLICATION_CREDENTIALS for this
// as we need to download the file using container credentials in
Expand Down
4 changes: 0 additions & 4 deletions ocsgw/src/main/java/org/ostelco/ocsgw/utils/AppConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,6 @@ public String getGrpcServer() {
return getEnvProperty("OCS_GRPC_SERVER");
}

public String getMetricsServer() {
return getEnvProperty("METRICS_GRPC_SERVER");
}

public String getPubSubProjectId() {
return getEnvProperty("PUBSUB_PROJECT_ID");
}
Expand Down

0 comments on commit 24ba2be

Please sign in to comment.